An attempt to build OpenFOAM 1.5 (www.opencfd.co.uk/openfoam/version1.5.html) on powerpc-ibm-aix5.3.0.0 resulted in 7 compiler internal errors (ICEs) with gcc 4.3.1 and 6 ICEs with gcc 4.2.0.
The 4.2.0 compiler suite is as downloaded from the IBM AIX RPM repository (http://www-03.ibm.com/systems/p/os/aix/linux/toolbox/), while the 4.3.1 suite is a rebuild with forward porting of the 4.2.0 patches. At this time, only preprocessed files of the chemkinReader.C ICE is provided. The 4.3.1 .ii file compiles w/o errors or warnings with gcc 4.3.0 on a x86_64 system. Similarly, as OF 1.5 builds on x86_64 with gcc 4.3, the other ICEs should compile cleanly on this platform as well. Notice the difference in size of the .s files between the 4.2 and 4.3 ICEs. Any suggestions, patches and or development versions likely to reduce / remove the ICEs are welcome. I have not checked if there are any common patterns triggering the ICEs. GCC431 ICEs ----------- lnInclude/wrapper.cpp:320: internal compiler error: Segmentation fault interpolation/surfaceInterpolation/limitedSchemes/vanAlbada/vanAlbada.C:36: internal compiler error: Illegal instruction lnInclude/Reaction.H:143: internal compiler error: Segmentation fault chemistryReaders/chemkinReader/chemkinReader.C:230: internal compiler error: Segmentation fault RASModel/RASModel.C:205: internal compiler error: Segmentation fault LESModel/LESModel.C:137: internal compiler error: Segmentation fault lnInclude/ReactingCloud.C:101: internal compiler error: Segmentation fault [lnInclude/Reaction.H: include from reaction/reactions/makeChemkinReactions.C] 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.3.1 (GCC) COLLECT_GCC_OPTIONS='-c' '-v' '-save-temps' '-maix32' '-Daix' '-DDP' '-Wall' '-Wno-strict-aliasing' '-Wextra' '-Wno-unused-parameter' '-Wold-style-cast' '-DNoRepository' '-ftemplate-depth-40' '-IlnInclude' '-I.' '-I/usr/local/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude' '-I/usr/local/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude' '-shared-libgcc' /opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.3.1/cc1plus -E -quiet -v -IlnInclude -I. -I/usr/local/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/usr/local/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -D_ALL_SOURCE -Daix -DDP -DNoRepository reaction/reactions/makeChemkinReactions.C -maix32 -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -ftemplate-depth-40 -fpch-preprocess -o makeChemkinReactions.ii ignoring nonexistent directory "/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.3.1/include-fixed" ignoring nonexistent directory "/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.3.1/../../../../powerpc-ibm-aix5.3.0.0/include" #include "..." search starts here: #include <...> search starts here: lnInclude . /usr/local/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude /usr/local/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.3.1/include/c++ /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.3.1/include/c++/powerpc-ibm-aix5.3.0.0 /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.3.1/include/c++/backward /usr/local/include /opt/freeware/include /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.3.1/include /usr/include End of search list. COLLECT_GCC_OPTIONS='-c' '-v' '-save-temps' '-maix32' '-Daix' '-DDP' '-Wall' '-Wno-strict-aliasing' '-Wextra' '-Wno-unused-parameter' '-Wold-style-cast' '-DNoRepository' '-ftemplate-depth-40' '-IlnInclude' '-I.' '-I/usr/local/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude' '-I/usr/local/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude' '-shared-libgcc' /opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.3.1/cc1plus -fpreprocessed makeChemkinReactions.ii -quiet -dumpbase makeChemkinReactions.C -maix32 -auxbase makeChemkinReactions -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -version -ftemplate-depth-40 -o makeChemkinReactions.s GNU C++ (GCC) version 4.3.1 (powerpc-ibm-aix5.3.0.0) compiled by GNU C version 4.3.1, GMP version 4.2.2, MPFR version 2.3.1. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 75e8825e7e5e448ca4cc214b313b85d6 lnInclude/Reaction.H: In static member function 'static Foam::autoPtr<Foam::Reaction<ReactionThermo> > Foam::Reaction<ReactionThermo>::addIstreamConstructorToTable<ReactionType>::New(const Foam::speciesTable&, const Foam::HashPtrTable<ReactionThermo, Foam::word, Foam::string::hash>&, Foam::Istream&) [with ReactionType = Foam::NonEquilibriumReversibleReaction<Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > >, Foam::ArrheniusReactionRate>, ReactionThermo = Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > >]': lnInclude/Reaction.H:143: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. GCC420 ICEs ----------- interpolation/surfaceInterpolation/limitedSchemes/Minmod/Minmod.C:38: internal compiler error: Segmentation fault reaction/reactions/makeChemkinReactions.C:70: internal compiler error: Segmentation fault chemistryReaders/chemkinReader/chemkinReader.C:903: internal compiler error: Segmentation fault RASModel/RASModel.C:207: internal compiler error: Segmentation fault LESModel/LESModel.C:139: internal compiler error: Segmentation fault clouds/derived/basicReactingCloud/basicReactingCloud.C:78: internal compiler error: Segmentation fault [lnInclude/Reaction.H: include from reaction/reactions/makeChemkinReactions.C] 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 -IlnInclude -I. -I/usr/local/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/usr/local/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -D_ALL_SOURCE -Daix -DDP -DNoRepository reaction/reactions/makeChemkinReactions.C -maix32 -Wall -fpch-preprocess -o makeChemkinReactions.ii 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: lnInclude . /usr/local/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude /usr/local/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude /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/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 makeChemkinReactions.ii -quiet -dumpbase makeChemkinReactions.C -maix32 -auxbase makeChemkinReactions -Wall -version -o makeChemkinReactions.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 reaction/reactions/makeChemkinReactions.C:70: 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. -- Summary: 7 Internal Compiler Errors when compiling OpenFOAM-1.5 Product: gcc Version: 4.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jorn dot amundsen at ntnu dot no GCC build triplet: powerpc-ibm-aix5.3.0.0 GCC host triplet: powerpc-ibm-aix5.3.0.0 GCC target triplet: powerpc-ibm-aix5.3.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37057