[LFS Trac] #2957: Binutils pass 2

LFS Trac trac at linuxfromscratch.org
Tue Nov 1 04:11:25 PDT 2011


#2957: Binutils pass 2
----------------------+-----------------------------------------------------
 Reporter:  zukinzin  |       Owner:  lfs-book@…                   
     Type:  task      |      Status:  new                          
 Priority:  normal    |   Milestone:  7.1                          
Component:  Book      |     Version:  7.0                          
 Severity:  normal    |    Keywords:  binutils chapter5            
----------------------+-----------------------------------------------------
 In book we have the follow code for preparing Binutils for
 compilation[[BR]]

 CC="$LFS_TGT-gcc -B/tools/lib/" \[[BR]]
 AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \[[BR]]
 ../binutils-2.21.1/configure --prefix=/tools \[[BR]]
 --disable-nls --with-lib-path=/tools/lib[[BR]]

 but at kernel 2.6.22.5 we got error after ran configure script at
 config.log: [[BR]]

 ...bla-bla-bla...can't run test application ./a.out[[BR]]
 use key --host for cross-compiling[[BR]]
 Fatal error[[BR]]

 if add key (--host=$LFS_TGT)will fix that problem[[BR]]

 CC="$LFS_TGT-gcc -B/tools/lib/" \[[BR]]
 AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \[[BR]]
 ../binutils-2.21.1/configure --prefix=/tools \[[BR]]
 --disable-nls --with-lib-path=/tools/lib --host=$LFS_TGT

 sorry, I can't attach file

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2957>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.



More information about the lfs-book mailing list