LinuxQuestions.org
Visit Jeremy's Blog.
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-11-2005, 08:19 PM   #1
crash_&_burn
LQ Newbie
 
Registered: Jan 2005
Location: Baltimore, Md. USA
Distribution: Knoppix,Gentoo,LFS
Posts: 5

Rep: Reputation: 0
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
 
Old 01-11-2005, 09:16 PM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
Looks like you don't have flex installed,
 
Old 01-11-2005, 10:13 PM   #3
crash_&_burn
LQ Newbie
 
Registered: Jan 2005
Location: Baltimore, Md. USA
Distribution: Knoppix,Gentoo,LFS
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
  


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
5.14. Binutils-2.15.91.0.2 - Pass 2 error! Flash_G Linux From Scratch 5 08-20-2006 06:02 AM
binutils first pass error gravesb Linux From Scratch 5 09-05-2005 01:42 AM
#Error: 5.4. Binutils-2.15.94.0.2.2 - Pass 1 ukyo Linux From Scratch 2 06-02-2005 04:37 AM
binutils-2.15.92.0.2 first pass, error rogerslin Linux From Scratch 7 12-20-2004 05:44 PM
binutils-2.14 first pass, gcc error Add1Sun Linux From Scratch 3 04-29-2004 04:27 PM

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

All times are GMT -5. The time now is 10:23 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
Open Source Consulting | Domain Registration