LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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


Reply
  Search this Thread
Old 12-20-2023, 12:35 AM   #1
nomadunix_
LQ Newbie
 
Registered: Dec 2023
Location: Information unavailable
Posts: 16

Rep: Reputation: 0
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.
 
Old 12-20-2023, 01:28 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,575
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Quote:
Originally Posted by nomadunix_ View Post
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.
 
  


Reply

Tags
error, gcc, trouble



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
step 5.10 gcc/limitx.h gcc/glimits.h gcc/limity.h no such file or directory iambrj Linux From Scratch 7 08-07-2018 11:22 AM
LXer: GCC 4.9 vs. GCC 5.1 vs. GCC 6.0 SVN Compiler Benchmarks LXer Syndicated Linux News 0 06-08-2015 01:00 PM
[SOLVED] SEGMENTATION FAULT using gcc 4.4.4 -O2 , works with gcc 4.1.0 -O2 or gcc 4.4.4 -O1 amir1981 Programming 36 07-26-2010 06:07 PM
Compiling gcc without any gcc installed my_kappa Linux - Software 5 01-30-2006 12:15 AM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 11:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration