problems with util-linux-2.12 in LFS 5.0 chapter 5 on sparc server

Dennis Clarke dclarke at
Fri Nov 28 18:30:46 PST 2003

> full details are at :

> Any attempt to ./configure results in bogus messages about headers not being
> found .. even though the headers are in /tools/include :

> The first thing I suspected was the bad sed command suspect but then I
> simply used vi and searched the configure file myself for bad /usr/include
> strings.

I will now try a manual test with a conftest.c that specifies #include
<scsi/scsi.h> and see what gcc says.  This could all be a gcc problem.

-bash-2.05b$ cat conftest.c
#define u_char  unsigned char
#include <scsi/scsi.h>
#undef u_char
int main(){ exit(0); }

-bash-2.05b$ gcc --verbose -c -o conftest.o conftest.c
Reading specs from /tools/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.1/specs
Configured with: ../gcc-3.3.1/configure --prefix=/tools
--with-local-prefix=/tools --enable-clocale=gnu --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++
Thread model: posix
gcc version 3.3.1
 /tools/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.1/cc1 -quiet -v -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=1 -D__ELF__ -Dunix -D__sparc__
-D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__sparc__ -D__gnu_linux__
-D__linux__ -D__unix -D__linux -Asystem=unix -Asystem=posix
-D__GCC_NEW_VARARGS__ -Acpu=sparc -Amachine=sparc conftest.c -quiet -dumpbase
conftest.c -auxbase-strip conftest.o -version -o /tmp/ccgiW5aa.s
GNU C version 3.3.1 (sparc-unknown-linux-gnu)
        compiled by GNU C version 3.3.1.
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32115
ignoring nonexistent directory "/tools/sparc-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
End of search list.

-V -Qy -s -relax -o conftest.o /tmp/ccgiW5aa.s
GNU assembler version 2.14 (sparc-unknown-linux-gnu) using BFD version 2.14

See the line there ignoring nonexistent directory
                 "/tools/sparc-unknown-linux-gnu/include"  ???

SHOULD there be a symlink /tools/sparc-unknown-linux-gnu -> /tools/include ??


More information about the lfs-support mailing list