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.
|
 |
01-11-2005, 08:19 PM
|
#1
|
LQ Newbie
Registered: Jan 2005
Location: Baltimore, Md. USA
Distribution: Knoppix,Gentoo,LFS
Posts: 5
Rep:
|
error: cannot find output from lex/binutils-2.15 pass 2
Hi all,
I have gotten an error in my second pass of binutils-2.15 from the book LFS 5.1. I have used 2.15 instead of 2.14 from a different problem that was resolved with some help earlier in the process. If you have any ideas as to the reasons for this error please let me know I have back tracked 3 times to make sure everything was in good shape and have found no problems leading up to this so I am at a loss. Any help would be appreciated. The error code listed below:
error: cannot find output from lex
it comes in the string:
checking for /tools/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) nm
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
loading cache ./config.cache within ltconfig
checking whether -lc should be explicitly linked in... (cached) no
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
finding the maximum length of command line arguments... (cached) 49153
checking if gcc supports -c -o file.o... (cached) yes
checking if gcc supports -fno-rtti -fno-exceptions ... no
checking whether the linker (/tools/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking command to parse nm output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... /tools/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ranlib... (cached) ranlib
checking for ANSI C header files... yes
checking for working const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for unistd.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for argz.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for nl_types.h... yes
checking for malloc.h... yes
checking for string.h... yes
checking for unistd.h... (cached) yes
checking for values.h... yes
checking for sys/param.h... yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for strchr... yes
checking for strcasecmp... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for stpcpy... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for libintl.h... yes
checking for gettext in libc... yes
checking for msgfmt... /tools/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /tools/bin/msgfmt
checking for xgettext... /tools/bin/xgettext
checking for catalogs to be installed... fr sv tr es da
checking for executable suffix... (cached) no
checking for bison... no
checking for byacc... no
checking for flex... no
checking for lex... no
/binutils-2.15/ld/configure: line 4417: flex: command not found
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... /binutils-2.15/ld/configure: line 4505: lex: command not found
configure: error: cannot find output from lex; giving up
make: *** [configure-ld] Error 1
I have tested the tar.bz2 and all is well with it I have rm the binutils source and build and started over and all keep giving me the same error and I can find nothing on this.
TIA Crash
|
|
|
01-11-2005, 09:16 PM
|
#2
|
Member
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227
Rep:
|
Looks like you don't have flex installed,
|
|
|
01-11-2005, 10:13 PM
|
#3
|
LQ Newbie
Registered: Jan 2005
Location: Baltimore, Md. USA
Distribution: Knoppix,Gentoo,LFS
Posts: 5
Original Poster
Rep:
|
fix to my own problem for future reference
Hi all,
First off thanks to kjordan for the reply and as to how the error was resolved: I used binutils-2.15 in the first pass due to the fact that my present systems gcc is 3.35 and gave me errors using binutils-2.14 so it was suggested that I use 2.15 and this worked fine and gave me no errors. What I came to realize was that now that I had moved into my own environment I was getting errors using 2.15 with gcc-3.3.3 so I switched to binutils-2.14 and had no further errors. I am sure that someone could give a better explanation of why this was so but I can tell you that I passed the make check with out any problems and that all is continuing well. If I do post problems in the rest of the compile of my new LFS system I will return and post here to update.
Possible information needed to understand I am building LFS 5.1 from a HD install of knoppix 3.7 kernel 2.4.27 and using a Compaq quad Ppro workstation 8000. I
TIA
Crash
|
|
|
All times are GMT -5. The time now is 10:23 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
|
|