[uClibc] simple compile fails on sh4
Joakim Tjernlund
joakim.tjernlund at lumentis.se
Fri Nov 5 07:49:04 UTC 2004
> so i've been playing with my dreamcast again but now i've hit some troubles
> which google didnt give me anything useful with ... so any insight would be
> useful :)
>
> i'm using cvs buildroot with cvs uclibc and everything compiles fine
>
> i tried with gcc-3.4.2 and binutils-2.15.92.0.2 and i cant seem to compile
> even a simple program on the target cpu:
> bash-3.00# echo 'int main(){}' > test.c
> bash-3.00# gcc test.c -v
> Using built-in specs.
> Configured
> with: /mnt/dreamcast/buildroot/toolchain_build_sh4/gcc-3.4.2/configure
> --prefix=/usr --bus
> Thread model: posix
> gcc version 3.4.2
> /usr/libexec/gcc/sh4-linux-uclibc/3.4.2/cc1 -quiet -v test.c -quiet -dumpbase
> test.c -auxbase test s
> ignoring nonexistent directory "/usr/local/include"
> ignoring nonexistent directory
> "/usr/lib/gcc/sh4-linux-uclibc/3.4.2/../../../../sh4-linux-uclibc/inc"
> #include "..." search starts here:
> #include <...> search starts here:
> /usr/lib/gcc/sh4-linux-uclibc/3.4.2/include
> /usr/include
> End of search list.
> GNU C version 3.4.2 (sh4-linux-uclibc)
> compiled by GNU C version 3.4.2.
> GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
> as -little -o /tmp/ccnDhJ0W.o /tmp/cc0Ozy8T.s
> /usr/libexec/gcc/sh4-linux-uclibc/3.4.2/collect2 --eh-frame-hdr -m
> shlelf_linux -dynamic-linker /lio
> /usr/lib/gcc/sh4-linux-uclibc/3.4.2/../../../libgcc_s.so: undefined reference
> to `dl_iterate_phdr'
> collect2: ld returned 1 exit status
> -mike
There is a dl_iterate_phdr() function in uClibc ld.so(ldso/lds/dl-elf.c) but has
lots of #ifdef around it.
Jocke
More information about the uClibc
mailing list