LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 03-30-2015, 03:42 AM   #31
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412

Try linking tools/lib to tools/lib64

this was supposed to be done in binutils 1st pass
 
1 members found this post helpful.
Old 03-30-2015, 03:53 AM   #32
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
tried but still no luck, also i cant see a sym link created although it says file exists when i issue the command again:
Quote:
lfs:/mnt/lfs/sources/binutils-build$ ln -sv ../../tools/lib ../../tools/lib64
`../../tools/lib64/lib' -> `../../tools/lib'
lfs:/mnt/lfs/sources/binutils-build$ ls -l $LFS/tools
total 40
drwxr-xr-x. 2 lfs lfs 4096 Mar 29 20:24 bin
drwxr-xr-x. 2 lfs lfs 4096 Mar 29 20:23 etc
drwxr-xr-x. 33 lfs lfs 4096 Mar 29 20:23 include
drwxr-xr-x. 5 lfs lfs 4096 Mar 29 20:24 lib
drwxr-xr-x. 2 lfs lfs 4096 Mar 30 09:47 lib64
drwxr-xr-x. 4 lfs lfs 4096 Mar 29 17:11 libexec
drwxr-xr-x. 2 lfs lfs 4096 Mar 29 20:24 sbin
drwxr-xr-x. 7 lfs lfs 4096 Mar 29 17:21 share
drwxr-xr-x. 3 lfs lfs 4096 Mar 29 17:12 var
drwxr-xr-x. 5 lfs lfs 4096 Mar 29 17:21 x86_64-lfs-linux-gnu
lfs:/mnt/lfs/sources/binutils-build$ ln -sv ../../tools/lib ../../tools/lib64
ln: creating symbolic link `../../tools/lib64/lib': File exists
lfs:/mnt/lfs/sources/binutils-build$ ls -l $LFS/tools
total 40
drwxr-xr-x. 2 lfs lfs 4096 Mar 29 20:24 bin
drwxr-xr-x. 2 lfs lfs 4096 Mar 29 20:23 etc
drwxr-xr-x. 33 lfs lfs 4096 Mar 29 20:23 include
drwxr-xr-x. 5 lfs lfs 4096 Mar 29 20:24 lib
drwxr-xr-x. 2 lfs lfs 4096 Mar 30 09:47 lib64
drwxr-xr-x. 4 lfs lfs 4096 Mar 29 17:11 libexec
drwxr-xr-x. 2 lfs lfs 4096 Mar 29 20:24 sbin
drwxr-xr-x. 7 lfs lfs 4096 Mar 29 17:21 share
drwxr-xr-x. 3 lfs lfs 4096 Mar 29 17:12 var
drwxr-xr-x. 5 lfs lfs 4096 Mar 29 17:21 x86_64-lfs-linux-gnu
lfs:/mnt/lfs/sources/binutils-build$ CC=$LFS_TGT-gcc AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib ../binutils-2.25/configure --prefix=/tools --disable-nls --disable-werror --with-lib-path=/tools/lib --with-sysroot
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... x86_64-lfs-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in `/mnt/lfs/sources/binutils-build':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
lfs:/mnt/lfs/sources/binutils-build$
 
Old 03-30-2015, 04:45 AM   #33
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
Originally Posted by zeshanuk View Post
Hi veerain,

The file seems to be in /tools/lib, see below the output of the find command I issued.



Thanks for looking at this problem too...
The ld-linux-x86-64.so.2 file is part of glibc and installed with it. During install you should have passed --libdir=/tools/lib64 to be more specific but book doesn't says so. Instead it depends on build scripts of glibc to decide it. And in your case it gets installed to /tools/lib but the gcc pass1 has the path of dynamic linker set in /tools/lib64.

So I say before installing binutils pass1 you should go the /tools directory and run 'mkdir lib64; ln -s lib64 lib'.

Or If you want to run anyway from this point onward, then copy all the files, directories in /tools/lib to /tools/lib64. Careful to not overwrite files in /tools/lib64 especially symlinks overwriting regular files. And then delete /tools/lib and put a symlink from /tools/lib to /tools/lib64.

Code:
rm -fr /tools/lib
cd /tools
ln -s lib64 lib

Last edited by veerain; 03-30-2015 at 04:48 AM.
 
1 members found this post helpful.
Old 03-30-2015, 05:11 AM   #34
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
hi veerain, thats worked! I decided to continue rather than start again, thanks so much for your help on this problem.
 
Old 03-30-2015, 05:17 AM   #35
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You are welcome.
 
  


Reply



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] binutils-2.24 Pass 2 dave0504 Linux From Scratch 8 11-22-2014 05:00 AM
[SOLVED] ./configure fails during Binutils Pass 2 supern0va Linux From Scratch 5 11-09-2010 10:46 AM
questions on GCC-3.4.3 - Pass 2 and Binutils-2.15.94.0.2.2 - Pass 2 satimis Linux From Scratch 7 12-26-2005 09:23 PM
make configure-host for binutils-2.16.1 fails under 7.0-cross-lfs-20051019-x86_64 Basel Linux From Scratch 2 10-24-2005 11:07 PM
make: *** [configure-libiberty] Error 1 in 5.4. Binutils-2.15.91.0.2 - Pass 1 Flash_G Linux From Scratch 3 06-30-2005 08:51 PM

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

All times are GMT -5. The time now is 05:14 PM.

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