Build android 2.3.1 in mac 10.14 got error: Undefined symbols for architecture i386:

84 views
Skip to first unread message

Steve Guan

unread,
May 22, 2019, 10:25:42 AM5/22/19
to Android Building
 I'm building android2.3.1 now, but got error as follow:

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=2.3.1

TARGET_PRODUCT=generic

TARGET_BUILD_VARIANT=eng

TARGET_SIMULATOR=

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

HOST_ARCH=x86

HOST_OS=darwin

HOST_BUILD_TYPE=release

BUILD_ID=GRH78

============================================

find: frameworks/base/frameworks/base/docs/html: No such file or directory

find: out/target/common/docs/gen: No such file or directory

find: frameworks/base/frameworks/base/docs/html: No such file or directory

find: out/target/common/docs/gen: No such file or directory

find: frameworks/base/frameworks/base/docs/html: No such file or directory

find: out/target/common/docs/gen: No such file or directory

find: frameworks/base/frameworks/base/docs/html: No such file or directory

find: out/target/common/docs/gen: No such file or directory

find: frameworks/base/frameworks/base/docs/html: No such file or directory

find: out/target/common/docs/gen: No such file or directory

host Executable: acp (out/host/darwin-x86/obj/EXECUTABLES/acp_intermediates/acp)

ld: warning: directory not found for option '-Lout/host/darwin-x86/obj/lib'

ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd

ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libc++.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libc++.tbd

Undefined symbols for architecture i386:

  "___error", referenced from:

      _process in acp.o

      _copyDirectory in libhost.a(CopyFile.o)

      _copyFileRecursive in libhost.a(CopyFile.o)

      _copyFileContents in libhost.a(CopyFile.o)

  "___stack_chk_fail", referenced from:

      _copyFileRecursive in libhost.a(CopyFile.o)

      _copyFileContents in libhost.a(CopyFile.o)

  "___stack_chk_guard", referenced from:

      _copyFileRecursive in libhost.a(CopyFile.o)

      _copyFileContents in libhost.a(CopyFile.o)

  "___stderrp", referenced from:

      _process in acp.o

      _main in acp.o

      _copyDirectory in libhost.a(CopyFile.o)

      _copyFileRecursive in libhost.a(CopyFile.o)

      _copyFileContents in libhost.a(CopyFile.o)

      _process in acp.o

      _main in acp.o

      _copyDirectory in libhost.a(CopyFile.o)

      _copyFileRecursive in libhost.a(CopyFile.o)

      _copyFileContents in libhost.a(CopyFile.o)

  "___strcat_chk", referenced from:

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_chmod$UNIX2003", referenced from:

      _copyDirectory in libhost.a(CopyFile.o)

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_chown", referenced from:

      _copyDirectory in libhost.a(CopyFile.o)

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_close$UNIX2003", referenced from:

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_closedir$UNIX2003", referenced from:

      _copyDirectory in libhost.a(CopyFile.o)

  "_fprintf", referenced from:

      _process in acp.o

      _main in acp.o

      _copyDirectory in libhost.a(CopyFile.o)

      _copyFileRecursive in libhost.a(CopyFile.o)

      _copyFileContents in libhost.a(CopyFile.o)

  "_free", referenced from:

      _process in acp.o

      _copyDirectory in libhost.a(CopyFile.o)

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_fwrite$UNIX2003", referenced from:

      _process in acp.o

      _main in acp.o

  "_getopt$UNIX2003", referenced from:

      _main in acp.o

  "_lchown$UNIX2003", referenced from:

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_lstat$INODE64", referenced from:

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_malloc", referenced from:

      _process in acp.o

      _copyDirectory in libhost.a(CopyFile.o)

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_memcpy", referenced from:

      _process in acp.o

      _copyDirectory in libhost.a(CopyFile.o)

  "_mkdir", referenced from:

      _copyDirectory in libhost.a(CopyFile.o)

  "_open$UNIX2003", referenced from:

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_opendir$INODE64$UNIX2003", referenced from:

      _copyDirectory in libhost.a(CopyFile.o)

  "_optind", referenced from:

      _main in acp.o

  "_printf", referenced from:

      _copyDirectory in libhost.a(CopyFile.o)

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_read$UNIX2003", referenced from:

      _copyFileContents in libhost.a(CopyFile.o)

  "_readdir$INODE64", referenced from:

      _copyDirectory in libhost.a(CopyFile.o)

  "_readlink", referenced from:

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_stat$INODE64", referenced from:

      _process in acp.o

      _copyDirectory in libhost.a(CopyFile.o)

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_strcmp", referenced from:

      _copyDirectory in libhost.a(CopyFile.o)

  "_strcpy", referenced from:

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_strerror$UNIX2003", referenced from:

      _copyDirectory in libhost.a(CopyFile.o)

      _copyFileRecursive in libhost.a(CopyFile.o)

      _copyFileContents in libhost.a(CopyFile.o)

  "_strlen", referenced from:

      _process in acp.o

      _copyDirectory in libhost.a(CopyFile.o)

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_strrchr", referenced from:

      _process in acp.o

  "_symlink", referenced from:

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_unlink", referenced from:

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_utime", referenced from:

      _copyDirectory in libhost.a(CopyFile.o)

      _copyFileRecursive in libhost.a(CopyFile.o)

  "_write$UNIX2003", referenced from:

      _copyFileContents in libhost.a(CopyFile.o)

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make: *** [out/host/darwin-x86/obj/EXECUTABLES/acp_intermediates/acp] Error 1







WX20190522-183815@2x.png  gmake.png 


   Any one else can help me, thanks!




Dan Willemsen

unread,
May 22, 2019, 4:21:09 PM5/22/19
to Android Building
See https://source.android.com/setup/build/older-versions for the requirements to build older versions of Android. In this particular case, you'd need to be running Mac 10.5 or 10.6, which is likely infeasible these days, so a Linux VM with a particularly old OS may be your best choice.

- Dan

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/692bc278-194d-4bbd-a6d7-b4cfb3ac8299%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Angelo P.

unread,
Feb 1, 2020, 11:57:42 AM2/1/20
to Android Building
Hello, I have the same problem, searching on google I found that apple remove 32bit support to mac os > 10.14. Anyway, I'd like to understand this error: is the 32bit support is needed for build on old 32bit arm devices? can we build for modern devices avoiding this error? 
A. 


On Wednesday, May 22, 2019 at 4:25:42 PM UTC+2, Steve Guan wrote:
 I'm building android2.3.1 now, but got error as follow:
o
Reply all
Reply to author
Forward
0 new messages