Peram's LFS user lfs at
Thu Jul 29 07:41:57 PDT 2004

Ryan.Oliver at wrote:

...and the fun begins....

>There's problems fighting with SysV style system binaries ;-)
>Try running the script first, it will build a solaris
>native gcc (the sunfreeware one will not cut it), solaris native
>binutils (required, the solaris ld tends to barf when faced with gnu
>command line options), gnu sed, grep, gettext, autotools and some
>parts of coreutils.

If I only got that far :-(. croaks when compiling coreutils :

output from :

Running /home/lfs/cross-lfs/scripts/host-scripts/

Checking tarball install directory... coreutils-5.2.1
Unpacking /sw/lfs//coreutils-5.2.1.tar.bz2
 o  unpacked successfully
### Coreutils 5.2.1 - native echo (shared) - torsdag 29 juli 2004, 15:07:29 CEST ###
 o Configure OK

Failed script was host-scripts/
Please fix the error above from
and rerun the build with the command

   ./ host-scripts/

to resume the build.

>From /home/lfs/cross-lfs-build/logs/buildlogs/coreutils-native-echo.log-20040729 :

/bin/bash ./config.charset 'sparc-sun-solaris2.9' > t-charset.alias
mv t-charset.alias charset.alias
sed -e '/^#/d' -e 's/@''PACKAGE''@/coreutils/g' ref-add.sin > t-ref-add.sed
mv t-ref-add.sed ref-add.sed
sed -e '/^#/d' -e 's/@''PACKAGE''@/coreutils/g' ref-del.sin > t-ref-del.sed
mv t-ref-del.sed ref-del.sed
make[1]: Leaving directory `/home/lfs/cross-lfs-build/src/coreutils-5.2.1/lib'
make: Leaving directory `/home/lfs/cross-lfs-build/src/coreutils-5.2.1/lib'
make: Entering directory `/home/lfs/cross-lfs-build/src/coreutils-5.2.1/src'
source='echo.c' object='echo.o' libtool=no \
depfile='.deps/echo.Po' tmpdepfile='.deps/echo.TPo' \
depmode=gcc /bin/bash ../config/depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I. -I../lib -I../lib   -O2 -pipe -c echo.
In file included from echo.c:21:
system.h:62: localedir.h: No such file or directory
make: *** [echo.o] Error 1

hostinfo :

$uname -a
SunOS zion 5.9 Generic_112233-10 sun4u sparc SUNW,Ultra-1 Solaris
$ gcc -v
Reading specs from /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.9/2.95.3/specs
gcc version 2.95.3 20010315 (release)
$ make -v
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

>Once you've got a decent suite of gnu host-tools things become easier,
>but you still end up with issues :-/
I'm trying to ;-)

>Needless to say, there is some fun to be had ;-)
>Best regards (and good luck ;-) )

Thanks ;-)


More information about the lfs-dev mailing list