My system is IBM AIX 5.3, 64 bit kernel mode. I have installed the GCC distribution downloaded from:
http://www-03.ibm.com/systems/p/os/aix/linux/toolbox/download.html The installed packages are: gcc-4.2.0-3.aix5.3.ppc.rpm gcc-cplusplus-4.2.0-3.aix5.3.ppc.rpm libgcc-4.2.0-3.aix5.3.ppc.rpm libstdcplusplus-4.2.0-3.aix5.3.ppc.rpm libstdcplusplus-devel-4.2.0-3.aix5.3.ppc.rpm I'm trying to compile some code that uses the Boost C++ libraries (http://www.boost.org/) but I often get an internal compiler error. For example, a source file "test.cpp" with this only line: #include <boost/filesystem/fstream.hpp> compiled with: g++ -v -save-temps -I/home2/install/gcc/boost_1_35_0 -c test.cpp results in: Using built-in specs. Target: powerpc-ibm-aix5.3.0.0 Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,java --prefix=/opt/freeware --enable-threads --enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.3.0.0 --target=powerpc-ibm-aix5.3.0.0 --build=powerpc-ibm-aix5.3.0.0 --disable-libjava-multilib Thread model: aix gcc version 4.2.0 /opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/cc1plus -E -quiet -v -I/home2/install/gcc/boost_1_35_0 -D_ALL_SOURCE test.cpp -fpch-preprocess -o test.ii ignoring nonexistent directory "/opt/freeware/include" ignoring nonexistent directory "/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/../../../../powerpc-ibm-aix5.3.0.0/include" #include "..." search starts here: #include <...> search starts here: /home2/install/gcc/boost_1_35_0 /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/include/c++ /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/include/c++/powerpc-ibm-aix5.3.0.0 /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/include/c++/backward /usr/local/include /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/include /usr/include End of search list. /opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/cc1plus -fpreprocessed test.ii -quiet -dumpbase test.cpp -auxbase test -version -o test.s GNU C++ version 4.2.0 (powerpc-ibm-aix5.3.0.0) compiled by GNU C version 4.2.0. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 1996167973c219369b345460d5c6f097 In file included from test.cpp:2: /home2/install/gcc/boost_1_35_0/boost/filesystem/fstream.hpp:582: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. I can reproduce the ICE by compiling the preprocessed source: # g++ -c test.ii In file included from test.cpp:2: /home2/install/gcc/boost_1_35_0/boost/filesystem/fstream.hpp:582: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. I don't know if it's relevant, but this is the output of ulimit -a (I'm running as root): core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max memory size (kbytes, -m) unlimited open files (-n) unlimited pipe size (512 bytes, -p) 64 stack size (kbytes, -s) unlimited cpu time (seconds, -t) unlimited max user processes (-u) 262144 virtual memory (kbytes, -v) unlimited -- Summary: Internal Compiler Error on AIX 5.3 compiling Boost 1.35.0 Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: m dot galante at centrosistemi dot it http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36086