|
在FC6上创建ARM交叉编译环境,binutils-2.17.50.0.18 gcc-4.2.1 linux-2.6.22.6 glibc-2.6.1
前面都没出现什么问题,就是到glibc ,出错了,网上搜了一整天也没找到答案,恳请各位指教阿
-f /home/wh/embedded/build-tools/build-glibc/csu/abi-tag.h.new /home/wh/embedded/build-tools/build-glibc/csu/abi-tag.h; \
else echo >&2 'This configuration not matched in ../abi-tags'; exit 1; fi
gawk -f ../scripts/gen-as-const.awk ../glibc-ports-2.6.1/sysdeps/arm/nptl/tcb-offsets.sym \
| arm-linux-gcc -S -o /home/wh/embedded/build-tools/build-glibc/tcb-offsets.hT3 -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -I../include -I/home/wh/embedded/build-tools/build-glibc/csu -I/home/wh/embedded/build-tools/build-glibc -I../glibc-ports-2.6.1/sysdeps/arm/elf -I../glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl -I../glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm -I../glibc-ports-2.6.1/sysdeps/unix/sysv/linux -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../glibc-ports-2.6.1/sysdeps/unix/sysv -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../glibc-ports-2.6.1/sysdeps/unix/arm -I../glibc-ports-2.6.1/sysdeps/unix -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../glibc-ports-2.6.1/sysdeps/arm/fpu -I../glibc-ports-2.6.1/sysdeps/arm/nptl -I../glibc-ports-2.6.1/sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../glibc-ports-2.6.1 -I../nptl -I.. -I../libio -I. -nostdinc -isystem /home/wh/embedded/tools/lib/gcc/arm-linux/4.2.1/include -isystem /home/wh/embedded/tools/arm-linux/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -x c - \
-MD -MP -MF /home/wh/embedded/build-tools/build-glibc/tcb-offsets.h.dT -MT '/home/wh/embedded/build-tools/build-glibc/tcb-offsets.h.d /home/wh/embedded/build-tools/build-glibc/tcb-offsets.h'
In file included from ../sysdeps/unix/sysdep.h:21,
from ../glibc-ports-2.6.1/sysdeps/unix/arm/sysdep.h:20,
from ../glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/sysdep.h:26,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:25:24: error: asm/unistd.h: 没有那个文件或目录
In file included from ../sysdeps/unix/sysv/linux/sys/param.h:24,
from ../glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h:23,
from ../nptl/descr.h:30,
from ../glibc-ports-2.6.1/sysdeps/arm/nptl/tls.h:63,
from ../include/tls.h:6,
from <stdin>:2:
/home/wh/embedded/tools/arm-linux/include/linux/param.h:4:23: error: asm/param.h: 没有那个文件或目录
In file included from ../nptl/descr.h:30,
from ../glibc-ports-2.6.1/sysdeps/arm/nptl/tls.h:63,
from ../include/tls.h:6,
from <stdin>:2:
../glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: 在函数‘__lll_mutex_lock’中:
../glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h:158: 错误:‘__NR_futex’未声明 (在此函数内第一次使用)
../glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h:158: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
../glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h:158: 错误:所在的函数内也只报告一次。)
../glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: 在函数‘__lll_mutex_cond_lock’中:
../glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h:184: 错误:‘__NR_futex’未声明 (在此函数内第一次使用)
../glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: 在函数‘__lll_mutex_unlock’中:
../glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h:231: 错误:‘__NR_futex’未声明 (在此函数内第一次使用)
../glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: 在函数‘__lll_robust_mutex_unlock’中:
../glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h:241: 错误:‘__NR_futex’未声明 (在此函数内第一次使用)
../glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: 在函数‘__lll_mutex_unlock_force’中:
../glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h:251: 错误:‘__NR_futex’未声明 (在此函数内第一次使用)
In file included from ../socket/sys/socket.h:35,
from ../include/sys/socket.h:2,
from ../inet/netinet/in.h:24,
from ../include/netinet/in.h:3,
from ../resolv/resolv.h:57,
from ../include/resolv.h:12,
from ../nptl/descr.h:39,
from ../glibc-ports-2.6.1/sysdeps/arm/nptl/tls.h:63,
from ../include/tls.h:6,
from <stdin>:2:
../sysdeps/unix/sysv/linux/bits/socket.h:311:24: error: asm/socket.h: 没有那个文件或目录
make[2]: *** [/home/wh/embedded/build-tools/build-glibc/tcb-offsets.h] 错误 1
make[2]: Leaving directory `/home/wh/embedded/build-tools/glibc-2.6.1/csu'
make[1]: *** [csu/subdir_lib] 错误 2
make[1]: Leaving directory `/home/wh/embedded/build-tools/glibc-2.6.1'
make: *** [all] 错误 2 |
|