Android Native GCC 4.9.2 Build Fails at Dynamic libgcc
Andrew Haley
aph@redhat.com
Mon Dec 22 18:27:00 GMT 2014
On 12/22/2014 06:21 PM, Cyd Haselton wrote:
> Original email is here: https://gcc.gnu.org/ml/gcc-help/2014-11/msg00050.html
> Summary: Attempting to bootstrap 4.9.0 from 4.8.0 on Android fails at
> building shared libgcc_s_so...specifically when linking the shared
> lib...throwing an "undefined reference to dlopen" within the
> fakechroot environment I am using.
>
> Since that email...and after wise advice from same...I've bootstrapped
> 4.8.3 from 4.8.0 and attempted to bootstrap 4.9.2 from 4.8.3. I'm
> still running into the same error and I can't seem to figure out the
> cause.
>
> For the last build attempt, I added -ldl to t-slibgcc in
> $srcdir/libgcc/config (recommended previously) and to the
> LD_DYNAMIC_OPTION for libasan and libtsan in gnu-user.h (because I
> noticed differences between the build compiler spec file and that of
> xgcc). Build still failed at the same place.
>
> Any advice/tips would be very much appreciated.
What does your /usr/lib/libc.so look like? I'd expect to see
something like this:
/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /lib64/libc.so.6 /usr/lib64/libc_nonshared.a AS_NEEDED ( /lib64/ld-linux-x86-64.so.2 ) )
Andrew.
More information about the Gcc-help
mailing list