Problems with Android 5 build on Mac OS X Yosemite: dyld: Symbol not found: _code_profile_dirname

382 views
Skip to first unread message

Summersmd

unread,
Nov 26, 2014, 10:21:10 PM11/26/14
to android-...@googlegroups.com
I'm trying to build Android 5.0 on OS X Yosemite and am able to compile it with a bunch of warnings but when I try to run the emulator, I get the following error:

dyld: Symbol not found: _code_profile_dirname
  Referenced from: /Volumes/android/WORKING_DIRECTORY/prebuilts/android-emulator/darwin-x86_64/emulator64-arm
  Expected in: flat namespace
 in /Volumes/android/WORKING_DIRECTORY/prebuilts/android-emulator/darwin-x86_64/emulator64-arm
Trace/BPT trap: 5

I followed the instructions at http://source.android.com/source/building-running.html to configure my build environment and execute the build.

Any suggestions?

Al Sutton

unread,
Nov 27, 2014, 2:09:35 AM11/27/14
to android-...@googlegroups.com
If you’re using Yosemite you’ve not followed all the instructions in that part of the website.

-- 
Al Sutton
Funky Android Ltd.
(funkyandroid.com)

The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, its associates, or its subsidiaries. 


--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Summersmd

unread,
Nov 28, 2014, 9:06:43 AM11/28/14
to android-...@googlegroups.com
Could you please be more specific?  I'm struggling with this one.

Thomas Gall

unread,
Dec 11, 2014, 10:00:56 AM12/11/14
to android-...@googlegroups.com
I'm seeing the exact same thing. 

The offending symbol is in  external/qemu/code-profile.c

On master (and I haven't looked at the other 5.0.x branches) there was a Nov 5th commit (commit 16c74a05c0fec15cf21f7ca7524deb7f286ab540) to initialize code_profile_dirname but obviously this fix really didn't fix the emulator at all.

This isn't some sort of n00b build environment issue. FWIW I am on Yosemite for my build environment. 

Regards,
Tom

Al Sutton

unread,
Dec 11, 2014, 12:33:21 PM12/11/14
to android-...@googlegroups.com

You need to read the documentation about setting up your environment to build Lollipop.

Al.



---- Thomas Gall wrote ----
--

Thomas Gall

unread,
Dec 13, 2014, 2:37:50 PM12/13/14
to android-...@googlegroups.com
This is not an environmental issue as part of the Android build. 

emulator and friends which is being run and errors out with this problem is one of the prebuilt binaries. 

Hopefully will have some time to recreate this with a fresh qemu build sometime this weekend. As noted in my earlier post, there is supposedly a patch to address this from back in November and obviously it doesn't.

Tom

Björn Davidsson

unread,
Dec 13, 2014, 4:33:34 PM12/13/14
to android-...@googlegroups.com
The fix is probably correct, but the emulator is not built when building on OS X. Instead, a prebuilt binary is used. The prebuilt binary currently on master was created before the fix, so it still has the issue. As a temporary workaround, I used the previous version, before the addition of the profiling support:

cd prebuilts/android-emulator
git checkout 3cc1518e492fae1b698f7be3e6311352bb8bcbec

Best regards,
Björn Davidsson

Jim Vitek

unread,
Dec 14, 2014, 3:50:46 PM12/14/14
to android-...@googlegroups.com
This worked for me. Thanks Björn!

kinglei

unread,
Dec 21, 2014, 8:24:39 PM12/21/14
to android-...@googlegroups.com
Do you solve this problem? please help me

Vicamo Yang

unread,
Jan 14, 2015, 10:28:06 AM1/14/15
to android-...@googlegroups.com, jinleicr...@gmail.com
Reply all
Reply to author
Forward
0 new messages