LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-10-2012, 02:12 PM   #1
kamkar
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Rep: Reputation: Disabled
gcc make problem


hi to all;
I am using lfs-6.4 and my host OS is fedora 12. i followed the instructions in the document up to section 5.5. means i have made the binutils Pass1. but in making gcc i encountered a problem.
here is the last lines of make result :


make[3]: Entering directory `/mnt/lfs/sources/gcc-build/gcc'
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="" \
/bin/sh ../../gcc-4.3.2/gcc/mkconfig.sh config.h
TARGET_CPU_DEFAULT="" \
HEADERS="options.h config/i386/i386.h config/i386/unix.h config/i386/att.h config/dbxelf.h config/elfos.h config/svr4.h config/linux.h config/i386/linux.h defaults.h" DEFINES="UCLIBC_DEFAULT=0" \
/bin/sh ../../gcc-4.3.2/gcc/mkconfig.sh tm.h
gawk -f ../../gcc-4.3.2/gcc/opt-gather.awk ../../gcc-4.3.2/gcc/ada/lang.opt ../../gcc-4.3.2/gcc/fortran/lang.opt ../../gcc-4.3.2/gcc/java/lang.opt ../../gcc-4.3.2/gcc/treelang/lang.opt ../../gcc-4.3.2/gcc/c.opt ../../gcc-4.3.2/gcc/common.opt ../../gcc-4.3.2/gcc/config/i386/i386.opt ../../gcc-4.3.2/gcc/config/linux.opt > tmp-optionlist
/bin/sh ../../gcc-4.3.2/gcc/../move-if-change tmp-optionlist optionlist
echo timestamp > s-options
gawk -f ../../gcc-4.3.2/gcc/opt-functions.awk -f ../../gcc-4.3.2/gcc/opth-gen.awk \
< optionlist > tmp-options.h
/bin/sh ../../gcc-4.3.2/gcc/../move-if-change tmp-options.h options.h
echo timestamp > s-options-h
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="" \
/bin/sh ../../gcc-4.3.2/gcc/mkconfig.sh bconfig.h
/mnt/lfs/sources/gcc-build/./prev-gcc/xgcc -B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/i686-pc-linux-gnu/bin/ -c -g -O2 -fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.3.2/gcc -I../../gcc-4.3.2/gcc/build -I../../gcc-4.3.2/gcc/../include -I../../gcc-4.3.2/gcc/../libcpp/include -I/mnt/lfs/sources/gcc-build/./gmp -I/mnt/lfs/sources/gcc-4.3.2/gmp -I/mnt/lfs/sources/gcc-build/./mpfr -I/mnt/lfs/sources/gcc-4.3.2/mpfr -I../../gcc-4.3.2/gcc/../libdecnumber -I../../gcc-4.3.2/gcc/../libdecnumber/bid -I../libdecnumber -o build/genmodes.o ../../gcc-4.3.2/gcc/genmodes.c
/mnt/lfs/sources/gcc-build/./prev-gcc/xgcc -B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/i686-pc-linux-gnu/bin/ -c -g -O2 -fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.3.2/gcc -I../../gcc-4.3.2/gcc/build -I../../gcc-4.3.2/gcc/../include -I../../gcc-4.3.2/gcc/../libcpp/include -I/mnt/lfs/sources/gcc-build/./gmp -I/mnt/lfs/sources/gcc-4.3.2/gmp -I/mnt/lfs/sources/gcc-build/./mpfr -I/mnt/lfs/sources/gcc-4.3.2/mpfr -I../../gcc-4.3.2/gcc/../libdecnumber -I../../gcc-4.3.2/gcc/../libdecnumber/bid -I../libdecnumber -o build/errors.o ../../gcc-4.3.2/gcc/errors.c
/mnt/lfs/sources/gcc-build/./prev-gcc/xgcc -B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/i686-pc-linux-gnu/bin/ -g -O2 -fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/genmodes \
build/genmodes.o build/errors.o .././libiberty/libiberty.a
build/genmodes -h > tmp-modes.h
/bin/sh: line 1: 32116 Segmentation fault (core dumped) build/genmodes -h > tmp-modes.h
make[3]: *** [s-modes-h] Error 139
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2



i updated the gcc package to 4.4.4-10 but the problem persists.
i note that i have done all steps exactly similar to what the document says and also i have to do this work exactly with this version of lfs.
i will be thankful if any one helps me.
 
Old 04-10-2012, 02:45 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

1st why are you building lfs6.4 which is very old lfs7.1 is the new 1
I would recommend changing to the newer version

Also did you make sure your host was compliant with buiding here
 
1 members found this post helpful.
Old 04-10-2012, 11:19 PM   #3
kamkar
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
thanks for your answer.
i checked the system requirements mentioned in lfs6.4 and it is compliant with building the lfs.
i tried compilimg gcc in virtual-box(with fedora 12) and it was built without any errors(after 3 hours!!!) i wonder why it cant be built in my host OS.
any suggestion(rather than using lfs7.1)??
 
Old 04-10-2012, 11:26 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,612

Rep: Reputation: 2649Reputation: 2649Reputation: 2649Reputation: 2649Reputation: 2649Reputation: 2649Reputation: 2649Reputation: 2649Reputation: 2649Reputation: 2649Reputation: 2649
Quote:
i tried compilimg gcc in virtual-box(with fedora 12)
seeing as your host is VERY and long past it's End Of Life
you might want to have a look at fedora's " End Of Life " forum page

http://forums.fedoraforum.org/forumdisplay.php?f=75
 
Old 04-11-2012, 01:13 AM   #5
kamkar
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
ok... means it may not be supported. but it's yum feature still works and i can download it's packages from rpm.pbone.
i want to do this for educational aim.
still waiting for others to suggest a solution...
and lastly if there were no idea i will upgrade to the new version.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
make check problem gcc in section 6.15.1 of lfs6.5 aahiqmir Linux From Scratch 17 09-29-2012 03:47 AM
5.5. GCC-4.4.0 - Pass 1 Make Problem pcallahan80 Linux From Scratch 10 03-05-2010 06:07 PM
gcc make install problem jpeters Linux From Scratch 3 03-25-2009 10:26 AM
Problem with new installation of SUSE, gcc & make not found abefroman SUSE / openSUSE 5 01-18-2008 12:36 PM
gcc/make problem zach0616 SUSE / openSUSE 1 07-10-2005 06:50 PM

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

All times are GMT -5. The time now is 05:18 PM.

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