Error cross-compiling glibc, chapter 5

Chris Bellingham cbellingham at blueyonder.co.uk
Tue Sep 14 02:32:13 PDT 2004


At "make AUTOCONF=no" for Glibc-2.3.3, in Chapter 5, LFS 5.1.1, i get
the error:

In file included from ../include/libc-symbols.h:56,

                 from <command line>:6:

/mnt/lfs/sources/glibc-build/config.h:3:3: #error "glibc cannot be
compiled without optimization"

make[2]: *** [/mnt/lfs/sources/glibc-build/tcb-offsets.h] Error 1

make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.3-lfs-5.1/csu'

make[1]: *** [csu/subdir_lib] Error 2

make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.3-lfs-5.1'

make: *** [all] Error 2

lfs:/mnt/lfs/sources/glibc-build$



Im following the book, apart from using the cross-compiling hint (
<http://archive.daniel-baumann.ch/linux-from-scratch/hints/crosscompilin
g-x86/crosscompiling-x86-5.1-1.txt>
http://archive.daniel-baumann.ch/li...g-x86-5.1-1.txt)

The output of env is:

        TERM=xterm

        LC_ALL=POSIX

        LFS=/mnt/lfs

        CXXFLAGS=-march=pentium

        PATH=/tools/bin:/bin:/usr/bin

        CHOST=i586-pc-linux-gnu

        PWD=/mnt/lfs/sources/glibc-build

        PS1=\u:\w\$

        SHLVL=1

        HOME=/home/lfs

        CFLAGS=-march=pentium

        _=/usr/bin/env

        OLDPWD=/mnt/lfs/sources



To configure i used the options as specified in the crosscompiling hint.

How do i cross-compile glibc? My host system is slackware 10.

Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20040914/78d3dfa9/attachment.html>


More information about the lfs-support mailing list