On Fri, Jan 2, 2015 at 3:11 AM, Andrew Haley <aph@xxxxxxxxxx> 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