Hi, selectable uClibc Version (uClibc 0.9.28) is broken in trunk, because the file/dir layout seems to have changed since 7.09. The first problem [0] can be fixed by something like the simple patch in [1]. However soon after one meets the next problem with extra/scripts/gen_bits_syscall_h.sh [2].
(I would need 0.9.28 because 0.9.29 causes a segfault in libpthread. I myself do not know enough about uClibc to fix this) regards, Jens [0] vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv + ./extra/scripts/fix_includes.sh -k ./build_dir/toolchain-i386_gcc4.1.2/linux -t i386 The file ./build_dir/toolchain-i386_gcc4.1.2/linux/Makefile or ./build_dir/toolchain-i386_gcc4.1.2/linux/include/linux/version.h is missing! Perhaps your kernel source is broken? make[4]: *** [headers] Error 1 make[4]: Leaving directory `/pers/proj/edim/seismo95_with_openwrt11614/build_dir/toolchain-i386_gcc4.1.2/uClibc-0.9.28.2' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Index: toolchain/uClibc/config/0.9.28.2/i386 =================================================================== --- toolchain/uClibc/config/0.9.28.2/i386 (revision 113) +++ toolchain/uClibc/config/0.9.28.2/i386 (working copy) @@ -66,7 +66,7 @@ UCLIBC_HAS_FLOATS=y HAS_FPU=y DO_C99_MATH=y -KERNEL_SOURCE="./toolchain_build_i386/linux" +KERNEL_SOURCE="../../../build_dir/toolchain-i386_gcc4.1.2/linux" C_SYMBOL_PREFIX="" HAVE_DOT_CONFIG=y ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [2] vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv make[4]: Entering directory `/pers/proj/edim/seismo95_with_openwrt11614/build_dir/toolchain-i386_gcc4.1.2/uClibc-0.9.28.2' + ./extra/scripts/fix_includes.sh -k ../../../build_dir/toolchain-i386_gcc4.1.2/linux -t i386 + TOPDIR=. + CC='ccache i386-linux-uclibc-gcc' + /bin/sh extra/scripts/gen_bits_syscall_h.sh i386-linux-uclibc-gcc: ./include/asm/unistd.h: No such file or directory i386-linux-uclibc-gcc: no input files <stdin>:1:34: error: ./include/asm/unistd.h: No such file or directory + cmp include/bits/sysnum.h include/bits/sysnum.h.new + rm -f include/bits/sysnum.h.new make -C libc/sysdeps/linux/common headers make[5]: Entering directory `/pers/proj/edim/seismo95_with_openwrt11614/build_dir/toolchain-i386_gcc4.1.2/uClibc-0.9.28.2/libc/sysdeps/linux/common' ln -fs ../libc/sysdeps/linux/common/fpu_control.h ../../../..//include/ make[5]: Leaving directory `/pers/proj/edim/seismo95_with_openwrt11614/build_dir/toolchain-i386_gcc4.1.2/uClibc-0.9.28.2/libc/sysdeps/linux/common' make -C libc/sysdeps/linux/i386 headers make[5]: Entering directory `/pers/proj/edim/seismo95_with_openwrt11614/build_dir/toolchain-i386_gcc4.1.2/uClibc-0.9.28.2/libc/sysdeps/linux/i386' ln -fs ../libc/sysdeps/linux/i386/fpu_control.h ../../../../include/ make[5]: Leaving directory `/pers/proj/edim/seismo95_with_openwrt11614/build_dir/toolchain-i386_gcc4.1.2/uClibc-0.9.28.2/libc/sysdeps/linux/i386' make -C ldso make[5]: Entering directory `/pers/proj/edim/seismo95_with_openwrt11614/build_dir/toolchain-i386_gcc4.1.2/uClibc-0.9.28.2/ldso' ln -fs ../../include/elf.h include/elf.h ln -fs ../ldso/i386/dl-startup.h include/dl-startup.h ln -fs ../ldso/i386/dl-syscalls.h include/dl-syscalls.h ln -fs ../ldso/i386/dl-sysdep.h include/dl-sysdep.h ln -fs ../ldso/i386/dl-debug.h include/dl-debug.h make -C ldso make[6]: Entering directory `/pers/proj/edim/seismo95_with_openwrt11614/build_dir/toolchain-i386_gcc4.1.2/uClibc-0.9.28.2/ldso/ldso' ccache i386-linux-uclibc-gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-stack-protector -mpreferred-stack-boundary=2 -falign-jumps=0 -falign-loops=0 -Os -funit-at-a-time -DUCLIBC_LDSO=\"ld-uClibc.so.0\" -O2 -pipe -march=i486 -funit-at-a-time -fhonour-copts -fPIC -DUCLIBC_RUNTIME_PREFIX=\"/\" -fno-builtin -nostdinc -D_LIBC -DLDSO_ELFINTERP=\"i386/elfinterp.c\" -I../../ldso/ldso/i386 -I../../ldso/include -I../../ldso/ldso -I../../include -D_GNU_SOURCE -isystem /pers/proj/edim/seismo95_with_openwrt11614/staging_dir/toolchain-i386_gcc4.1.2/lib/gcc/i386-linux-uclibc/4.1.2/include -c i386/resolve.S -o i386/resolve.o i386-linux-uclibc-strip -x -R .note -R .comment i386/resolve.o ccache i386-linux-uclibc-gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-stack-protector -mpreferred-stack-boundary=2 -falign-jumps=0 -falign-loops=0 -Os -funit-at-a-time -DUCLIBC_LDSO=\"ld-uClibc.so.0\" -O2 -pipe -march=i486 -funit-at-a-time -fhonour-copts -fPIC -DUCLIBC_RUNTIME_PREFIX=\"/\" -fno-builtin -nostdinc -D_LIBC -DLDSO_ELFINTERP=\"i386/elfinterp.c\" -I../../ldso/ldso/i386 -I../../ldso/include -I../../ldso/ldso -I../../include -D_GNU_SOURCE -isystem /pers/proj/edim/seismo95_with_openwrt11614/staging_dir/toolchain-i386_gcc4.1.2/lib/gcc/i386-linux-uclibc/4.1.2/include -c ldso.c -o ldso.o In file included from ../../ldso/include/ldso.h:37, from ldso.c:33: ../../ldso/include/dl-syscall.h:14:22: error: asm/mman.h: No such file or directory In file included from ../../ldso/include/ldso.h:37, from ldso.c:33: ../../ldso/include/dl-syscall.h: In function '_dl_exit': ../../ldso/include/dl-syscall.h:57: error: '__NR_exit' undeclared (first use in this function) ../../ldso/include/dl-syscall.h:57: error: (Each undeclared identifier is reported only once ../../ldso/include/dl-syscall.h:57: error: for each function it appears in.) ../../ldso/include/dl-syscall.h: In function '_dl_close': ../../ldso/include/dl-syscall.h:60: error: '__NR_close' undeclared (first use in this function) ../../ldso/include/dl-syscall.h: In function '_dl_open': ../../ldso/include/dl-syscall.h:63: error: '__NR_open' undeclared (first use in this function) ../../ldso/include/dl-syscall.h: In function '_dl_write': ../../ldso/include/dl-syscall.h:67: error: '__NR_write' undeclared (first use in this function) ../../ldso/include/dl-syscall.h: In function '_dl_read': ../../ldso/include/dl-syscall.h:71: error: '__NR_read' undeclared (first use in this function) ../../ldso/include/dl-syscall.h: In function '_dl_mprotect': ../../ldso/include/dl-syscall.h:75: error: '__NR_mprotect' undeclared (first use in this function) ../../ldso/include/dl-syscall.h: In function '_dl_stat': ../../ldso/include/dl-syscall.h:79: error: '__NR_stat' undeclared (first use in this function) ../../ldso/include/dl-syscall.h: In function '_dl_fstat': ../../ldso/include/dl-syscall.h:83: error: '__NR_fstat' undeclared (first use in this function) ../../ldso/include/dl-syscall.h: In function '_dl_munmap': ../../ldso/include/dl-syscall.h:86: error: '__NR_munmap' undeclared (first use in this function) ../../ldso/include/dl-syscall.h: In function '_dl_getuid': ../../ldso/include/dl-syscall.h:92: error: '__NR_getuid' undeclared (first use in this function) ../../ldso/include/dl-syscall.h: In function '_dl_geteuid': ../../ldso/include/dl-syscall.h:98: error: '__NR_getuid' undeclared (first use in this function) ../../ldso/include/dl-syscall.h: In function '_dl_getgid': ../../ldso/include/dl-syscall.h:104: error: '__NR_getgid' undeclared (first use in this function) ../../ldso/include/dl-syscall.h: In function '_dl_getegid': ../../ldso/include/dl-syscall.h:110: error: '__NR_getgid' undeclared (first use in this function) ../../ldso/include/dl-syscall.h: In function '_dl_getpid': ../../ldso/include/dl-syscall.h:116: error: '__NR_getpid' undeclared (first use in this function) ../../ldso/include/dl-syscall.h: In function '_dl_readlink': ../../ldso/include/dl-syscall.h:119: error: '__NR_readlink' undeclared (first use in this function) ../../ldso/include/dl-syscall.h:185:3: error: #error "Your architecture doesn't seem to provide mmap() !?" ldso.c: In function '_dl_get_ready_to_run': ldso.c:309: error: 'PROT_READ' undeclared (first use in this function) ldso.c:309: error: 'PROT_WRITE' undeclared (first use in this function) ldso.c:309: error: 'PROT_EXEC' undeclared (first use in this function) ldso.c: In function '_dl_malloc': ldso.c:900: warning: implicit declaration of function '_dl_mmap' ldso.c:901: error: 'PROT_READ' undeclared (first use in this function) ldso.c:901: error: 'PROT_WRITE' undeclared (first use in this function) ldso.c:901: error: 'MAP_PRIVATE' undeclared (first use in this function) ldso.c:901: error: 'MAP_ANONYMOUS' undeclared (first use in this function) ldso.c:901: warning: assignment makes pointer from integer without a cast In file included from ldso.c:919: dl-elf.c: In function '_dl_map_cache': dl-elf.c:60: error: 'PROT_READ' undeclared (first use in this function) dl-elf.c:60: error: 'MAP_SHARED' undeclared (first use in this function) dl-elf.c: In function '_dl_protect_relro': dl-elf.c:127: error: 'PROT_READ' undeclared (first use in this function) dl-elf.c: In function '_dl_load_elf_shared_library': dl-elf.c:385: error: 'PROT_READ' undeclared (first use in this function) dl-elf.c:385: error: 'PROT_WRITE' undeclared (first use in this function) dl-elf.c:386: error: 'MAP_PRIVATE' undeclared (first use in this function) dl-elf.c:386: error: 'MAP_ANONYMOUS' undeclared (first use in this function) dl-elf.c:386: warning: assignment makes pointer from integer without a cast dl-elf.c:457: error: 'MAP_FIXED' undeclared (first use in this function) dl-elf.c:460: error: 'PROT_NONE' undeclared (first use in this function) dl-elf.c:495: error: 'PROT_EXEC' undeclared (first use in this function) dl-elf.c: In function '_dl_dprintf': dl-elf.c:718: error: 'PROT_READ' undeclared (first use in this function) dl-elf.c:718: error: 'PROT_WRITE' undeclared (first use in this function) dl-elf.c:719: error: 'MAP_PRIVATE' undeclared (first use in this function) dl-elf.c:719: error: 'MAP_ANONYMOUS' undeclared (first use in this function) dl-elf.c:719: warning: assignment makes pointer from integer without a cast make[6]: *** [ldso.o] Error 1 make[6]: Leaving directory `/pers/proj/edim/seismo95_with_openwrt11614/build_dir/toolchain-i386_gcc4.1.2/uClibc-0.9.28.2/ldso/ldso' make[5]: *** [ldso] Error 2 make[5]: Leaving directory `/pers/proj/edim/seismo95_with_openwrt11614/build_dir/toolchain-i386_gcc4.1.2/uClibc-0.9.28.2/ldso' make[4]: *** [_dir_ldso] Error 2 make[4]: Leaving directory `/pers/proj/edim/seismo95_with_openwrt11614/build_dir/toolchain-i386_gcc4.1.2/uClibc-0.9.28.2' make[3]: *** [/pers/proj/edim/seismo95_with_openwrt11614/staging_dir/toolchain-i386_gcc4.1.2/stamp/.uclibc_installed] Error 2 make[3]: Leaving directory `/pers/proj/edim/seismo95_with_openwrt11614/toolchain/uClibc' make[2]: *** [toolchain/uClibc/compile] Error 2 make[2]: Leaving directory `/pers/proj/edim/seismo95_with_openwrt11614' make[1]: *** [/pers/proj/edim/seismo95_with_openwrt11614/staging_dir/i386/stamp/.toolchain_install] Error 2 make[1]: Leaving directory `/pers/proj/edim/seismo95_with_openwrt11614' make: *** [world] Error 2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel