missing bits/syscall.h

Richard M. Mathews richard@alumni.caltech.edu
Sat Mar 11 00:29:00 GMT 2006


I am having trouble with crosstool.

I have a dual Opteron system running 32-bit Linux 2.4, and I want to run
a 64-bit Linux 2.6 kernel.  I am using demo-x86_64.sh except that I am
running all.sh as follows:
eval `cat x86_64.dat gcc-4.1.0-glibc-2.3.6.dat` sh all.sh --notest

I get two errors in the build.

The first one only applies if I try to build Java.  I don't really
need Java, but I included it for the heck of it.  I get the error
#error "glibc cannot be compiled without optimization"
when building tls.make.c.  The error is non-fatal, and the build 
continues.  I'm going to just drop trying to do Java, but I thought
I would mention this in case anyone wants to look into it.

The second error is fatal, and this is the one that has me hung up.
When os_dep.c is compiled, I get an error due to a missing
bits/syscall.h

Details from the log are below.

What am I doing wrong?

Richard


The first error was shown in the log as follows:

(echo '# Generated from tls.make.c by Makerules.'; \
gcc -std=gnu99 -DBOOTSTRAP_GCC -Wall -Winline -Wstrict-prototypes
-Wwrite-strings      -Iinclude -I.
-I/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-glibc-headers 

-Ilibio
-I/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-glibc-headers 

-Isysdeps/x86_64/elf -Isysdeps/unix/sysv/linux/x86_64
-Isysdeps/unix/sysv/linux/wordsize-64 -Isysdeps/unix/sysv/linux
-Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman
-Isysdeps/unix/inet -Isysdeps/unix/sysv -Isysdeps/unix/x86_64
-Isysdeps/unix -Isysdeps/posix -Isysdeps/x86_64/fpu -Isysdeps/x86_64
-Isysdeps/wordsize-64 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64
-Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf
-Isysdeps/generic -nostdinc -isystem
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include -isystem
/opt/crosstool/gcc-4.1.0-glibc-2.3.6/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sys-root/usr/include 

-include include/libc-symbols.h       -E tls.make.c \
       -MD -MP -MT '$(common-objpfx)tls.make' -MF
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-glibc-headers/tls.make.dT 

\
| sed -n '/@@@/{s/@@@[     ]*\(.*\)@@@/\1/;s/[     ]*$//p;}'; \
echo 'common-generated += tls.make'; \
sed -e 's@
/home/rmathews/crosstool-0\.42/build/x86_64-unknown-linux-gnu/gcc-4\.1\.0-glibc-2\.3\.6/build-glibc-headers/@ 

$(common-objpfx)@g' -e
's@^/home/rmathews/crosstool-0\.42/build/x86_64-unknown-linux-gnu/gcc-4\.1\.0-glibc-2\.3\.6/build-glibc-headers/@$(common-objpfx)@g' 

-e 's@  *\([^     \/$][^     \]*\)@ $(..)\1@g' -e 's@^\([^     \/$][^
    \]*\)@$(..)\1@g'
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-glibc-headers/tls.make.dT; 

\
rm -f
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-glibc-headers/tls.make.dT) 

> 
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-glibc-headers/tls.makeT
In file included from include/libc-symbols.h:56,
                 from <command line>:1:
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-glibc-headers/config.h:3:3: 

#error "glibc cannot be compiled without optimization"
sed: can't read
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-glibc-headers/tls.make.dT: 

No such file or directory



The second error was shown in the log as follows:

/bin/sh ./libtool --mode=compile
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-gcc/./gcc/xgcc 

-B/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-gcc/./gcc/ 

-B/opt/crosstool/gcc-4.1.0-glibc-2.3.6/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/bin/ 

-B/opt/crosstool/gcc-4.1.0-glibc-2.3.6/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/lib/ 

-isystem
/opt/crosstool/gcc-4.1.0-glibc-2.3.6/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/include 

-isystem
/opt/crosstool/gcc-4.1.0-glibc-2.3.6/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sys-include 

-DHAVE_CONFIG_H
-I/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/boehm-gc/include 

-fexceptions -Iinclude -I././targ-include -I.//libc/include -O2 -g -O2
-fexceptions -Iinclude -I././targ-include -I.//libc/include  -c -o
os_dep.lo
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/boehm-gc/os_dep.c
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-gcc/./gcc/xgcc 

-B/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-gcc/./gcc/ 

-B/opt/crosstool/gcc-4.1.0-glibc-2.3.6/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/bin/ 

-B/opt/crosstool/gcc-4.1.0-glibc-2.3.6/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/lib/ 

-isystem
/opt/crosstool/gcc-4.1.0-glibc-2.3.6/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/include 

-isystem
/opt/crosstool/gcc-4.1.0-glibc-2.3.6/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sys-include 

-DHAVE_CONFIG_H
-I/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/boehm-gc/include 

-fexceptions -Iinclude -I././targ-include -I.//libc/include -O2 -g -O2
-fexceptions -Iinclude -I././targ-include -I.//libc/include -c
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/boehm-gc/os_dep.c 

-fPIC -DPIC -o .libs/os_dep.o
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/boehm-gc/os_dep.c: 

In function 'GC_disable_signals':
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/boehm-gc/os_dep.c:566: 

warning: 'sigsetmask' is deprecated (declared at
/opt/crosstool/gcc-4.1.0-glibc-2.3.6/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sys-root/usr/include/signal.h:184)
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/boehm-gc/os_dep.c: 

In function 'GC_enable_signals':
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/boehm-gc/os_dep.c:575: 

warning: 'sigsetmask' is deprecated (declared at
/opt/crosstool/gcc-4.1.0-glibc-2.3.6/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sys-root/usr/include/signal.h:184)
In file included from
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/boehm-gc/os_dep.c:2185:
/opt/crosstool/gcc-4.1.0-glibc-2.3.6/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sys-root/usr/include/sys/syscall.h:32:27: 

error: bits/syscall.h: No such file or directory
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/boehm-gc/os_dep.c: 

In function 'GC_dirty_init':
/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/boehm-gc/os_dep.c:2695: 

warning: assignment from incompatible pointer type
make[3]: *** [os_dep.lo] Error 1
make[3]: Leaving directory
`/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-gcc/x86_64-unknown-linux-gnu/boehm-gc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-gcc/x86_64-unknown-linux-gnu/boehm-gc'
make[1]: *** [all-target-boehm-gc] Error 2
make[1]: Leaving directory
`/home/rmathews/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/build-gcc'
make: *** [all] Error 2



--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list