LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-29-2015, 04:47 PM   #16
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled

im sure people have been able to do this (get past binutils 2nd pass) on centos somewhere and I should be ok because my host has all the prequisite software installed as version check shows....I really need help I really dont wanna move on to another distro for host.....
 
Old 03-29-2015, 04:58 PM   #17
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
last idea
Code:
ls -l $LFS/tools
 
Old 03-29-2015, 05:00 PM   #18
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Unfortunately it's the distribution. CentOS is based on Red Hat which it and Fedora are known to have problems. We aren't entirely certain, but the way they patch certain packages often affects how the system works and it ends up killing GCC.

The evidence of this can be found by running this:

Code:
cat > library-check.sh << "EOF"
#!/bin/bash
for lib in lib{gmp,mpfr,mpc}.la; do
  echo $lib: $(if find /usr/lib* -name $lib|
               grep -q $lib;then :;else echo not;fi) found
done
unset lib
EOF

bash library-check.sh
Slackware is one of a few distributions that include the static libraries ".la" of the gmp, mfpr, and mpc libraries required to rebuild GCC and binutils.

Last edited by ReaperX7; 03-29-2015 at 05:20 PM.
 
Old 03-29-2015, 05:01 PM   #19
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
thanks for helping...


Quote:
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 29 20:29 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$
 
Old 03-29-2015, 05:07 PM   #20
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
run the script Reaper mentioned

also shouldn't lib be linked to lib64
 
Old 03-29-2015, 05:14 PM   #21
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
hi spiky, can you send me the full command to link correctly lib and lib64 and I will try issue the configure command again, thanks in advance.
 
Old 03-29-2015, 05:16 PM   #22
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
At the end of binutils pass 1 Ch 5.4
 
Old 03-29-2015, 05:24 PM   #23
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
issued:
Quote:
lfs:/mnt/lfs/sources/binutils-build$ case $(uname -m) in x86_64) mkdir -v /tools/lib && ln -sv lib /tools/lib64 ;; esac
mkdir: cannot create directory `/tools/lib': File exists
lfs:/mnt/lfs/sources/binutils-build$
tried to configure again:

Quote:
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$
run again ls -l $LFS/tools (shows no change):

Quote:
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 29 20:29 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$
 
Old 03-29-2015, 05:30 PM   #24
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
Not got a 64bit machine about but lib64 should be linked

Reaper will know
 
Old 03-29-2015, 05:35 PM   #25
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
thanks for the time you took on this...do you think Reaper will come back then? Is there a way of notifying him I would like his input?
 
Old 03-29-2015, 05:39 PM   #26
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
I really think thats the problem

whats inside tools/lib64

also the script reaper put

Last edited by spiky0011; 03-29-2015 at 05:40 PM.
 
Old 03-29-2015, 05:42 PM   #27
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
hi spiky,

this is what is in tools/lib64

Quote:
lfs:/mnt/lfs/tools/lib64$ ls
libstdc++.a libstdc++.a-gdb.py libstdc++.la libsupc++.a libsupc++.la
lfs:/mnt/lfs/tools/lib64$
 
Old 03-29-2015, 06:26 PM   #28
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
output from reaper script is:
Quote:
lfs:/mnt/lfs/sources/binutils-build$ bash library-check.sh
find: `/usr/lib64/audit': Permission denied
libgmp.la: not found
find: `/usr/lib64/audit': Permission denied
libmpfr.la: not found
find: `/usr/lib64/audit': Permission denied
libmpc.la: not found
lfs:/mnt/lfs/sources/binutils-build$
sorry for the delay.....
 
Old 03-30-2015, 01:10 AM   #29
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 spiky,

this is what is in tools/lib64
So there is no file /tools/lib64/ld-linux-x86-64.so.2. Which is needed by any new program to run in built LFS.

Check if /tools/lib has it? Or is it present in /tools filesystem tree by using 'find' command.
 
Old 03-30-2015, 03:33 AM   #30
zeshanuk
Member
 
Registered: Mar 2015
Distribution: debian jessie baby
Posts: 85

Original Poster
Rep: Reputation: Disabled
Hi veerain,

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

Quote:
[root@Unknown tools]# find /mnt/lfs/tools -name "ld-linux-x86-64.so.2"
/mnt/lfs/tools/lib/ld-linux-x86-64.so.2
[root@Unknown tools]#
Thanks for looking at this problem too...
 
  


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] 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:21 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