[LFS 6.8] [Chapter 5.10] 'program interpreter' should be in /tools/... but is actually in /lib64/...

2011-10-13 Thread Stephen Bryant
Hi all,

This is my first post to this mailing list. I am working my way through LFS
6.8, and at the end of '5.10. GCC-4.5.2 - Pass 2' I have compiled dummy.c to
a.out. I have not deliberately deviated from the book in any way (except
using MAKEFLAGS = '-j 2'). Unfortunately running readelf on the compiled
'a.out' gives me:

readelf -l a.out | grep 'Req'
  [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]

Which is not correct (as I understand it the interpreter should be in
/tools/lib/...). Therefore I have made a mistake somewhere, but I do not
know enough to know how far back this may be, so I was wondering if anyone
here could give me clue so I don't have to start again from the beginning (I
have already repeated section 5.10 from scratch, but this has not resolved
the issue)?

More information:

LFS: 6.8
Section: 5.10
Host: Ubuntu 11.04
System: Toshiba NB550D (AMD Fusion C-50 (dual-core 64-bit))

version-check.sh:
bash, version 4.2.8(1)-release
/bin/sh - /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.21.0.20110327
bison (GNU Bison) 2.4.1
/usr/bin/yacc - /usr/bin/bison.yacc
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  8.5
diff (GNU diffutils) 3.0
find (GNU findutils) 4.4.2
GNU Awk 3.1.7
/usr/bin/awk - /usr/bin/gawk
gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
GNU C Library (Ubuntu EGLIBC 2.13-0ubuntu13) stable release version 2.13
GNU grep 2.6.3
gzip 1.3.12
Linux version 2.6.38-11-generic (buildd@allspice) (gcc version 4.5.2
(Ubuntu/Linaro 4.5.2-8ubuntu4) ) #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC 2011
m4 (GNU M4) 1.4.14
GNU Make 3.81
patch 2.6
Perl version='5.10.1';
GNU sed version 4.2.1
tar (GNU tar) 1.25
Texinfo: makeinfo (GNU texinfo) 4.13
Compilation OK

User 'lfs' details:

.bashrc:
set +h
umask 022
LFS=/mnt/lfs
MAKEFLAGS='-j 2'
LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL LFS_TGT PATH MAKEFLAGS

.bash_profile:
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash

Do let me know if there is any more information required,

Steve
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Problems compiling GCC

2011-10-13 Thread Lázaro Morales
Thanks Bruce, I repeat the procedure and work fine.

Thanks again,
Lázaro.

En 12/10/2011 16:12:49, Bruce Dubbs bruce.du...@gmail.com escribió:

 Lázaro Morales wrote:
 Thanks to all for the help,

 I decide start the project from zero using a clean installation of  
 Debian
 6 32bit only for this purpose. So I compile binutils successfully on a
 dedicated directory as you and the book say but when I try with gcc I
 get this new error:

 [...]
 checking whether gcc __attribute__ ((mode (XX))) works... yes
 checking for recent GMP... yes
 checking for __gmpz_init in -lgmp... no
 configure: error: libgmp not found or uses a different ABI.
 Please read the INSTALL file -- see In case of problem.
 make[1]: *** [configure-mpfr] Error 1
 make[1]: Leaving directory `/media/lfs/sources/gcc-build'
 make: *** [all] Error 2

 It sounds like you did not change to the gcc-4.6.1 directory before you  
 did:

 tar -jxf ../mpfr-3.0.1.tar.bz2
 mv -v mpfr-3.0.1 mpfr
 tar -jxf ../gmp-5.0.2.tar.bz2
 mv -v gmp-5.0.2 gmp
 tar -zxf ../mpc-0.9.tar.gz
 mv -v mpc-0.9 mpc

 Please go back and review section 5.3 carefully.

-- Bruce

Este mensaje de correo electrónico ha sido procesado por el servidor de 
Frioclima


-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [LFS 6.8] [Chapter 5.10] 'program interpreter' should be in /tools/... but is actually in /lib64/...

2011-10-13 Thread Andrew Benton
On Thu, 13 Oct 2011 17:29:01 +0100
Stephen Bryant stephenrbry...@gmail.com wrote:

 Hi all,
 
 This is my first post to this mailing list. I am working my way through LFS
 6.8, and at the end of '5.10. GCC-4.5.2 - Pass 2' I have compiled dummy.c to
 a.out. I have not deliberately deviated from the book in any way (except
 using MAKEFLAGS = '-j 2'). Unfortunately running readelf on the compiled
 'a.out' gives me:
 
 readelf -l a.out | grep 'Req'
   [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
 
 Which is not correct (as I understand it the interpreter should be in
 /tools/lib/...). Therefore I have made a mistake somewhere, but I do not
 know enough to know how far back this may be, so I was wondering if anyone
 here could give me clue so I don't have to start again from the beginning (I
 have already repeated section 5.10 from scratch, but this has not resolved
 the issue)?

It looks like you either didn't set up the environment properly to
start with or perhaps you closed the shell at some point and when you
opened a new one you didn't set up your ${PATH} and everything correctly.
You're still only in chapter 5 so starting again is not a big deal.
I suggest you take off and nuke the site from orbit.
It's the only way to be sure.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


LFS 7.0-rc2 Release

2011-10-13 Thread Bruce Dubbs
The Linux From Scratch community is pleased to announce the release of 
LFS Version 7.0-rc2. This is the second release candidate on the road to 
LFS-7.0. It includes numerous changes to LFS-6.8 (including updates to 
Linux-3.0.4, GCC-4.6.1, and Glibc-2.14.1).

A somewhat major change was made in this version of the book by adding a 
new top level directory, /run. This directory has a tmpfs mounted and is 
used by programs like udev to store run time information. The 
directories /var/run and /var/lock are also linked to this directory. 
The bootscripts have been updated to accomodate this change. The 
bootscripts have also been modified to place supporting scripts in 
/lib/boot.

The 7.0-rc2 also has a significant number of changes to the bootscripts 
beyond 7.0-rc1, incorporating many suggestions to make the scripts more 
reliable and to add significant enhancements.

Note that the changes in the bootscripts will probably affect BLFS 
bootscripts that have not yet been updated.

Another significant change is the addition of an md5sums file allowing 
users to check the integrity of all downloaded packages.

Changes to the book also include editorial work on the explanatory 
material, improving both the clarity and accuracy of the text. We would 
encourage all users to read through this release of the book and test 
the instructions so that we can make the final release as good as possible.

You can read the book online at 
http://www.linuxfromscratch.org/lfs/view/7.0-rc2/, or download to read 
locally from http://www.linuxfromscratch.org/lfs/downloads/7.0-rc2/.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page