coreutils uname-2 patch

Robert Connolly robert at linuxfromscratch.org
Sat Oct 30 06:05:17 PDT 2004


This might belong on bugzilla...

In chapter 6 when compiling coreutils-5.2.1 with coreutils-5.2.1-uname-2.patch 
with -fPIC I get this:

uname.c: In function `main':
uname.c:364: warning: initialization discards qualifiers from pointer target 
type
uname.c: In function `has_sse':
uname.c:416: error: can't find a register in class `BREG' while reloading 
`asm'
make[3]: *** [uname.o] Error 1

'has_sse' is a new function added by the uname-2 patch. The uname-1 patch in 
LFS-5.1.1 compiles fine. The uname-1 patch was originally from coreutils-5.0, 
the uname-2 patch is new from Zack Winkles. You should be able to reproduce 
this with CFLAGS="-fPIC", I was using -fPIC out of gcc specs.

Perhaps lfs-hackers people could comment if this would be a factor in using 
uname-1 in unstable in the future?

Robert



More information about the hlfs-dev mailing list