This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Android Native GCC 4.9.2 Build Fails at Dynamic libgcc
- From: Cyd Haselton <chaselton at gmail dot com>
- To: brian at shapes dot demon dot co dot uk
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Wed, 7 Jan 2015 10:57:00 -0600
- Subject: Re: Android Native GCC 4.9.2 Build Fails at Dynamic libgcc
- Authentication-results: sourceware.org; auth=none
- References: <CAHu5PrboyVq7orESm4N3m+2aQZaQNPAkcG4AJ7rFnFu+Q=tKWQ at mail dot gmail dot com> <549DDADB dot 4020707 at redhat dot com> <CAHu5PraJcUxrKcs36uc=njbbs7HLRr4+ozL04OzMEPVyZCDBUw at mail dot gmail dot com> <549EEEF6 dot 9030506 at redhat dot com> <CAHu5PrYG50rU-o7MrFkehdNpQ-KvXYmh6Ymr=OzmYe++V_Wppg at mail dot gmail dot com> <CAHu5PrZ2-Ts7SOqtj=ZdyFbAWpYhf5uEqMAieuJx+1SpmvV1rQ at mail dot gmail dot com> <54A660C4 dot 3030108 at redhat dot com> <CAHu5PrbjFyy83xYUdx+vSVQuVJhD-_HzEAb735o_K+dVbXDLag at mail dot gmail dot com> <54A67520 dot 6030801 at redhat dot com> <CAHu5PrZpsNYawNMacyuZMb9owEsRFf8NN6KqsZZ-zbxYf8_JrA at mail dot gmail dot com> <CAHu5PrY3WjeVGb6e_pgKuALw+kdkJ5HaOSTpAAZpPA3g0i9CNA at mail dot gmail dot com> <1420567682 dot 2034 dot 9 dot camel at shapes dot demon dot co dot uk> <54AC3540 dot 30100 at redhat dot com> <CAHu5PrYEnSjZiu6QSb=75AueOSyqu7jwxeEJW5UaAw+zQ2F51Q at mail dot gmail dot com> <54AD0516 dot 5000804 at redhat dot com> <54AD23EA dot 2070905 at redhat dot com> <1420636833 dot 1716 dot 2 dot camel at shapes dot demon dot co dot uk> <54AD369D dot 1020208 at redhat dot com> <CAH6eHdQHSz7Jih1a=cYLLURM=TQdhragb9D6Jj+CsDF_nb4RQQ at mail dot gmail dot com> <CAHu5PrZ4sFL60eAk=S7G2kENv8-gfAVYn+fkum97FK+Co4wOzA at mail dot gmail dot com> <1420643266 dot 1716 dot 10 dot camel at shapes dot demon dot co dot uk>
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?