I tried to build with latest r8b and it doesn't not link my app in debug build anymore.
I've been building it since r4, currently using r7 (some r7x version had bugs that prevented my so from loading because it would import some gcc specific symbols that aren't present on devices) r8 works fine (didn't actually try to load, but it builds everything). r8b fails to link debug builds. After trying different settings it appears that NDK_DEBUG=1 makes the problem (NDK_DEBUG=0 is fine);
I get these link errors: SharedLibrary : libXXX.so `.LTHUNK6' referenced in section `.text._ZN3DeviceTupleImplD1Ev[DeviceTupleImpl::~DeviceTupleImpl()]' of ./obj /local/armeabi/libYYY.a(DeviceTuple.o): defined in discarded section `.text._ZN3DeviceTupleImplD2Ev[_ZN3D eviceTupleImplD5Ev]' of ./obj/local/armeabi/libYYY.a(DeviceTuple.o) `.LTHUNK5' referenced in section `.text._ZN3ServiceTupleImplD1Ev[ServiceTupleImpl::~ServiceTupleImpl()]' of ./ obj/local/armeabi/libYYY.a(ServiceTuple.o): defined in discarded section `.text._ZN3ServiceTupleImplD2Ev[_ZN3S IP16ServiceTupleImplD5Ev]' of ./obj/local/armeabi/libYYY.a(ServiceTuple.o) collect2: ld returned 1 exit status make: *** [obj/local/armeabi/libXXX.so] Error 1
Basically, the project compiles many static libs (libYYY for example), then uses all of them to create final shared libXXX.so
I'm building on windows using regular cmd.exe, I have no warnings at compile time.
On Sat, Aug 11, 2012 at 8:06 AM, pps <pavlov.pa...@gmail.com> wrote:
> I tried to build with latest r8b and it doesn't not link my app in debug
> build anymore.
> I've been building it since r4, currently using r7 (some r7x version had
> bugs that prevented my so from loading because it would import some gcc
> specific symbols that aren't present on devices)
> r8 works fine (didn't actually try to load, but it builds everything). r8b
> fails to link debug builds. After trying different settings it appears that
> NDK_DEBUG=1 makes the problem (NDK_DEBUG=0 is fine);
> I get these link errors:
> SharedLibrary : libXXX.so
> `.LTHUNK6' referenced in section
> `.text._ZN3DeviceTupleImplD1Ev[DeviceTupleImpl::~DeviceTupleImpl()]' of
> ./obj
> /local/armeabi/libYYY.a(DeviceTuple.o): defined in discarded section
> `.text._ZN3DeviceTupleImplD2Ev[_ZN3D
> eviceTupleImplD5Ev]' of ./obj/local/armeabi/libYYY.a(DeviceTuple.o)
> `.LTHUNK5' referenced in section
> `.text._ZN3ServiceTupleImplD1Ev[ServiceTupleImpl::~ServiceTupleImpl()]' of
> ./
> obj/local/armeabi/libYYY.a(ServiceTuple.o): defined in discarded section
> `.text._ZN3ServiceTupleImplD2Ev[_ZN3S
> IP16ServiceTupleImplD5Ev]' of ./obj/local/armeabi/libYYY.a(ServiceTuple.o)
> collect2: ld returned 1 exit status
> make: *** [obj/local/armeabi/libXXX.so] Error 1
> Basically, the project compiles many static libs (libYYY for example),
> then uses all of them to create final shared libXXX.so
> I'm building on windows using regular cmd.exe, I have no warnings at
> compile time.
> --
> You received this message because you are subscribed to the Google Groups
> "android-ndk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/android-ndk/-/EddjTzqJAkoJ.
> To post to this group, send email to android-ndk@googlegroups.com.
> To unsubscribe from this group, send email to
> android-ndk+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/android-ndk?hl=en.
On Friday, August 10, 2012 9:09:32 PM UTC-4, Andrew Hsieh wrote:
> It looks like mix up object from two version of compiler (in r8b there are > 4.6 (default), and 4.4.3). Could you clean up ./obj and rebuild ?
> On Sat, Aug 11, 2012 at 8:06 AM, pps <pavlov...@gmail.com <javascript:>>wrote:
>> I tried to build with latest r8b and it doesn't not link my app in debug >> build anymore.
>> I've been building it since r4, currently using r7 (some r7x version had >> bugs that prevented my so from loading because it would import some gcc >> specific symbols that aren't present on devices) >> r8 works fine (didn't actually try to load, but it builds everything). >> r8b fails to link debug builds. After trying different settings it appears >> that NDK_DEBUG=1 makes the problem (NDK_DEBUG=0 is fine);
>> I get these link errors: >> SharedLibrary : libXXX.so >> `.LTHUNK6' referenced in section >> `.text._ZN3DeviceTupleImplD1Ev[DeviceTupleImpl::~DeviceTupleImpl()]' of >> ./obj >> /local/armeabi/libYYY.a(DeviceTuple.o): defined in discarded section >> `.text._ZN3DeviceTupleImplD2Ev[_ZN3D >> eviceTupleImplD5Ev]' of ./obj/local/armeabi/libYYY.a(DeviceTuple.o) >> `.LTHUNK5' referenced in section >> `.text._ZN3ServiceTupleImplD1Ev[ServiceTupleImpl::~ServiceTupleImpl()]' of >> ./ >> obj/local/armeabi/libYYY.a(ServiceTuple.o): defined in discarded section >> `.text._ZN3ServiceTupleImplD2Ev[_ZN3S >> IP16ServiceTupleImplD5Ev]' of ./obj/local/armeabi/libYYY.a(ServiceTuple.o) >> collect2: ld returned 1 exit status >> make: *** [obj/local/armeabi/libXXX.so] Error 1
>> Basically, the project compiles many static libs (libYYY for example), >> then uses all of them to create final shared libXXX.so
>> I'm building on windows using regular cmd.exe, I have no warnings at >> compile time.
>> -- >> You received this message because you are subscribed to the Google Groups >> "android-ndk" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/android-ndk/-/EddjTzqJAkoJ. >> To post to this group, send email to andro...@googlegroups.com<javascript:> >> . >> To unsubscribe from this group, send email to >> android-ndk...@googlegroups.com <javascript:>. >> For more options, visit this group at >> http://groups.google.com/group/android-ndk?hl=en.
On Sun, Aug 12, 2012 at 7:28 AM, pps <pavlov.pa...@gmail.com> wrote:
> I also had that suspicion, so I manually had removed obj completely to
> make sure that it wasn't that problem.
> On Friday, August 10, 2012 9:09:32 PM UTC-4, Andrew Hsieh wrote:
>> It looks like mix up object from two version of compiler (in r8b there
>> are 4.6 (default), and 4.4.3). Could you clean up ./obj and rebuild ?
>> On Sat, Aug 11, 2012 at 8:06 AM, pps <pavlov...@gmail.com> wrote:
>>> I tried to build with latest r8b and it doesn't not link my app in debug
>>> build anymore.
>>> I've been building it since r4, currently using r7 (some r7x version had
>>> bugs that prevented my so from loading because it would import some gcc
>>> specific symbols that aren't present on devices)
>>> r8 works fine (didn't actually try to load, but it builds everything).
>>> r8b fails to link debug builds. After trying different settings it appears
>>> that NDK_DEBUG=1 makes the problem (NDK_DEBUG=0 is fine);
>>> I get these link errors:
>>> SharedLibrary : libXXX.so
>>> `.LTHUNK6' referenced in section `.text._**ZN3DeviceTupleImplD1Ev[**
>>> DeviceTupleImpl::~**DeviceTupleImpl()]' of ./obj
>>> /local/armeabi/libYYY.a(**DeviceTuple.o): defined in discarded section
>>> `.text._**ZN3DeviceTupleImplD2Ev[_ZN3D
>>> eviceTupleImplD5Ev]' of ./obj/local/armeabi/libYYY.a(**DeviceTuple.o)
>>> `.LTHUNK5' referenced in section `.text._**ZN3ServiceTupleImplD1Ev[**
>>> ServiceTupleImpl::~**ServiceTupleImpl()]' of ./
>>> obj/local/armeabi/libYYY.a(**ServiceTuple.o): defined in discarded
>>> section `.text._**ZN3ServiceTupleImplD2Ev[_ZN3S
>>> IP16ServiceTupleImplD5Ev]' of ./obj/local/armeabi/libYYY.a(**
>>> ServiceTuple.o)
>>> collect2: ld returned 1 exit status
>>> make: *** [obj/local/armeabi/libXXX.so] Error 1
>>> Basically, the project compiles many static libs (libYYY for example),
>>> then uses all of them to create final shared libXXX.so
>>> I'm building on windows using regular cmd.exe, I have no warnings at
>>> compile time.
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "android-ndk" group.
>>> To view this discussion on the web visit https://groups.google.com/d/** >>> msg/android-ndk/-/EddjTzqJAkoJ<https://groups.google.com/d/msg/android-ndk/-/EddjTzqJAkoJ>
>>> **.
>>> To post to this group, send email to andro...@googlegroups.com.
>>> To unsubscribe from this group, send email to android-ndk...@**
>>> googlegroups.com.
> To post to this group, send email to android-ndk@googlegroups.com.
> To unsubscribe from this group, send email to
> android-ndk+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/android-ndk?hl=en.
I created bugreport and results of what you asked to try: http://code.google.com/p/android/issues/detail?id=36275&thanks=36275&... in short, now it links with lots of warnings (I didn't have any before). NDK_TOOLCHAIN_VERSION=4.4.3 fails with this error: collect2: cannot find 'ld' Perhaps, this would work with cygwin
> On Sun, Aug 12, 2012 at 7:28 AM, pps <pavlov...@gmail.com <javascript:>>wrote:
>> I also had that suspicion, so I manually had removed obj completely to >> make sure that it wasn't that problem.
>> On Friday, August 10, 2012 9:09:32 PM UTC-4, Andrew Hsieh wrote:
>>> It looks like mix up object from two version of compiler (in r8b there >>> are 4.6 (default), and 4.4.3). Could you clean up ./obj and rebuild ?
>>> On Sat, Aug 11, 2012 at 8:06 AM, pps <pavlov...@gmail.com> wrote:
>>>> I tried to build with latest r8b and it doesn't not link my app in >>>> debug build anymore.
>>>> I've been building it since r4, currently using r7 (some r7x version >>>> had bugs that prevented my so from loading because it would import some gcc >>>> specific symbols that aren't present on devices) >>>> r8 works fine (didn't actually try to load, but it builds everything). >>>> r8b fails to link debug builds. After trying different settings it appears >>>> that NDK_DEBUG=1 makes the problem (NDK_DEBUG=0 is fine);
>>>> I get these link errors: >>>> SharedLibrary : libXXX.so >>>> `.LTHUNK6' referenced in section `.text._**ZN3DeviceTupleImplD1Ev[** >>>> DeviceTupleImpl::~**DeviceTupleImpl()]' of ./obj >>>> /local/armeabi/libYYY.a(**DeviceTuple.o): defined in discarded section >>>> `.text._**ZN3DeviceTupleImplD2Ev[_ZN3D >>>> eviceTupleImplD5Ev]' of ./obj/local/armeabi/libYYY.a(**DeviceTuple.o) >>>> `.LTHUNK5' referenced in section `.text._**ZN3ServiceTupleImplD1Ev[** >>>> ServiceTupleImpl::~**ServiceTupleImpl()]' of ./ >>>> obj/local/armeabi/libYYY.a(**ServiceTuple.o): defined in discarded >>>> section `.text._**ZN3ServiceTupleImplD2Ev[_ZN3S >>>> IP16ServiceTupleImplD5Ev]' of ./obj/local/armeabi/libYYY.a(** >>>> ServiceTuple.o) >>>> collect2: ld returned 1 exit status >>>> make: *** [obj/local/armeabi/libXXX.so] Error 1
>>>> Basically, the project compiles many static libs (libYYY for example), >>>> then uses all of them to create final shared libXXX.so
>>>> I'm building on windows using regular cmd.exe, I have no warnings at >>>> compile time.
>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "android-ndk" group. >>>> To view this discussion on the web visit https://groups.google.com/d/** >>>> msg/android-ndk/-/EddjTzqJAkoJ<https://groups.google.com/d/msg/android-ndk/-/EddjTzqJAkoJ> >>>> **. >>>> To post to this group, send email to andro...@googlegroups.com. >>>> To unsubscribe from this group, send email to android-ndk...@** >>>> googlegroups.com.
>> To post to this group, send email to andro...@googlegroups.com<javascript:> >> . >> To unsubscribe from this group, send email to >> android-ndk...@googlegroups.com <javascript:>. >> For more options, visit this group at >> http://groups.google.com/group/android-ndk?hl=en.