Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
12-20-2023, 12:35 AM
#1
LQ Newbie
Registered: Dec 2023
Location: Information unavailable
Posts: 16
Rep:
Trouble in compiling gcc
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 2
it'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.
Last edited by nomadunix_; 12-20-2023 at 12:44 AM .
12-20-2023, 01:28 AM
#2
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,575
Quote:
Originally Posted by
nomadunix_
Hi everyone! Today i wanted to install LFS and given in gcc compile error
it'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.
Well, that's just it! You've answered your own question. You need to create a build directory within the toplevel directory of your freshly untarred source and cd to it. Several packages in LFS need to be built like that, not just gcc. As a general rule in LFS, you should follow the instructions exactly, especially if it's your first time.
All times are GMT -5. The time now is 10:18 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News