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: Andrew Haley <aph at redhat dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Fri, 2 Jan 2015 04:32:49 -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> <54993642 dot 2010609 at redhat dot com> <CAHu5PrYsL8_BiyKKZ=VugqOfHYam3_mVXRcjL9Pb8ezOCHMgtQ at mail dot gmail dot com> <549979E7 dot 9020002 at redhat dot com> <CAHu5PrZ6w0D4ko7cGx9q_0FQKw8SxB+BQDB+h76Y4CvncPbvPA at mail dot gmail dot com> <549A821F dot 1080208 at redhat dot com> <CAHu5PrYKd+-KkODuh0_VMuV03b4H+Lg1rMPUNJPX7CcecywxSA at mail dot gmail dot com> <CAHu5PrYBVudZnMnEfLS3T7e9tRreXFBn6f_gEvgAXmpDYSJCiw at mail dot gmail dot com> <549BCA5C dot 6080708 at redhat dot com> <CAHu5PrY0MUt--KbNCCbQ+4z8jwVHTVaRrE9d+TBwubs3dTzP5Q at mail dot gmail dot com> <CAHu5PrZ1QVLAPyexbqpSafcRuepVfxZdHv3avgFVqXKubC0jug at mail dot gmail dot com> <CAHu5PrYWjwmC7VtqsNSwezvYVvFcuj6EB9UUP_=RKxau5t+kNQ 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>
On Fri, Jan 2, 2015 at 3:11 AM, Andrew Haley <aph@redhat.com> wrote:
> On 01/01/15 22:51, Cyd Haselton wrote:
>>> /android_root/system/bin/sh ./libtool --tag=CC --tag=disable-static
>>> > --mode=link gcc --sysroot=/usr/gcc-4.8.4/sysroot -Wall -Wall -O
>>> > -mandroid -mbionic -module -bindir
>>> > /usr/gcc-4.8.4/libexec/gcc/arm-linux-androideabi/4.8.4
>>> > -static-libstdc++ -static-libgcc
>>> > -Wl,--dynamic-linker=/system/bin/linker -lc -ldl -lgcc -lm -o
>>> > liblto_plugin.la -rpath
>>> > /usr/gcc-4.8.4/libexec/gcc/arm-linux-androideabi/4.8.4 lto-plugin.lo
>>> > -Wc,../libiberty/pic/libiberty.a
>>> >
>>> > There were others, but I'll hold off including them unless the above
>>> > are not relevant to my issue.
>> Polite bump just in case reply was missed.
>>
>> Since the above post I've tried replacing the -static-libgcc reference
>> in the top level Makefile with -shared-libgcc (which results in a slew
>> of errors), specifying the stage1, boot and poststage1 libs in the
>> Makefile with the same libs specified in configure (which doesn't
>> work) and adding the same options from the LDFLAGS I specified in the
>> top-level configure to the post stage1 LDFLAGS and stage1 LDFLAGS. No
>> success so far.
>>
>> I still have the build logs from 4.8 and 4.9...I can upload them if
>> they would be of use in diagnosing this issue.
>
> Tell us the command which failed and the command which succeeded and
> the output. We can then look at the difference. We're not
> clairvoyant!
>
> Andrew.
Didn't say that anyone was.
None of the "commands" succeeded and the output is the same as in the
original problem. Building the shared libgcc in 4.9.2 fails with
undefined reference to dlopen. This succeeds in 4.8.4 but there is no
info that I can see in the build l9gs I captured that indicates why
fractunsUTITQ_s.o _satfractunsUTIHA_s.o _satfractunsUTISA_s.o
_satfractunsUTIDA_s.o _satfractunsUTITA_s.o _satfractunsUTIUQQ_s.o
_satfractunsUTIUHQ_s.o _satfractunsUTIUSQ_s.o _satfractunsUTIUDQ_s.o
_satfractunsUTIUTQ_s.o _satfractunsUTIUHA_s.o _satfractunsUTIUSA_s.o
_satfractunsUTIUDA_s.o _satfractunsUTIUTA_s.o bpabi_s.o
unaligned-funcs_s.o addsf3_s.o divsf3_s.o eqsf2_s.o gesf2_s.o
lesf2_s.o mulsf3_s.o negsf2_s.o subsf3_s.o unordsf2_s.o fixsfsi_s.o
floatsisf_s.o floatunsisf_s.o adddf3_s.o divdf3_s.o eqdf2_s.o
gedf2_s.o ledf2_s.o muldf3_s.o negdf2_s.o subdf3_s.o unorddf2_s.o
fixdfsi_s.o floatsidf_s.o floatunsidf_s.o extendsfdf2_s.o
truncdfsf2_s.o enable-execute-stack_s.o unwind-arm_s.o libunwind_s.o
pr-support_s.o unwind-c_s.o emutls_s.o libgcc.a -lc -ldl && rm -f
./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1
./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp
./libgcc_s.so.1 && (echo "/* GNU ld script"; echo " Use the shared
library, but some functions are only in"; echo " the static library.
*/"; echo "GROUP ( libgcc_s.so.1 -ldl -lgcc )" ) > ./libgcc_s.so
fakechroot: dlopen: undefined symbol: dlopen
collect2: error: ld returned 1 exit status
make[3]: *** [libgcc_s.so] Error 1
make[3]: Leaving directory `/bld/gcc/builddir-4.9/arm-linux-androideabi/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/bld/gcc/builddir-4.9'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/bld/gcc/builddir-4.9'
make: *** [all] Error 2