[uClibc] Problems building for AMD Alchemy processors.
Ned Ludd
solar at gentoo.org
Mon May 23 19:27:04 UTC 2005
On Mon, 2005-05-23 at 20:11 +0100, Charles Palmer wrote:
> Hi team
>
> Has anyone suceesfully built a toolchain for these processors? If so, how?
> (Many thanks in anticipation of your help...)
>
> I have downloaded and built a buildroot package (host=x86 running Fedora
> Core 3; target=AMD Au1200 - MIPS32, le) but the filesystem did not run and
> neither did a kernel that I built with the new tools. I tried building a
> simple hello world program, but that also fails on the target, with
> "Segmentation fault" errors. Also, the ldd and readelf programs in
> buildroot/toolchain_build_mipsel/uClibc/utils also give "Segmentation fault"
> errors on the target, suggesting that they haven't been built properly
> either.
>
> I am a bit worried about the "MIPS R3000 big-endian" and "not found"
> messages shown below. Here is what I did on my host:
>
> [acutetech at localhost myprograms]$ mipsel-linux-gcc hello.c -o hello-br
> [acutetech at localhost myprograms]$
> ~/buildroot/toolchain_build_mipsel/uClibc/utils/readelf.host hello-br
> Type: EXEC (Executable file)
> Machine: MIPS R3000 big-endian
> Class: ELF32
> Data: 2's complement, little endian
> Version: 1 (current)
> OS/ABI: UNIX - System V
> ABI Version: 0
> Interpreter: /lib/ld-uClibc.so.0
> Dependancies:
> libgcc_s.so.1
> libc.so.0
> [acutetech at localhost myprograms]$
> ~/buildroot/toolchain_build_mipsel/uClibc/utils/ldd.host hello-br
> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00000000)
> libc.so.0 => not found (0x00000000)
> libc.so.6 => /lib/libc.so.6 (0x00000000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00000000)
> [acutetech at localhost myprograms]$ which mipsel-linux-gcc
> ~/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-gcc
> [acutetech at localhost myprograms]$
>
> BUILDING IT AGAINST A STATIC LIBRARY:
>
> [acutetech at localhost myprograms]$ mipsel-linux-gcc -static hello.c -o
> hello-br-static
> [acutetech at localhost myprograms]$
> ~/buildroot/toolchain_build_mipsel/uClibc/utils/ldd.host hello-br-static
> not a dynamic executable
> [acutetech at localhost myprograms]$
> ~/buildroot/toolchain_build_mipsel/uClibc/utils/readelf.host hello-br-static
> Type: EXEC (Executable file)
> Machine: MIPS R3000 big-endian
> Class: ELF32
> Data: 2's complement, little endian
> Version: 1 (current)
> OS/ABI: UNIX - System V
> ABI Version: 0
>
No idea about most of your mail but why are you trying to link with
glibc?
--
Ned Ludd <solar at gentoo.org>
More information about the uClibc
mailing list