Article 6H97F Trouble in compiling gcc

Trouble in compiling gcc

by
nomadunix_
from LinuxQuestions.org on (#6H97F)
Hi everyone! Today i wanted to install LFS and given in gcc compile error
Code:checking for __attribute__((visibility("hidden")))... yes
checking for .cfi_sections .debug_frame... yes
checking whether the target assembler supports thread-local storage... yes
checking whether the thread-local storage support is from emutls... no
checking if the assembler supports AVX... yes
checking for init priority support... yes
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating auto-target.h
config.status: executing default commands
mv -f .deps/libcp1.Tpo .deps/libcp1.Plo
/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.././libcc1 -I ../.././libcc1/../include -I ../.././libcc1/../libgcc -I ../gcc -I../.././libcc1/../gcc -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/gmp -I/mnt/lfs/sources/gcc/gmp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/mnt/lfs/sources/gcc/mpfr/src -I/mnt/lfs/sources/gcc/mpc/src -I ../.././libcc1/../gcc/c-family -I ../.././libcc1/../libcpp/include -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -MT compiler.lo -MD -MP -MF .deps/compiler.Tpo -c -o compiler.lo ../.././libcc1/compiler.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.././libcc1 -I ../.././libcc1/../include -I ../.././libcc1/../libgcc -I ../gcc -I../.././libcc1/../gcc -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/gmp -I/mnt/lfs/sources/gcc/gmp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/mnt/lfs/sources/gcc/mpfr/src -I/mnt/lfs/sources/gcc/mpc/src -I ../.././libcc1/../gcc/c-family -I ../.././libcc1/../libcpp/include -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -MT compiler.lo -MD -MP -MF .deps/compiler.Tpo -c ../.././libcc1/compiler.cc -fPIC -DPIC -o .libs/compiler.o
make[2]: Entering directory '/mnt/lfs/sources/gcc/x86_64-lfs-linux-gnu/libgcc'
Makefile:183: ../.././gcc/libgcc.mvars: No such file or directory
make[2]: *** No rule to make target '../.././gcc/libgcc.mvars'. Stop.
make[2]: Leaving directory '/mnt/lfs/sources/gcc/x86_64-lfs-linux-gnu/libgcc'
make[1]: *** [Makefile:14530: all-target-libgcc] Error 2
make[1]: *** Waiting for unfinished jobs....
/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.././libcc1 -I ../.././libcc1/../include -I ../.././libcc1/../libgcc -I ../gcc -I../.././libcc1/../gcc -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/gmp -I/mnt/lfs/sources/gcc/gmp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/mnt/lfs/sources/gcc/mpfr/src -I/mnt/lfs/sources/gcc/mpc/src -I ../.././libcc1/../gcc/c-family -I ../.././libcc1/../libcpp/include -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -MT names.lo -MD -MP -MF .deps/names.Tpo -c -o names.lo ../.././libcc1/names.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.././libcc1 -I ../.././libcc1/../include -I ../.././libcc1/../libgcc -I ../gcc -I../.././libcc1/../gcc -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/gmp -I/mnt/lfs/sources/gcc/gmp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/mnt/lfs/sources/gcc/mpfr/src -I/mnt/lfs/sources/gcc/mpc/src -I ../.././libcc1/../gcc/c-family -I ../.././libcc1/../libcpp/include -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -MT names.lo -MD -MP -MF .deps/names.Tpo -c ../.././libcc1/names.cc -fPIC -DPIC -o .libs/names.o
mv -f .deps/names.Tpo .deps/names.Plo
/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.././libcc1 -I ../.././libcc1/../include -I ../.././libcc1/../libgcc -I ../gcc -I../.././libcc1/../gcc -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/gmp -I/mnt/lfs/sources/gcc/gmp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/mnt/lfs/sources/gcc/mpfr/src -I/mnt/lfs/sources/gcc/mpc/src -I ../.././libcc1/../gcc/c-family -I ../.././libcc1/../libcpp/include -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -MT callbacks.lo -MD -MP -MF .deps/callbacks.Tpo -c -o callbacks.lo ../.././libcc1/callbacks.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.././libcc1 -I ../.././libcc1/../include -I ../.././libcc1/../libgcc -I ../gcc -I../.././libcc1/../gcc -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/gmp -I/mnt/lfs/sources/gcc/gmp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/mnt/lfs/sources/gcc/mpfr/src -I/mnt/lfs/sources/gcc/mpc/src -I ../.././libcc1/../gcc/c-family -I ../.././libcc1/../libcpp/include -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -MT callbacks.lo -MD -MP -MF .deps/callbacks.Tpo -c ../.././libcc1/callbacks.cc -fPIC -DPIC -o .libs/callbacks.o
mv -f .deps/callbacks.Tpo .deps/callbacks.Plo
/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.././libcc1 -I ../.././libcc1/../include -I ../.././libcc1/../libgcc -I ../gcc -I../.././libcc1/../gcc -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/gmp -I/mnt/lfs/sources/gcc/gmp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/mnt/lfs/sources/gcc/mpfr/src -I/mnt/lfs/sources/gcc/mpc/src -I ../.././libcc1/../gcc/c-family -I ../.././libcc1/../libcpp/include -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -MT connection.lo -MD -MP -MF .deps/connection.Tpo -c -o connection.lo ../.././libcc1/connection.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.././libcc1 -I ../.././libcc1/../include -I ../.././libcc1/../libgcc -I ../gcc -I../.././libcc1/../gcc -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/gmp -I/mnt/lfs/sources/gcc/gmp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/mnt/lfs/sources/gcc/mpfr/src -I/mnt/lfs/sources/gcc/mpc/src -I ../.././libcc1/../gcc/c-family -I ../.././libcc1/../libcpp/include -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -MT connection.lo -MD -MP -MF .deps/connection.Tpo -c ../.././libcc1/connection.cc -fPIC -DPIC -o .libs/connection.o
mv -f .deps/compiler.Tpo .deps/compiler.Plo
/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.././libcc1 -I ../.././libcc1/../include -I ../.././libcc1/../libgcc -I ../gcc -I../.././libcc1/../gcc -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/gmp -I/mnt/lfs/sources/gcc/gmp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/mnt/lfs/sources/gcc/mpfr/src -I/mnt/lfs/sources/gcc/mpc/src -I ../.././libcc1/../gcc/c-family -I ../.././libcc1/../libcpp/include -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -MT marshall.lo -MD -MP -MF .deps/marshall.Tpo -c -o marshall.lo ../.././libcc1/marshall.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.././libcc1 -I ../.././libcc1/../include -I ../.././libcc1/../libgcc -I ../gcc -I../.././libcc1/../gcc -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/gmp -I/mnt/lfs/sources/gcc/gmp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/mnt/lfs/sources/gcc/mpfr/src -I/mnt/lfs/sources/gcc/mpc/src -I ../.././libcc1/../gcc/c-family -I ../.././libcc1/../libcpp/include -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -MT marshall.lo -MD -MP -MF .deps/marshall.Tpo -c ../.././libcc1/marshall.cc -fPIC -DPIC -o .libs/marshall.o
mv -f .deps/connection.Tpo .deps/connection.Plo
/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.././libcc1 -I ../.././libcc1/../include -I ../.././libcc1/../libgcc -I ../gcc -I../.././libcc1/../gcc -I ../.././libcc1/../gcc/c -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/gmp -I/mnt/lfs/sources/gcc/gmp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/mnt/lfs/sources/gcc/mpfr/src -I/mnt/lfs/sources/gcc/mpc/src -I ../.././libcc1/../gcc/c-family -I ../.././libcc1/../libcpp/include -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -MT libcc1plugin.lo -MD -MP -MF .deps/libcc1plugin.Tpo -c -o libcc1plugin.lo ../.././libcc1/libcc1plugin.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.././libcc1 -I ../.././libcc1/../include -I ../.././libcc1/../libgcc -I ../gcc -I../.././libcc1/../gcc -I ../.././libcc1/../gcc/c -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/gmp -I/mnt/lfs/sources/gcc/gmp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/mnt/lfs/sources/gcc/mpfr/src -I/mnt/lfs/sources/gcc/mpc/src -I ../.././libcc1/../gcc/c-family -I ../.././libcc1/../libcpp/include -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -MT libcc1plugin.lo -MD -MP -MF .deps/libcc1plugin.Tpo -c ../.././libcc1/libcc1plugin.cc -fPIC -DPIC -o .libs/libcc1plugin.o
mv -f .deps/marshall.Tpo .deps/marshall.Plo
/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.././libcc1 -I ../.././libcc1/../include -I ../.././libcc1/../libgcc -I ../gcc -I../.././libcc1/../gcc -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/gmp -I/mnt/lfs/sources/gcc/gmp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/mnt/lfs/sources/gcc/mpfr/src -I/mnt/lfs/sources/gcc/mpc/src -I ../.././libcc1/../gcc/c-family -I ../.././libcc1/../libcpp/include -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -MT context.lo -MD -MP -MF .deps/context.Tpo -c -o context.lo ../.././libcc1/context.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.././libcc1 -I ../.././libcc1/../include -I ../.././libcc1/../libgcc -I ../gcc -I../.././libcc1/../gcc -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/gmp -I/mnt/lfs/sources/gcc/gmp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/mnt/lfs/sources/gcc/mpfr/src -I/mnt/lfs/sources/gcc/mpc/src -I ../.././libcc1/../gcc/c-family -I ../.././libcc1/../libcpp/include -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -MT context.lo -MD -MP -MF .deps/context.Tpo -c ../.././libcc1/context.cc -fPIC -DPIC -o .libs/context.o
mv -f .deps/context.Tpo .deps/context.Plo
/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.././libcc1 -I ../.././libcc1/../include -I ../.././libcc1/../libgcc -I ../gcc -I../.././libcc1/../gcc -I ../.././libcc1/../gcc/cp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/gmp -I/mnt/lfs/sources/gcc/gmp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/mnt/lfs/sources/gcc/mpfr/src -I/mnt/lfs/sources/gcc/mpc/src -I ../.././libcc1/../gcc/c-family -I ../.././libcc1/../libcpp/include -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -MT libcp1plugin.lo -MD -MP -MF .deps/libcp1plugin.Tpo -c -o libcp1plugin.lo ../.././libcc1/libcp1plugin.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.././libcc1 -I ../.././libcc1/../include -I ../.././libcc1/../libgcc -I ../gcc -I../.././libcc1/../gcc -I ../.././libcc1/../gcc/cp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/gmp -I/mnt/lfs/sources/gcc/gmp -I/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/mpfr/src -I/mnt/lfs/sources/gcc/mpfr/src -I/mnt/lfs/sources/gcc/mpc/src -I ../.././libcc1/../gcc/c-family -I ../.././libcc1/../libcpp/include -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -MT libcp1plugin.lo -MD -MP -MF .deps/libcp1plugin.Tpo -c ../.././libcc1/libcp1plugin.cc -fPIC -DPIC -o .libs/libcp1plugin.o
mv -f .deps/libcc1plugin.Tpo .deps/libcc1plugin.Plo
/bin/bash ./libtool --tag=CXX --mode=link g++ -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -module -export-symbols ../.././libcc1/libcc1.sym -Xcompiler '-static-libstdc++' -Xcompiler '-static-libgcc' -o libcc1.la -rpath /mnt/lfs/tools/lib/../lib findcomp.lo libcc1.lo libcp1.lo compiler.lo names.lo callbacks.lo connection.lo marshall.lo -Wc,../libiberty/pic/libiberty.a
libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/12/crtbeginS.o .libs/findcomp.o .libs/libcc1.o .libs/libcp1.o .libs/compiler.o .libs/names.o .libs/callbacks.o .libs/connection.o .libs/marshall.o -L/usr/lib/gcc/x86_64-linux-gnu/12 -L/usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/12/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/12/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/12/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/crtn.o -static-libstdc++ -static-libgcc ../libiberty/pic/libiberty.a -Wl,-soname -Wl,libcc1.so.0 -Wl,-retain-symbols-file -Wl,../.././libcc1/libcc1.sym -o .libs/libcc1.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libcc1.so.0" && ln -s "libcc1.so.0.0.0" "libcc1.so.0")
libtool: link: (cd ".libs" && rm -f "libcc1.so" && ln -s "libcc1.so.0.0.0" "libcc1.so")
libtool: link: ( cd ".libs" && rm -f "libcc1.la" && ln -s "../libcc1.la" "libcc1.la" )
/bin/bash ./libtool --tag=CXX --mode=link g++ -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -module -export-symbols ../.././libcc1/libcc1plugin.sym -Xcompiler '-static-libstdc++' -Xcompiler '-static-libgcc' -o libcc1plugin.la -rpath /mnt/lfs/tools/lib/gcc/x86_64-lfs-linux-gnu/13.2.0/plugin libcc1plugin.lo context.lo callbacks.lo connection.lo marshall.lo -Wc,../libiberty/pic/libiberty.a
libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/12/crtbeginS.o .libs/libcc1plugin.o .libs/context.o .libs/callbacks.o .libs/connection.o .libs/marshall.o -L/usr/lib/gcc/x86_64-linux-gnu/12 -L/usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/12/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/12/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/12/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/crtn.o -static-libstdc++ -static-libgcc ../libiberty/pic/libiberty.a -Wl,-soname -Wl,libcc1plugin.so.0 -Wl,-retain-symbols-file -Wl,../.././libcc1/libcc1plugin.sym -o .libs/libcc1plugin.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libcc1plugin.so.0" && ln -s "libcc1plugin.so.0.0.0" "libcc1plugin.so.0")
libtool: link: (cd ".libs" && rm -f "libcc1plugin.so" && ln -s "libcc1plugin.so.0.0.0" "libcc1plugin.so")
libtool: link: ( cd ".libs" && rm -f "libcc1plugin.la" && ln -s "../libcc1plugin.la" "libcc1plugin.la" )
mv -f .deps/libcp1plugin.Tpo .deps/libcp1plugin.Plo
/bin/bash ./libtool --tag=CXX --mode=link g++ -W -Wall -fvisibility=hidden -fcf-protection -g -O2 -module -export-symbols ../.././libcc1/libcp1plugin.sym -Xcompiler '-static-libstdc++' -Xcompiler '-static-libgcc' -o libcp1plugin.la -rpath /mnt/lfs/tools/lib/gcc/x86_64-lfs-linux-gnu/13.2.0/plugin libcp1plugin.lo context.lo callbacks.lo connection.lo marshall.lo -Wc,../libiberty/pic/libiberty.a
libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/12/crtbeginS.o .libs/libcp1plugin.o .libs/context.o .libs/callbacks.o .libs/connection.o .libs/marshall.o -L/usr/lib/gcc/x86_64-linux-gnu/12 -L/usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/12/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/12/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/12/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/crtn.o -static-libstdc++ -static-libgcc ../libiberty/pic/libiberty.a -Wl,-soname -Wl,libcp1plugin.so.0 -Wl,-retain-symbols-file -Wl,../.././libcc1/libcp1plugin.sym -o .libs/libcp1plugin.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libcp1plugin.so.0" && ln -s "libcp1plugin.so.0.0.0" "libcp1plugin.so.0")
libtool: link: (cd ".libs" && rm -f "libcp1plugin.so" && ln -s "libcp1plugin.so.0.0.0" "libcp1plugin.so")
libtool: link: ( cd ".libs" && rm -f "libcp1plugin.la" && ln -s "../libcp1plugin.la" "libcp1plugin.la" )
make[3]: Leaving directory '/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/libcc1'
make[2]: Leaving directory '/mnt/lfs/sources/gcc/host-x86_64-pc-linux-gnu/libcc1'
make[1]: Leaving directory '/mnt/lfs/sources/gcc'
make: *** [Makefile:1028: all] Error 2it's fatal error. How i can fix it and continue compiling

I'm readed the forum with similiar error and noticed that it happens because i build gcc in the main tarball extracted directory which is not correct.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments