This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

AW: AIX build



_____________________________________________ 
Von: 	Fehringer Franz  
Gesendet:	Mittwoch, 17. Juni 2009 11:29
An:	gcc-help@gnu.org
Betreff:	AIX build

Hi,

After succesfully building gcc 4.4.0 on AIX 6.1 with xlc 10.1 as
bootstrap compiler saying
configure --prefix=/home/feh01589/soft/gcc-4.4.0_stage2 --enable-static
--disable-shared --enable-languages=c++ --with-mpfr=/home/feh01589/soft
--with-gmp=/home/feh01589/soft --enable-__cxa_atexit
--enable-initfini-array --with-libiconv-prefix=/home/feh01589/soft
and no CFLAGS and the like set in the environment i wanted to raise
optimization.
I used the freshly installed gcc as the bootstrap compiler this time.
But now i get an infininite hang while building libgcc.a (see compile
line below).
After a little investigation it seems to me that the problem is with the
-mcpu=power6 option.
The problem seemingly is not the compile line itself (the hang remains
when i remove all -mcpu=power6 occurences) but rather the fact, that the
freshly generated xgcc was built using this option.

Any hints on how to approach this kind of problem?

Thanks and best regards

Franz

My flags where

export CC=gcc
export CXX=g++
export CPPFLAGS="-D_ALL_SOURCE -I$HOME/soft/include"
export CFLAGS="-mcpu=power6 -O2"
export BOOT_CFLAGS="$CFLAGS"
export BUILD_CFLAGS="$CFLAGS"
export STAGE_CFLAGS="$CFLAGS"
export STAGE1_CFLAGS="$CFLAGS"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="-O2 -L$HOME/soft/lib"
export MAKE=gmake
export CONFIG_SHELL=$HOME/soft/bin/bash
export AR_FLAGS=crs
export ARFLAGS=crs
export PATH=$HOME/soft/gcc4/bin:$PATH

And my configure line

configure --prefix=/home/feh01589/soft/gcc-4.4.0_stage2 --enable-static
--disable-shared --enable-languages=c++ --with-mpfr=/home/feh01589/soft
--with-gmp=/home/feh01589/soft --enable-__cxa_atexit
--enable-initfini-array --with-libiconv-prefix=/home/feh01589/soft
--with-cpu=power6 --disable-bootstrap

The problem is the same with and without --disable-bootstrap.
I cannot see any effect with --with-cpu=power6 btw (does it have any?).

___________________________________________ 
Von: 	Fehringer Franz  
Gesendet:	Dienstag, 16. Juni 2009 13:10
An:	'fehrin@t-online.de'
Betreff:	gcc

/home/feh01589/src/gcc-4.4.0/host-powerpc-ibm-aix6.1.2.0/gcc/xgcc
-B/home/feh01589/src/gcc-4.4.0/host-powerpc-ibm-aix6.1.2.0/gcc/
-B/home/feh01589/soft/gcc-4.4.0_stage2/powerpc-ibm-aix6.1.2.0/bin/
-B/home/feh01589/soft/gcc-4.4.0_stage2/powerpc-ibm-aix6.1.2.0/lib/
-isystem
/home/feh01589/soft/gcc-4.4.0_stage2/powerpc-ibm-aix6.1.2.0/include
-isystem
/home/feh01589/soft/gcc-4.4.0_stage2/powerpc-ibm-aix6.1.2.0/sys-include
-g -mcpu=power6 -O2 -pthread -O2  -g -mcpu=power6 -O2 -DIN_GCC   -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wcast-qual -Wold-style-definition  -isystem ./include
-mlong-double-128 -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED   -I. -I.
-I../../../host-powerpc-ibm-aix6.1.2.0/gcc -I../../.././libgcc
-I../../.././libgcc/. -I../../.././libgcc/../gcc
-I../../.././libgcc/../include  -DHAVE_CC_TLS -o _powidf2.o -MT
_powidf2.o -MD -MP -MF _powidf2.dep -DL_powidf2 -c
../../.././libgcc/../gcc/libgcc2.c \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]