This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Android Native GCC 4.9.2 Build Fails at Dynamic libgcc


On Wed, Jan 7, 2015 at 9:07 AM, Brian Drummond <brian@shapes.demon.co.uk> wrote:
> On Wed, 2015-01-07 at 08:53 -0600, Cyd Haselton wrote:
>> On Wed, Jan 7, 2015 at 7:41 AM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
>> > On 7 January 2015 at 13:37, Andrew Haley wrote:
>> >> I think it's now becoming clear what is happening.  Something in ld is
>> >> calling dlopen, and fakechroot prints the error.  But it's not clear to
>> >> me which dlopen does not work in fakechroot.
>> >>
>> >> My guess is that the problem is due to link-time optimization.  gcc is
>> >> trying to run -plugin /bld/gcc/builddir-4.9/./gcc/liblto_plugin.so.  4.8
>> >> does not do this.
>> >
>> > Ahhhhhhh. Sneaky.
>> >
>> >> Maybe fakechroot can be persuaded to produce a decent error message with
>> >> some more information.
>> >>
>> >> It may be possible to disable LTO.
>> >
>> > --disable-lto
>>
>> According to libgcc/configure this is an invalid option.  Any other
>> way to disable it?
>
> --disable-lto is a gcc configure option, AFAIK using it involves (make
> dist_clean or delete builddir) and rebuilding the lot.
>
> -- Brian
>
Adding -fno-lto to CFLAGS in the 4.9 libgcc Makefile worked.
Libgcc_s.so built and linked successfully.  I will add this to my list
of build notes


Thanks everyone for all of your help and patience.  Anything else you
need from me?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]