Operating System - HP-UX
1748142 Members
3731 Online
108758 Solutions
New Discussion

Toolchain/Assembler problem with gcc-3.4.0-64-11.11-elf64

 
Curtis Steward
Occasional Contributor

Toolchain/Assembler problem with gcc-3.4.0-64-11.11-elf64

I'm attempting to build a toolchain involving multiple targets which one is
hppa2.0w-hp-hpux11.11. I've been able to follow a routine for building and
adjusting the toolchain on targets. However, HP-UX (9000/785/C3700) is a
challenge so I thought I'd try to build just a native gcc, ld, as, etc. just to get things working. I didn't want depot's for my pathing can be independant of system paths, libs can be moved, etc. so rather than the porting center, I picked up gcc-3.4.0-64-11.11-elf64 from Merijn's site and set my prefix.

CONFIGURE

../src/configure --host=hppa2.0w-hp-hpux11.11 --prefix=/raid/tmp/build/pa20_64 --with-local-prefix=/raid/tmp/build/pa20_64 --enable-languages=c,c++ --disable-shared --disable-nls --with-gnu-as --with-as=/raid/tmp/build/pa20_64/bin/as --with-gnu-ld --with-ld=/raid/tmp/build/pa20_64/bin/ld

BINARIES

So far so good, downloaded, installed pa20_64/bin looks good, compiles simple hello.

SOURCE

...
mkdir libgcc
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
./xgcc -B./ -B/raid/tmp/build/pa20_64/hppa2.0w-hp-hpux11.11/bin/ -isystem /raid/tmp/build/pa20_64/hppa2.0w-hp-hpux11.11/include -isystem /raid/tmp/build/pa20_64/hppa2.0w-hp-hpux11.11/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/config -I../../src/gcc/../include -DL_muldi3 -c ../../src/gcc/libgcc2.c -o libgcc/./_muldi3.o
/var/tmp/ccS3uDJa.s: Assembler messages:
/var/tmp/ccS3uDJa.s:3: Error: unknown pseudo-op: `.subspa'
/var/tmp/ccS3uDJa.s:4: Error: unknown pseudo-op: `.subspa'
/var/tmp/ccS3uDJa.s:6: Error: unknown pseudo-op: `.subspa'
/var/tmp/ccS3uDJa.s:7: Error: unknown pseudo-op: `.subspa'
/var/tmp/ccS3uDJa.s:14: Error: unknown pseudo-op: `.subspa'
/var/tmp/ccS3uDJa.s:271: Error: unknown pseudo-op: `.nsubspa'
/var/tmp/ccS3uDJa.s:347: Error: unknown pseudo-op: `.nsubspa'
make[3]: *** [libgcc/./_muldi3.o] Error 1
make[3]: Leaving directory `/raid/tmp/build/obj/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory `/raid/tmp/build/obj/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/raid/tmp/build/obj/gcc'
make: *** [bootstrap-lean] Error 2

VERSIONS

CC is gcc -mpa-risc-2-0
gcc is /raid/tmp/build/pa20_64/bin/gcc, gcc (GCC) 3.4.0
ld is /raid/tmp/build/pa20_64/bin/ld, GNU ld version 2.14 20030612
as is /raid/tmp/build/pa20_64/bin/as, GNU assembler 2.14 20030612
make is /raid/tmp/gz/gnu/bin/make, GNU Make 3.80
m4 is /raid/tmp/gz/gnu/bin/m4, GNU m4 1.4.1
bison is /raid/tmp/gz/gnu/bin/bison, bison (GNU Bison) 1.875
flex is /raid/tmp/gz/gnu/bin/flex, flex version 2.5.4

Are there some known minimum patch level(s) to support the above?

I've seen the same assembler messages on 11.00 tests as well. I'm
new to much of this so hopefully its just an oversight. If there is
a better alternative or suggestions on the toolchain itself i.e. GNUPro
let me know.

Thx,

cs



1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Toolchain/Assembler problem with gcc-3.4.0-64-11.11-elf64

>/var/tmp/ccS3uDJa.s:3: Error: unknown pseudo-op: `.subspa'

 

Your problem is that you are using HP's as(1) vs your foreign devil as(1).