Trouble installing egcs-1.1.2 on HP-UX 10.x platform

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Fri Feb 4 16:49:00 GMT 2000


> I want to configure so that the "as" in /src/sw/sys/hpux10/as
> is used. This binary is GNU assembler version 2.5.2. If I split
> the compilation stage into cpp, cc1plus and as stages, and use
> this GNU as, my programs compile fine. So, I am aprticular that
> this version of "as" be used.

The easiest way to arrange this is to make a symlink to that as from
the same directory where cc1, cc1plus etc live. There is a number of
directories which the gcc driver will search to find an assembler; the
gcc installation directory is the first location.

> - Do the --with*-as options specify the version of as to use during
>   the compilation of the gcc executable ? Or do they (also) specify
>   the version of as that the resultant executable should use while
>   compiling the user's programs ? I don't care which version of "as" 
>   is used during gcc executable compilation, but I want the new gcc
>   executable to use /src/sw/sys/hpux10/as while compiling my programs.

In theory, this should work the way you want it. To analyse what's
going wrong, please check the following things:

- In your build directory, gcc/auto-host.h should have a definition for
  DEFAULT_ASSEMBLER
- This string should appear in the 'xgcc' executable
- The as itself should be present and executable
- When you invoke 'xgcc -print-prog-name=as', it should give you this
  string (for comparison, try -print-prog-name=cc1, to see where it
  finds the C compiler proper)
- When you invoke the compiler with -v, it should invoke your assembler.

Hope this helps,
Martin


More information about the Gcc-bugs mailing list