LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-27-2013, 11:26 PM   #1
f0rdracing
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
linux-vdso.so.1 (0x00007fff0ee00000)
libncurses.so.5 => /tools/lib/libncurses.so.5 (0x00007f688c298000)
libdl.so.2 => /tools/lib/libdl.so.2 (0x00007f688c090000)
libgcc_s.so.1 => /tools/lib/libgcc_s.so.1 (0x00007f688be78000)
libc.so.6 => /tools/lib/libc.so.6 (0x00007f688bad0000)
/tools/lib64/ld-linux-x86-64.so.2 (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/ld-linux-x86-64.so.2]

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
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 836

Rep: Reputation: 167Reputation: 167
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
f0rdracing
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.
 
  


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
[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


All times are GMT -5. The time now is 05:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration