On 11 January 2016 at 12:48, Gabriel VLASIU wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > Hi. > > I'm trying to build gcc 5.2.1 on AIX (7.1). Why 5.2.1 and not the 5.3 release? > I manage to build gcc using ./configure .... && make. Don't build in the source directory. https://gcc.gnu.org/wiki/FAQ#configure > But I cannot build-it using --enable-bootstrap configure option and then > "make bootstrap-lean". The build process always stop with this kind of > errors (lots of them): > > /home/gabriel/work/rpm/BUILD/gcc-build-5.2.1/./prev-gcc/xg++ > - -B/home/gabriel/work/rpm/BUILD/gcc-build-5.2.1/./prev-gcc/ > - -B/opt/freeware/powerpc-ibm-aix7.1.0.0/bin/ -nostdinc++ > - -B/home/gabriel/work/rpm/BUILD/gcc-build-5.2.1/prev-powerpc-ibm-aix7.1.0.0/libstdc++-v3/src/.libs > - -B/home/gabriel/work/rpm/BUILD/gcc-build-5.2.1/prev-powerpc-ibm-aix7.1.0.0/libstdc++-v3/libsupc++/.libs > - -isystem /home/gabriel/work/rpm/BUILD/gcc-build-5.2.1/prev-powerpc-ibm-aix7.1.0.0/libstdc++-v3/include/powerpc-ibm-aix7.1.0.0 > - -isystem /home/gabriel/work/rpm/BUILD/gcc-build-5.2.1/prev-powerpc-ibm-aix7.1.0.0/libstdc++-v3/include > - -isystem /home/gabriel/work/rpm/BUILD/gcc-5.2.1-20151104/libstdc++-v3/libsupc++ > - -L/home/gabriel/work/rpm/BUILD/gcc-build-5.2.1/prev-powerpc-ibm-aix7.1.0.0/libstdc++-v3/src/.libs > - -L/home/gabriel/work/rpm/BUILD/gcc-build-5.2.1/prev-powerpc-ibm-aix7.1.0.0/libstdc++-v3/libsupc++/.libs > - -c -O2 -I/opt/freeware/include -DIN_GCC -fno-exceptions -fno-rtti > - -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings > - -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic > - -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings > - -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild > - -I../../gcc-5.2.1-20151104/gcc -I../../gcc-5.2.1-20151104/gcc/build > - -I../../gcc-5.2.1-20151104/gcc/../include > - -I../../gcc-5.2.1-20151104/gcc/../libcpp/include \ > -o build/gengenrtl.o ../../gcc-5.2.1-20151104/gcc/gengenrtl.c > In file included from /home/gabriel/work/rpm/BUILD/gcc-5.2.1-20151104/libstdc++-v3/include/bits/stringfwd.h:40:0, > from /home/gabriel/work/rpm/BUILD/gcc-5.2.1-20151104/libstdc++-v3/include/std/string:39, > from ../../gcc-5.2.1-20151104/gcc/system.h:201, > from ../../gcc-5.2.1-20151104/gcc/genconstants.c:28: > /home/gabriel/work/rpm/BUILD/gcc-5.2.1-20151104/libstdc++-v3/include/bits/memoryfwd.h:63:3: > error: template with C linkage > template<typename> > ^ It shouldn't be necessary, but you might be able to work around this by changing the #include at gcc/system.h:201 to #ifdef __cplusplus extern "C++" { # include <string> } #endif