For a while I've been trying to compile gcc (7.2.0) by following this site's tutorial (Hosted GCC Cross Compiler) and I'm blocking when compiling gcc:
Code: Select all
make all-gcc
Code: Select all
g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -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 -I. -I. -I../../gcc-7.2.0/gcc -I../../gcc-7.2.0/gcc/. -I../../gcc-7.2.0/gcc/../include -I../../gcc-7.2.0/gcc/../libcpp/include -I/home/haoud/Téléchargements/src/build-gcc/./gmp -I/home/haoud/Téléchargements/src/gcc-7.2.0/gmp -I/home/haoud/Téléchargements/src/build-gcc/./mpfr/src -I/home/haoud/Téléchargements/src/gcc-7.2.0/mpfr/src -I/home/haoud/Téléchargements/src/gcc-7.2.0/mpc/src -I../../gcc-7.2.0/gcc/../libdecnumber -I../../gcc-7.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-7.2.0/gcc/../libbacktrace -I/home/haoud/Téléchargements/src/build-gcc/./isl/include -I/home/haoud/Téléchargements/src/gcc-7.2.0/isl/include -o context.o -MT context.o -MMD -MP -MF ./.deps/context.TPo ../../gcc-7.2.0/gcc/context.c
g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -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 -I. -I. -I../../gcc-7.2.0/gcc -I../../gcc-7.2.0/gcc/. -I../../gcc-7.2.0/gcc/../include -I../../gcc-7.2.0/gcc/../libcpp/include -I/home/haoud/Téléchargements/src/build-gcc/./gmp -I/home/haoud/Téléchargements/src/gcc-7.2.0/gmp -I/home/haoud/Téléchargements/src/build-gcc/./mpfr/src -I/home/haoud/Téléchargements/src/gcc-7.2.0/mpfr/src -I/home/haoud/Téléchargements/src/gcc-7.2.0/mpc/src -I../../gcc-7.2.0/gcc/../libdecnumber -I../../gcc-7.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-7.2.0/gcc/../libbacktrace -I/home/haoud/Téléchargements/src/build-gcc/./isl/include -I/home/haoud/Téléchargements/src/gcc-7.2.0/isl/include -o convert.o -MT convert.o -MMD -MP -MF ./.deps/convert.TPo ../../gcc-7.2.0/gcc/convert.c
g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -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 -I. -I. -I../../gcc-7.2.0/gcc -I../../gcc-7.2.0/gcc/. -I../../gcc-7.2.0/gcc/../include -I../../gcc-7.2.0/gcc/../libcpp/include -I/home/haoud/Téléchargements/src/build-gcc/./gmp -I/home/haoud/Téléchargements/src/gcc-7.2.0/gmp -I/home/haoud/Téléchargements/src/build-gcc/./mpfr/src -I/home/haoud/Téléchargements/src/gcc-7.2.0/mpfr/src -I/home/haoud/Téléchargements/src/gcc-7.2.0/mpc/src -I../../gcc-7.2.0/gcc/../libdecnumber -I../../gcc-7.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-7.2.0/gcc/../libbacktrace -I/home/haoud/Téléchargements/src/build-gcc/./isl/include -I/home/haoud/Téléchargements/src/gcc-7.2.0/isl/include -o coverage.o -MT coverage.o -MMD -MP -MF ./.deps/coverage.TPo ../../gcc-7.2.0/gcc/coverage.c
../../gcc-7.2.0/gcc/coverage.c: In function ‘bool coverage_obj_init()’:
../../gcc-7.2.0/gcc/coverage.c:1155:51: error: ‘ASM_GENERATE_INTERNAL_LABEL’ was not declared in this scope
ASM_GENERATE_INTERNAL_LABEL (name_buf, "LPBX", 0);
How to solve this problem? Thank you!
PS: Sorry for my bad English but i'm french