Opened 13 years ago

Closed 13 years ago

#2957 closed task (invalid)

Binutils pass 2

Reported by: Michael Owned by: lfs-book@…
Priority: normal Milestone: 7.1
Component: Book Version: 7.0
Severity: normal Keywords: binutils chapter5
Cc: mikhail_tsukanau@…

Description

In book we have the follow code for preparing Binutils for compilation

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

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

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

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

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

sorry, I can't attach file

Change History (2)

comment:1 by Michael, 13 years ago

Here is error in config.log


configure:4233: checking whether the C compiler works
configure:4242: ./a.out
FATAL: kernel too old
configure:4246: $?=1
configure:4253: error in '/mnt/lfs/sources/binutils-build':
configure:4257: error: cannot run C compiled programs.
If you meant to cross compile, use '--host'.

comment:2 by Matthew Burgess, 13 years ago

Resolution: invalid
Status: newclosed

The issue is that 'FATAL: kernel too old'. http://www.linuxfromscratch.org/lfs/view/7.0/prologue/hostreqs.html mentions that you need a host running at least Linux-2.6.25, but you're running Linux-2.6.22.5.

Note: See TracTickets for help on using tickets.