gnustep / tools-android

Objective-C on Android with Foundation, CoreFoundation, and libdispatch.
MIT License
48 stars 12 forks source link

macos ld.lld: error: libicudata.so: unknown file type #26

Closed guanzidashu closed 1 month ago

guanzidashu commented 1 month ago

ld.lld: error: /Volumes/Lenovo/Android/GNUstep/armeabi-v7a/lib/libicudata.so: unknown file type ld.lld: error: /Volumes/Lenovo/Android/GNUstep/armeabi-v7a/lib/libicudata.so: unknown file type clang-17: error: linker command failed with exit code 1 (use -v to see invocation) clang-17: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [xmlcatalog] Error 1 make[2]: Waiting for unfinished jobs.... make[2]: [xmllint] Error 1 make[1]: [all-recursive] Error 1 make: *** [all] Error 2

phases/16-libxml2.sh failed for ABI armeabi-v7a

this version image command : ./build.sh --prefix /Volumes/Lenovo/Android/GNUstep -n /Users/hachi/Library/Android/sdk/ndk/26.1.10909125 branch :master

triplef commented 1 month ago

Can you check the type of libicudata.so by running this?

$ file /Volumes/Lenovo/Android/GNUstep/armeabi-v7a/lib/libicudata.so

For me the output is this:

ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), static-pie linked, BuildID[sha1]=2c57548568adc3435b2e76204b97d65c7df8846f, not stripped
guanzidashu commented 1 month ago

no, it only displays data, not elf32. image build.log

triplef commented 1 month ago

Maybe the symlink is broken? Can you try deleting the ~/Library/Android/GNUstep folder and building again?