Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 02-27-2013, 11:26 PM   #1
LQ Newbie
Registered: Feb 2013
Posts: 3

Rep: Reputation: Disabled
New 64-bit LFS build - cannot execute binary file

Host machine: Slackware 14.0 64-bit in VirtualBox

Building a new LFS system for myself, and stumbled across this problem. After having built the temporary system, I moved on to basic system software. Compiled/installed Coreutils, Iana-etc then went on to M4. When I ./configure, no output came of it, what so ever. I back tracked to Coreutils, and tried to ./configure there, nothing is coming of that now, either. I haven't logged out of the machine, nothing. Didn't leave the chroot environment, went straight from Coreutils, Iana-etc (iana-etc already has a prebuilt makefile), to M4 where the problems began.

root:/sources# ldd /bin/bash (0x00007fff0ee00000) => /tools/lib/ (0x00007f688c298000) => /tools/lib/ (0x00007f688c090000) => /tools/lib/ (0x00007f688be78000) => /tools/lib/ (0x00007f688bad0000)
/tools/lib64/ (0x00007f688c4e8000)

root:/sources# /bin/bash kill
/tools/bin/kill: /tools/bin/kill: cannot execute binary file

root:/sources# /tools/bin/bash kill
/tools/bin/kill: /tools/bin/kill: cannot execute binary file

root:/sources# echo 'main(){}' > dummy.c
root:/sources# cc dummy.c -v -Wl,--verbose &> dummy.log
root:/sources# readelf -l a.out | grep ': /lib'
[Requesting program interpreter: /lib64/]

Sorry for the long post, wanted to get as much detail as I could. Thanks in advance.
Old 02-28-2013, 07:58 AM   #2
Keith Hedger
Senior Member
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,417

Rep: Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610
The 'cannot execute binary file' error is a sure sign that you have mucked up the tool chain somehow if you do muck up the toolchain it is quite difficult to rectify and you should probably go back to just after saving the toolchain ( you did save it didn't you? ) and make sure you didn't skip any bits from the book.
Old 02-28-2013, 08:47 AM   #3
LQ Newbie
Registered: Feb 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
That's what I feared. I did save a snapshot on Virtualbox, but with my luck it corrupted. Starting from the beginning, being especially careful. Thanks.


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
[SOLVED] "cannot execute binary file", 64-bit application, 32-bit processor rm_-rf_windows Linux - General 3 04-05-2012 09:43 AM
Will compiling LFS on an 64 bit distro build an 64 bit LFS? Vampirite Linux From Scratch 4 08-31-2007 02:48 PM
Can I build 32-bit LFS on a 64-bit AMD system? dhave Linux From Scratch 4 07-23-2007 07:00 PM
Cannot execute binary file Sigh Linux - Server 4 09-22-2006 07:43 AM
Cannot execute binary file??? Wimpie22 Linux - General 3 01-11-2004 04:38 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration