On Tue, Jan 11, 2011 at 09:30:23PM +0800, zhangxinlong wrote:
> Hi,everybody.
> Environment:  VMware 6.0 + LFS 6.2 LiveCD
> 
> 
> Yesterday, I compile LFS..
> When I finished 6.1 I run halt,I got no problem ,but something happened When 
> my process is in  6.9..   
> ./configure --prefix=/usr......
> can't run normal.     It report some problems :
> "Checking for suffix  of object files... configure:error:cannot compute 
> suffix of object files: cannot compile
> see 'config.log' for more details"
> The Several End Lines of config.log is:
> ##-----------------------##
> ##confdefs.h###
> ##---------------------##
> #define PACKAGE_BUGREPORT "glibc"
> #define PACKAGE_NAME "GNU C Library"
> #define PACKAGE_STRING "GNU C Library (see version.h)"
> #define PACKAGE_VERSION "(see version.h)"
> #define USE_REGPARMS 1
> configure: exit 1
> 
 When a program tells you to look at config.log, what you have to do
first is find *which* config.log (many packages only have one, in
the top directory, but at least binutils and gcc have several - in
those cases, you need the latest, i.e. the one where the error
occurred.

 After identifying that config.log, you need to open it (from the
host system) in either less or vim (or any other file viewer or
editor which will let you search and scroll back as well as
forward).

 Search for the exact error message, in this case 'cannot compute
suffix of object files'.  In vim or less, the command would be
/cannot\ compute\ suffix

 That should take you to the error message.  Somewhere in the lines
before it you should see the error that was reported when the test
program was run to check for hte suffix.  I'm guessing it will be
something about a failure to link, or a missing file.
> 
> And later I run gcc and cc..
> display this ,why?
> bash:/tools/bin/gcc: No such file or directory.
> in Chapter 5 Everything is OK..and GCC installed and test with 
> echo 'main(){}' >dummy.c 
> It runs well
> but why does this happen..
> Thank you for looking my question..

 Missing essential symlink ?  Something linked against the host's
libraries ?

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to