Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9177633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:22:14+00:00 2026-06-17T17:22:14+00:00

Is there an option to GCC that changes the path of the assembler it

  • 0

Is there an option to GCC that changes the path of the assembler it uses? I’m getting errors from Solaris /usr/ccs/bin/as when using GCC to attempt to compile Haskell, but I’ve got a copy of GNU as in my path so when I type which as and as --version they use the GNU version, not the Solaris version. Unfortunately it seems GCC ignores the GNU version in the path and goes to the Solaris version. I’m trying to build Haskell on Solaris and I don’t think it sits well with the Solaris assembler. I hope I can change this behaviour with a simple wrapper script so I don’t have to recompile GCC.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:22:15+00:00Added an answer on June 17, 2026 at 5:22 pm

    Specifying the assembler to be used is not possible at run time. It has to be done when configuring gcc:

    –with-gnu-as

    Specify that the compiler should assume that the assembler it finds is the GNU
    assembler. However, this does not modify the rules to find an assembler and will
    result in confusion if the assembler found is not actually the GNU assembler.
    (Confusion may also result if the compiler finds the GNU assembler but has not
    been configured with –with-gnu-as.)

    Note the part I’ve put in italics. Of course you could temporarily change /usr/ccs/bin/as to call the gnu assembler (provided you have the necessary permissions), but the above seems to suggest that you’ll very likely run into problems. The gcc build process actually checks the features the assembler supports and generates code for exactly that assembler.

    I suggest you build a new version of gcc first (configured to use the gnu tools), and then use that to build ghc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a GCC/g++ option that generates an error/warning if there's a function that
Is there any gcc option I can set that will give me the line
Is there a set of command-line options that will convince gcc to produce a
is there an option how to disable that #if, #endif and other directives are
Is there an option to enable the drop down menu that appears when coding
Is there any option to call msi file from CreateProcess in c language in
Is there a way for GCC to produce a warning while linking libraries that
Using django comments framework http://docs.djangoproject.com/en/dev/ref/contrib/comments/ Not sure is there option, to make all comments
Is there any option to tell gs to convert strokes to fills? Something similar
Is there an option to show the full command when using an alias? Example:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.