[uClibc] Buildroot for SH3 Little Endian (don't compile)

Volmat Alain avolmatjp at yahoo.co.jp
Tue Nov 16 12:26:59 UTC 2004


Hey,

finally I succeeded in compiling the buildroot for SH4 so
I moved to the SH3 which is my main target actually.
The first step was to add entry into Config.in and
kernel-headers.mk in order add SH3 option in the menu and
to get proper symbolic link for the kernel header cpu
directory.
This is just nothing but still, I attach a patch to this
mail.

finally I start compilation process and it went pretty
well as far as the toolchain is concerned but finally
failed during compilation of utils of uClibc. It seems to
be in some architecture depend code. I would like to know
if someone has some pointers in order to start debugging
this stuff ... does anyone has ever tried compiling the
buildroot for SH3 ?
And what is exactly this part of the code, what is it used
for ?

Following is the end of the compilation process with the
error.

Alain

make[1]: Leaving directory
`/home/alain/buildroot.new/toolchain_build_sh3/uClibc'
# Build the host utils.  Need to add an install target...
make -C
/home/alain/buildroot.new/toolchain_build_sh3/uClibc/utils
\
PREFIX=/home/alain/buildroot.new/build_sh3/staging_dir \
HOSTCC="gcc" \
        hostutils
make[1]: Entering directory
`/home/alain/buildroot.new/toolchain_build_sh3/uClibc/utils'
gcc -O2 -Wall -Wl,-s \
        -DUCLIBC_RUNTIME_PREFIX=\"/\" \
        -DUCLIBC_LDSO=ld-uClibc.so.0 -I. -I../ldso/include
\
        ldd.c -o ldd.host
gcc -O2 -Wall -Wl,-s \
        -DUCLIBC_RUNTIME_PREFIX=\"/\" \
        -DUCLIBC_LDSO=ld-uClibc.so.0 -I. -I../ldso/include
\
        ldconfig.c readsoname.c -o ldconfig.host
../ldso/include/dl-sysdep.h: In function `_dl_urem':
../ldso/include/dl-sysdep.h:33: unknown register name `r0'
in `asm'
../ldso/include/dl-sysdep.h: In function
`_dl_simple_ltoa':
../ldso/include/dl-sysdep.h:33: unknown register name `r0'
in `asm'
../ldso/include/dl-sysdep.h: In function `_dl_urem':
../ldso/include/dl-sysdep.h:33: unknown register name `r0'
in `asm'
../ldso/include/dl-sysdep.h: In function
`_dl_simple_ltoa':
../ldso/include/dl-sysdep.h:33: unknown register name `r0'
in `asm'
make[1]: *** [ldconfig.host] Error 1
make[1]: Leaving directory
`/home/alain/buildroot.new/toolchain_build_sh3/uClibc/utils'
make: ***
[/home/alain/buildroot.new/build_sh3/staging_dir/lib/libc.a]
Error 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-buildroot-sh3.patch
Type: text/x-patch
Size: 1294 bytes
Desc: patch-buildroot-sh3.patch
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20041116/bed3be6d/attachment.bin 


More information about the uClibc mailing list