LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 01-04-2008, 08:23 PM   #1
lukeiamyourfather
Member
 
Registered: Jul 2007
Distribution: Ubuntu, LFS, Fedora
Posts: 30

Rep: Reputation: 15
GCC build error


hey, I am building gcc (pass 2).
(LFS 6.3)

i ran the configure script, and it was fine, ran 'make' and got this: (sorry, its long)

updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depdir commands
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/libcpp'
gcc -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -c -o charset.o -MT charset.o -MD -MP -MF .deps/charset.Po ../../gcc-4.1.2/libcpp/charset.c
gcc -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -c -o directives.o -MT directives.o -MD -MP -MF .deps/directives.Po ../../gcc-4.1.2/libcpp/directives.c
gcc -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -c -o errors.o -MT errors.o -MD -MP -MF .deps/errors.Po ../../gcc-4.1.2/libcpp/errors.c
gcc -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -c -o expr.o -MT expr.o -MD -MP -MF .deps/expr.Po ../../gcc-4.1.2/libcpp/expr.c
gcc -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -c -o files.o -MT files.o -MD -MP -MF .deps/files.Po ../../gcc-4.1.2/libcpp/files.c
gcc -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -c -o identifiers.o -MT identifiers.o -MD -MP -MF .deps/identifiers.Po ../../gcc-4.1.2/libcpp/identifiers.c
echo "#define LOCALEDIR \"/tools/share/locale\"" > localedir.new
../../gcc-4.1.2/libcpp/../move-if-change localedir.new localedir.h
echo timestamp > localedir.hs
gcc -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -c -o init.o -MT init.o -MD -MP -MF .deps/init.Po ../../gcc-4.1.2/libcpp/init.c
gcc -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -c -o lex.o -MT lex.o -MD -MP -MF .deps/lex.Po ../../gcc-4.1.2/libcpp/lex.c
gcc -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -c -o line-map.o -MT line-map.o -MD -MP -MF .deps/line-map.Po ../../gcc-4.1.2/libcpp/line-map.c
gcc -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -c -o macro.o -MT macro.o -MD -MP -MF .deps/macro.Po ../../gcc-4.1.2/libcpp/macro.c
gcc -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -c -o mkdeps.o -MT mkdeps.o -MD -MP -MF .deps/mkdeps.Po ../../gcc-4.1.2/libcpp/mkdeps.c
gcc -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -c -o pch.o -MT pch.o -MD -MP -MF .deps/pch.Po ../../gcc-4.1.2/libcpp/pch.c
gcc -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -c -o symtab.o -MT symtab.o -MD -MP -MF .deps/symtab.Po ../../gcc-4.1.2/libcpp/symtab.c
gcc -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -c -o traditional.o -MT traditional.o -MD -MP -MF .deps/traditional.Po ../../gcc-4.1.2/libcpp/traditional.c
rm -f libcpp.a
ar cru libcpp.a charset.o directives.o errors.o expr.o files.o identifiers.o init.o lex.o line-map.o macro.o mkdeps.o pch.o symtab.o traditional.o
ranlib libcpp.a
gcc -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I../../gcc-4.1.2/libcpp -I. -I../../gcc-4.1.2/libcpp/../include -I../../gcc-4.1.2/libcpp/include -c -o makedepend.o -MT makedepend.o -MD -MP -MF .deps/makedepend.Po ../../gcc-4.1.2/libcpp/makedepend.c
gcc -g -O2 -o makedepend \
makedepend.o libcpp.a ../libiberty/libiberty.a \

make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/libcpp'
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/gcc'
make[2]: *** No rule to make target `all'. Stop.
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
lfs@dell-gx50-lfs:/mnt/lfs/sources/gcc-build$




here is my host system:

Ubuntu Dapper (6.06)
Intel GX50 1.2 GHz CPU
512 MBs of RAM

I have done everything by the book, except up until glibc-build i was building in the /tools directory.

I'm not new to Linux, but I'm not an expert.


Thanks,
Chris
 
Old 01-04-2008, 09:59 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,755
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
Something went wrong during the configure and no Makefile was created in /mnt/lfs/sources/gcc-build/gcc or the Makefile that was created is hosed. Did you delete gcc-build and gcc-4.1.2 after pass 1 and then re-extract the gcc tarball when you got to pass 2?
 
Old 01-04-2008, 11:13 PM   #3
lukeiamyourfather
Member
 
Registered: Jul 2007
Distribution: Ubuntu, LFS, Fedora
Posts: 30

Original Poster
Rep: Reputation: 15
Yeah, I deleted those two directories to conserve disk space. I usually delete those directories after I build any of the programs. Did I do something wrong?
 
Old 01-04-2008, 11:50 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,755
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
Nope, you're supposed to delete those directories when you're finished with them. Nonetheless, something went wrong with the configure and you don't have a Makefile (or you have a hosed Makefile) in gcc-build/gcc. Can't tell from what you've posted.
 
Old 01-05-2008, 12:02 AM   #5
lukeiamyourfather
Member
 
Registered: Jul 2007
Distribution: Ubuntu, LFS, Fedora
Posts: 30

Original Poster
Rep: Reputation: 15
can you tell me what more I need to post, or where else I can get some help?
 
Old 01-05-2008, 12:01 PM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,755
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
I can only tell you that the configure step borked. If this is the first try and it were me, I would try again. If it failed the second time, I'd start studying the config.log.

IMHO the best place for LFS or CLFS support is at freenode.net on the IRC channels. Either #lfs-support or #cross-lfs and the guys at cross-lfs can help you with LFS too.
 
  


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
trying to build GCC alx84dan Linux - Newbie 1 11-29-2006 02:28 PM
Gcc Build error: target=Mips Kcghost Programming 2 05-19-2006 12:23 AM
Which gcc-build.........is there another book? matthewa Linux From Scratch 4 04-06-2005 07:40 AM
kernel build from gcc 3.3.2 to gcc 3.4.1 alcarbone Linux - Software 1 09-13-2004 09:19 AM
GCC first build for LFS, bootstrap error Blibblob Linux From Scratch 8 01-07-2004 06:50 PM


All times are GMT -5. The time now is 07:31 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration