------- Comment #5 from h dot m dot brand at xs4all dot nl  2010-05-11 15:54 
-------
Subject: Re:  Impossible to build any version beyond 4.2.4

On 5 May 2010 20:54:53 -0000, "sje at cup dot hp dot com"
<gcc-bugzi...@gcc.gnu.org> wrote:

> ------- Comment #4 from sje at cup dot hp dot com  2010-05-05 20:54 -------
> I have reproduced this failure, and the problem seems to be in GMP.  You
> mention that you set ABI to 64.  I noticed that if I built GMP with the HP
> compiler ABI is set to 32 and then when I built GCC with that GMP it failed in
> the manner you show in your report.  When I built GMP with GCC, ABI was set to
> 64 and the compiler I built with that GMP worked fine.  You might want to try
> rebuilding GMP with GCC.
> 
> Also, you mentioned that the HP Porting Center only has GCC 4.2.3, you can get
> newer pre-built GCC versions for HP-UX at http://www.hp.com/go/gcc (though
> these are all built in 32 bit mode).
> 
> I was able to build GCC using HP C (in 32 bit mode) with no problems and no
> changes needed.

I have just rebuilt gmp, mpfr, and mpc with GNU gcc-4.2.4/64 ABI=64

All checks passed for gmp, mpfr, and mpc before I installed

Using the below Conf:
--8<---
export LD_PXDB=/usr/bin/true

export CONFIG_SITE=
export CC=gcc
export CFLAGS="-mlp64 -fPIC"
export CCFLAGS="-mlp64 -fPIC"
export CXXFLAGS="-mlp64 -fPIC"
export PATH=/pro/3gl/GNU/gcc/bin:.:/usr/local/ia64/bin:/pro/local/bin
export PATH=$PATH"":/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/opt/langtools/bin
export PATH=$PATH"":/opt/imake/bin

rm -rf obj
mkdir obj
cd obj
../src/configure \
    --enable-languages=c,c++ \
    --prefix=/usr/local/ia64 --with-local-prefix=/usr/local/ia64 \
    --with-gnu-as --with-as=/usr/local/ia64/bin/as \
    --with-ld=/usr/ccs/bin/ld \
    --disable-shared \
    --disable-nls \
    --with-mpfr=/usr/local/ia64 \
    --with-gmp=/usr/local/ia64 \
    --with-mpc=/usr/local/ia64
# Force 64bit in STAGE1_CFLAGS
perl -pi -e'm/CFLAGS\s*=/ and s/-fkeep-inline-functions/-mlp64
-fkeep-inline-functions/' Makefile
-->8---

Building gcc failed with an internal compiler error for 4.3.4, 4.4.4,
and 4.5.0 (all at a different location btw)

I need a 64bit environment, because I have only 64bit libraries and
need a 64bit libgcc to link with other applications.

I have binutils-2.18 available, for which I had to disable ar and ranlib


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43941

Reply via email to