[Buildroot] rust?
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sun Aug 21 12:01:04 UTC 2016
Hello,
On Sat, 20 Aug 2016 18:43:06 -0400, Kenneth Adam Miller wrote:
> The issue that I'm having with building rust is that it appears that
> the crosstool compiler linking step is adding not only uclibc, but
> also references to libc.
uClibc is precisely what provides libc, libpthread, librt, and several
other libraries.
> ldd output for a given rust cross compile
> target with uclibc includes the following:
>
>
> linux-vdso.so.1 => (0x00007ffe997ca000)
> libdl.so.1 => not found
> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f6a13bfa000)
> libpthread.so.1 => not found
> libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f6a139e4000)
> libc.so.1 => not found
> ld64-uClibc.so.1 => not found
> libm.so.1 => not found
> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
> (0x00007f6a137c7000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6a133fe000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f6a1420a000)
I don't see how this can be the output of ldd, since you have two
references to libc (libc.so.1 and libc.so.6) and two references to
libpthread (libpthread.so.1, libpthread.so.0).
> I'm not sure if that means that my compiling rust outside of buildroot
> is the source of the error or not. I'm pretty sure that ld64-uclibc.so
ld64-uclibc.so is only the dynamic loader. Your program must at least
link with libc.so, and possibly with other libraries provided by the C
library (libpthread, librt, libdl, etc.).
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
More information about the buildroot
mailing list