[uClibc]SH4 uClibc toolchain

Paul van Gool paul.vangool at rinconnetworks.com
Thu Jun 26 14:19:27 UTC 2003


Hi,

has anybody been able to succesfully build a uClibc toolchain for the SH4
processor? Some gcc source tweaks are required for building libstdc++ BTW.

Gcc itself builds fine but cross-compiled binaries fail unless I build
with -static. My sh4 glibc toolchain works fine.

Any hints on where to look? An strace shows the following:

# /mnt/camb-lnx2/home/vangool/strace ./hello 
execve("./hello", ["./hello"], [/* 9 vars */]) = 0
old_mmap()                              = 693477376
readlink("/lib/ld-uClibc.so.0", "/mnt/camb-lnx2/home/vangool/sh4/toolchain/gcc-3.2.2/toolchain_sh/lib/ld-uClibc.so.0", 13
open("/lib/libc.so.0", O_RDONLY)        = -1 ENOENT (No such file or directory)
open("/mnt/camb-lnx2/home/vangool/sh4root/usr/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/mnt/camb-lnx2/home/vangool/sh4root/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/mnt/camb-lnx2/home/vangool/sh4/toolchain/gcc-3.2.2/toolchain_sh/lib/libc.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0*\0\1\0\0\0\340\313"..., 4096) = 4096
old_mmap()                              = 693542912
old_mmap(NULL, 0, PROT_NONE, MAP_FILE, 0, 0) = 0x2956a000
old_mmap(NULL, 0, PROT_NONE, MAP_FILE, 0, 0) = 0x295b4000
old_mmap(NULL, 0, PROT_NONE, MAP_FILE, 0, 0) = 0x295b6000
close(3)                                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

Thanks.

Paul
-- 
Paul van Gool                                               Rincon Networks
paul.vangool at rinconnetworks.com                              (805)-705-1442


More information about the uClibc mailing list