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.
06-15-2016, 12:21 PM
#31
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Well you need to post more of the error At least the 20 lines
Code:
put them in code tags
3 lines is not enough to know the problem. as tnut mention there are better distros "Debian, Slackware, Arch"
06-15-2016, 12:29 PM
#32
Member
Registered: Jun 2016
Posts: 78
Original Poster
Rep:
ok I'm doing once again compile gcc-5.2.0 pass1 I will see what happed
06-15-2016, 12:30 PM
#33
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Did you remove the old gcc-5.2.0 and gcc-build dirs before moving on or restarting?
06-15-2016, 12:40 PM
#34
Member
Registered: Jun 2016
Posts: 78
Original Poster
Rep:
yes I'm removing old GCC-build directory
06-15-2016, 12:50 PM
#35
Member
Registered: Jun 2016
Posts: 78
Original Poster
Rep:
once again same error can any one tell me why this happened and solution for this
-o build/genchecksum.o ../../gcc-5.2.0/gcc/genchecksum.c
g++ -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 -DGENERATOR_FILE -o build/genchecksum \
build/genchecksum.o ../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a
echo "g++ -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 " > checksum-options.tmp \
&& ../../gcc-5.2.0/gcc/../move-if-change checksum-options.tmp checksum-options
g++ -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 -DGENERATOR_FILE -I. -Ibuild -I../../gcc-5.2.0/gcc -I../../gcc-5.2.0/gcc/build -I../../gcc-5.2.0/gcc/../include -I../../gcc-5.2.0/gcc/../libcpp/include \
-o build/genattrtab.o ../../gcc-5.2.0/gcc/genattrtab.c
g++ -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 -DGENERATOR_FILE -o build/genattrtab \
build/genattrtab.o build/rtl.o build/read-rtl.o build/ggc-none.o build/vec.o build/min-insn-modes.o build/gensupport.o build/print-rtl.o build/read-md.o build/errors.o ../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a
build/genattrtab ../../gcc-5.2.0/gcc/common.md ../../gcc-5.2.0/gcc/config/i386/i386.md insn-conditions.md \
-Atmp-attrtab.c -Dtmp-dfatab.c -Ltmp-latencytab.c
make[2]: *** [s-attrtab] Killed
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
06-15-2016, 01:03 PM
#36
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Did you start from rebuilding binutils again empty tools out
06-15-2016, 01:03 PM
#37
Member
Registered: Jun 2016
Posts: 78
Original Poster
Rep:
can anyone give me solution for this
06-15-2016, 01:10 PM
#38
Member
Registered: Jun 2016
Posts: 78
Original Poster
Rep:
Binutils start once again
06-15-2016, 01:12 PM
#39
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
make sure there is nothing in tools just take your time copy and paste the commnads. If this fails I would look at another host
06-15-2016, 01:19 PM
#40
Member
Registered: Jun 2016
Posts: 78
Original Poster
Rep:
yes /tools is empty what due you mean by next host
06-15-2016, 01:29 PM
#41
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Well maybe centos is not a good host to build with
06-15-2016, 01:55 PM
#42
Member
Registered: Jun 2016
Posts: 78
Original Poster
Rep:
can i use min17 or ubuntu 15 is good host to build this
06-15-2016, 01:59 PM
#43
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Debian is good
06-15-2016, 02:18 PM
#44
Member
Registered: Jun 2016
Posts: 78
Original Poster
Rep:
i don't know use of Debian which version Debian good
06-15-2016, 02:23 PM
#45
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
I used Debian 8 just make it compliant to build using the version=script check
All times are GMT -5. The time now is 12:15 PM .
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