[Clfs-dev] coreutils-8.20 failed build

William Harrington berzerkula at cox.net
Sat Nov 3 10:01:58 PDT 2012


On Nov 3, 2012, at 11:32 AM, William Harrington wrote:

> =======Begin command snipet===============
>
> sed '/src_make_prime_list/d' -i Makefile
>
> depbase=`echo src/make-prime-list.o | sed 's|[^/]*$|.deps/&|;s|\.o 
> $||'`;\
>         gcc -std=gnu99  -I. -I./lib  -Ilib -I./lib -Isrc -I./src  - 
> fdiagnostics-show-option -funit-at-a-time -g -O2 -MT src/make-prime- 
> list.o -MD -MP -MF $depbase.Tpo -c -o src/make-prime-list.o src/make- 
> prime-list.c &&\
>         mv -f $depbase.Tpo $depbase.Po
> gcc -std=gnu99 -fdiagnostics-show-option -funit-at-a-time -g -O2 - 
> Wl,--as-needed  -o src/make-prime-list src/make-prime-list.o
>
> ==========End command snipet=============

Okay this is the final issue of commands for it to build properly.   
Not sure what is up with the hostname.1 man page. But I had to remove  
it from the Makefile with a sed.

http://pastebin.cross-lfs.org/230700

=============BEGIN Command snipet candidate===============
touch man/uname.1 man/hostname.1
./configure --prefix=/tools \
     --build=${CLFS_HOST} --host=${CLFS_TARGET} \
     --enable-install-program=hostname --cache-file=config.cache
sed '/src_make_prime_list/d' -i Makefile
depbase=`echo src/make-prime-list.o | sed 's|[^/]*$|.deps/&|;s|\.o 
$||'`;\
         gcc -std=gnu99  -I. -I./lib  -Ilib -I./lib -Isrc -I./src  - 
fdiagnostics-show-option -funit-at-a-time -g -O2 -MT src/make-prime- 
list.o -MD -MP -MF $depbase.Tpo -c -o src/make-prime-list.o src/make- 
prime-list.c &&\
         mv -f $depbase.Tpo $depbase.Po
gcc -std=gnu99 -fdiagnostics-show-option -funit-at-a-time -g -O2 -Wl,-- 
as-needed  -o src/make-prime-list src/make-prime-list.o
sed -i '/hostname.1/d' -i Makefile
make
make install
==============END Command snipet cnadidate=================

Seems like a lot to put in the book for this, but hey! Until coreutils  
makes a patch or releases a fix, this is it for now

If it works for others I'll commit it to the book later this afternoon.

Sincerely,

William Harrington
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-dev-clfs.org/attachments/20121103/1e0a8b43/attachment-0001.htm>


More information about the Clfs-dev mailing list