Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
NDK r8b debug bild does not link anymore
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
pps  
View profile  
 More options Aug 10 2012, 8:06 pm
From: pps <pavlov.pa...@gmail.com>
Date: Fri, 10 Aug 2012 17:06:15 -0700 (PDT)
Local: Fri, Aug 10 2012 8:06 pm
Subject: NDK r8b debug bild does not link anymore

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Hsieh  
View profile  
 More options Aug 10 2012, 9:09 pm
From: Andrew Hsieh <andrewhs...@android.com>
Date: Sat, 11 Aug 2012 09:09:32 +0800
Local: Fri, Aug 10 2012 9:09 pm
Subject: Re: NDK r8b debug bild does not link anymore

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 ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pps  
View profile  
 More options Aug 11 2012, 7:28 pm
From: pps <pavlov.pa...@gmail.com>
Date: Sat, 11 Aug 2012 16:28:10 -0700 (PDT)
Local: Sat, Aug 11 2012 7:28 pm
Subject: Re: NDK r8b debug bild does not link anymore

I also had that suspicion, so I manually had removed obj completely to make
sure that it wasn't that problem.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Hsieh  
View profile  
 More options Aug 11 2012, 9:43 pm
From: Andrew Hsieh <andrewhs...@android.com>
Date: Sun, 12 Aug 2012 09:43:50 +0800
Local: Sat, Aug 11 2012 9:43 pm
Subject: Re: NDK r8b debug bild does not link anymore

Please open a new issue at
http://code.google.com/p/android/issues/entry?template=Tools%20bug%20... to
track it.  Also, does problem exist with ld.gold or 4.4.3 ?  In other
words, please try:
1. Assuming you are targeting arm, add "LOCAL_LDLIBS += -fuse-ld=gold" in
jni/Android.mk, get *android-ndk-r8b-windows-update-arm-ld._ip* from
http://code.google.com/p/android/issues/detail?id=35209, and clean build.
2. Add NDK_TOOLCHAIN_VERSION=4.4.3 in Application.mk

Thanks,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pps  
View profile  
 More options Aug 12 2012, 5:06 pm
From: pps <pavlov.pa...@gmail.com>
Date: Sun, 12 Aug 2012 14:06:28 -0700 (PDT)
Local: Sun, Aug 12 2012 5:06 pm
Subject: Re: NDK r8b debug bild does not link anymore

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »