Building arm-elf on HP-UX 10.20

Lance Spaulding lance@hpbs4089.boi.hp.com
Mon Sep 24 15:18:00 GMT 2001


I'm running into problems trying to build a arm-elf cross-compiler on
HP-UX 10.20.  I've downloaded the following:

- binutils-2.11.2
- gcc-2.95.3
- newlib-1.9.0

Following various directions I've found on the web, I've uncompressed
each of these into different directories and created seperate directories
to do the actual builds in.

I was able to successfully build binutils by doing:

../binutils-2.11.2/configure --target=arm-elf --prefix=/home/lance/arm/arm-elf
make all install

Next, I tried to build gcc by doing:

../gcc-2.95.3/configure --target=arm-elf --prefix=/home/lance/arm/arm-elf
--enable-languages=c --with-headers=../newlib-1.9.0/newlib/libc/include
--with-newlib --disable-shared
make all install

This will eventually fail with:

gcc -c -DCROSS_COMPILE -DIN_GCC     -g -O2  -DHAVE_CONFIG_H    -I.
-I../../gcc-2
.95.3/gcc -I../../gcc-2.95.3/gcc/config -I../../gcc-2.95.3/gcc/..
/include ../../gcc-2.95.3/gcc/gen-protos.c
In file included from ../../gcc-2.95.3/gcc/gen-protos.c:21:
../../gcc-2.95.3/gcc/cpplib.h:520: parse error before `ino_t'
../../gcc-2.95.3/gcc/cpplib.h:520: warning: no semicolon at end of struct o
r union
../../gcc-2.95.3/gcc/cpplib.h:521: warning: data definition has no type or
storage class
../../gcc-2.95.3/gcc/cpplib.h:528: parse error before `}'
make[1]: *** [gen-protos.o] Error 1
make[1]: Leaving directory `/tmp/armcompiler/build-gcc/gcc'
make: *** [all-gcc] Error 2


I've also tried the configure line using --without-headers but I still
get the same compiler error listed above.

I was able to build the same arm-elf compiler on Linux without any problems
but it always fails on HP-UX.  Are there any HP-UX specific steps
that maybe I'm missing?

Any help greatly appreciated,
Lance

-- 
###########################+------------------------------------------------+
########  _/       ########|  O-      L A N C E   S P A U L D I N G      O- |
#####    _/           #####|         Research & Development Engineer        |
####    _/_/_/ _/_/_/  ####|             Hewlett-Packard Company            |
####   _/  _/ _/  _/   ####|        LaserJet Copy Solutions,  M/S 242       |
####  _/  _/ _/_/_/    ####|       11311 Chinden Blvd, Boise, ID  83714     |
#####       _/        #####| EMAIL: lance@boi.hp.com   URL: hpbs2780/~lance |
########   _/      ########| VOICE:(208) 396-3342      FAX: (208) 396-3457  |
###########################+------------------------------------------------+



More information about the Gcc-help mailing list