http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23101
Nate <nate at ucar dot edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nate at ucar dot edu --- Comment #10 from Nate <nate at ucar dot edu> 2010-10-06 17:35:53 UTC --- I managed to get it to compile partially with the following: flag=" -lgcc -I/usr/local/include/ -I/usr/include/ -L/usr/local/lib/ -Wl,-brtl -Wl,-berok " export BOOT_CFLAGS="-O2 -maix32 -g" export PATH=/usr/local/bin/:$PATH export CC="/usr/local/bin/gcc" CFLAGS=" $flag " export CXX=/usr/local/bin/g++ CXXFLAGS=" $flag " export CPP="$CC -E " CPPFLAGS=" $flag " export CPPFLAGS=-fexceptions export OBJECT_MODE=32 export LDFLAGS="-L/usr/local/lib/ -berok" make clean ./configure --enable-languages=c,c++,fortran --prefix=/usr/local/gcc/4.5.1/ ABI=32 --enable-bootstrap --with-gmp=/usr/local/gcc/4.5.1/ --with-mpfr=/usr/local/gcc/4.5.1/ --with-mpc=/usr/local/gcc/4.5.1/ && \ make bootstrap It gets all the way to here: make[3]: Entering directory `/usr/local/src/gcc-4.5.1/build-powerpc-ibm-aix5.3.0.0/libiberty' if [ x"" != x ]; then \ /usr/local/bin/gcc -c -DHAVE_CONFIG_H -lgcc -I/usr/local/include/ -I/usr/include/ -L/usr/local/lib/ -Wl,-brtl -Wl,-berok -fexceptions -I. -I../.././libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../.././libiberty/physmem.c -o pic/physmem.o; \ else true; fi /usr/local/bin/gcc -c -DHAVE_CONFIG_H -lgcc -I/usr/local/include/ -I/usr/include/ -L/usr/local/lib/ -Wl,-brtl -Wl,-berok -fexceptions -I. -I../.././libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../.././libiberty/physmem.c -o physmem.o ../.././libiberty/physmem.c: In function 'physmem_total': ../.././libiberty/physmem.c:96: error: storage size of 'pss' isn't known ../.././libiberty/physmem.c:97: warning: implicit declaration of function 'pstat_getstatic' ../.././libiberty/physmem.c:96: warning: unused variable 'pss' ../.././libiberty/physmem.c: In function 'physmem_available': ../.././libiberty/physmem.c:200: error: storage size of 'pss' isn't known ../.././libiberty/physmem.c:201: error: storage size of 'psd' isn't known ../.././libiberty/physmem.c:203: warning: implicit declaration of function 'pstat_getdynamic' ../.././libiberty/physmem.c:201: warning: unused variable 'psd' ../.././libiberty/physmem.c:200: warning: unused variable 'pss' make[3]: *** [physmem.o] Error 1 make[3]: Leaving directory `/usr/local/src/gcc-4.5.1/build-powerpc-ibm-aix5.3.0.0/libiberty'