problem building gcc on ia64-hpux machine

Listaccount lst_hoe01@kwsoft.de
Wed Dec 12 16:47:00 GMT 2007


Zitat von edu m <daknhro@gmail.com>:

> I want to build gcc-4.3 on a ia64-hpu11.23.
> I've dowload binutils and do this for configure:
>
> ../gcc/configure --prefix=`pwd` --enable-languages=c
> --with-mpfr=/home/ulc/es/mas/pardeiro/src/mpfr-2.3.0/
> --with-gmp=/home/ulc/es/mas/pardeiro/src/gmp-4.2.2/
> --with-as=/home/ulc/es/mas/pardeiro/src/binutils-2.18/ia64-hp-hpux11.23/bin/as
>
> When do make obtain this error:
>
> config.status: creating mkheaders.almost
> config.status: creating config.h
> Make: line 51: syntax error.  Stop.
>
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
> Stop.
>
> why???
>

I'm not the expert to tell you "why" but after struggling for some  
hours on the same OS i can tell you how it works for me compiling  
gcc-4.2.2 :

../configure --prefix=/opt/gcc-4.2.2 --with-gnu-as  
--with-as=/usr/local/bin/gnu-as --without-gnu-ld  
--with-ld=/usr/ccs/bin/ld --disable-nls --enable-threads=posix  
--enable-languages=c,c++

We also do "export LANG=C" before configure to prevent trouble and you  
should use the GNU sed/awk or you may get "stack growth error" at some  
point of the build. For the binutils on Itanium we have to use "export  
LEXLIB=" "" to prevent errors at link stage.
We have finally managed to get gcc compile on Solaris 7, Solaris 9,  
AIX 5.3, HPUX 11.11 (PA) and HPUX 11.23 (IA64).
The last one was the worst BTW.

BTW : Does anyone have experince how good GCC is on optimizing for Itanium??

Regards

Andreas




More information about the Gcc-help mailing list