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.
01-04-2008, 07:23 PM
#1
Member
Registered: Jul 2007
Distribution: Ubuntu, LFS, Fedora
Posts: 30
Rep:
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
01-04-2008, 08:59 PM
#2
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware, Cross Linux from Scratch, Gentoo
Posts: 2,640
Rep:
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?
01-04-2008, 10:13 PM
#3
Member
Registered: Jul 2007
Distribution: Ubuntu, LFS, Fedora
Posts: 30
Original Poster
Rep:
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?
01-04-2008, 10:50 PM
#4
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware, Cross Linux from Scratch, Gentoo
Posts: 2,640
Rep:
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.
01-04-2008, 11:02 PM
#5
Member
Registered: Jul 2007
Distribution: Ubuntu, LFS, Fedora
Posts: 30
Original Poster
Rep:
can you tell me what more I need to post, or where else I can get some help?
01-05-2008, 11:01 AM
#6
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware, Cross Linux from Scratch, Gentoo
Posts: 2,640
Rep:
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.
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 06:14 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