On 25 September 2015 at 18:21, Kai Ruottu <kai.ruottu@xxxxxxxxxxx> wrote: > 25.9.2015, 5:21, Renato Mendes kirjoitti: >> >> I tried also with an older version of gcc (4.8.2) and got the same >> problem in different source file, this time on genconstants.c. Check >> the logs: >> >> make[3]: Entering directory `/home/ftp/pub/gcc-build/gcc' >> g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti >> -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual >> -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H >> -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.8.2/gcc >> -I../../gcc-4.8.2/gcc/build -I../../gcc-4.8.2/gcc/../include >> -I../../gcc-4.8.2/gcc/../libcpp/include >> -I../../gcc-4.8.2/gcc/../libdecnumber >> -I../../gcc-4.8.2/gcc/../libdecnumber/bid -I../libdecnumber >> -I../../gcc-4.8.2/gcc/../libbacktrace \ >> -o build/genconstants.o ../../gcc-4.8.2/gcc/genconstants.c >> In file included from ../../gcc-4.8.2/gcc/genconstants.c:28: >> ../../gcc-4.8.2/gcc/system.h:205:20: cstring: No such file or directory >> ../../gcc-4.8.2/gcc/genconstants.c: In function `int >> print_md_constant(void**, >> void*)': >> ../../gcc-4.8.2/gcc/genconstants.c:38: warning: unused parameter >> `void*info' >> ../../gcc-4.8.2/gcc/genconstants.c: In function `int >> print_enum_type(void**, >> void*)': >> ../../gcc-4.8.2/gcc/genconstants.c:51: warning: unused parameter >> `void*info' >> make[3]: *** [build/genconstants.o] Error 1 >> make[3]: Leaving directory `/home/ftp/pub/gcc-build/gcc' >> make[2]: *** [all-stage1-gcc] Error 2 >> make[2]: Leaving directory `/home/ftp/pub/gcc-build' >> make[1]: *** [stage1-bubble] Error 2 >> make[1]: Leaving directory `/home/ftp/pub/gcc-build' >> make: *** [all] Error 2 >> >> > As you can see the GCC sources are tried to be compiled using 'g++', not > 'gcc' as it > happened in the gcc-3 - early gcc-4 times! > > If your C++ compiler doesn't understand the current sources, then please try > adding : > > --disable-build-with-cxx > That won't work with 5.2, building with C++ is not optional, it's required. Releases before 4.8.2 can be built without a C++ compiler.