Trouble compiling a 'hello world' program with the GCC Binary
Rupert Wood
rup@kanat.pair.com
Tue Sep 24 09:30:00 GMT 2002
Curt Curry wrote:
> I have downloaded GCC 3.2 (binary and source) for an HP 9000 server
> (HPUX 11.00) from an HP Porting center and am getting similar errors
> when I try to compile the source during install and when I try to
> compile a simple program using the binary.
:
> as: warning 2: Unknown option "--traditional-format" ignored.
> as: "/var/tmp//ccsYFegc.s", line 29: error 1052: Directive name not
> recognized - NSUBSPA
:
> error 1052: Directive name not recognized - STABS'
Looks like you're using HP's bundled assembler and the build of GCC
expects the GNU binutils assembler. Check 'gcc -v': the configure line
will probably include '--with-gnu-as'. Almost all HPUX builds do; the
bundled assembler embeds a timestamp in built objects that the current
bootstrap-compare machinery can't usefully work around.
Installing a binutils package from the porting center should fix this. If
it does, and they haven't documented that their GCC package needs the
binutils package, then you should probably drop them a note.
Hope that helps,
Rup.
More information about the Gcc-help
mailing list