Project

General

Profile

Bug #1041

[arm64] "Nonrepresentable section on output" when linking with static libobjc2

Added by Dmitry Moskalchuk over 3 years ago. Updated about 3 years ago.

Status:
Open
Priority:
Normal
Category:
libobjc2
Target version:
Start date:
09/06/2015
Due date:
% Done:

0%

Estimated time:
CPU Architecture:
arm64
Host OS:
Toolchain:
Android version:
CrystaX Version:

Description

2015-09-05 22:36:47.502 UTC: ## COMMAND: /Volumes/android/ndk/platform/ndk/ndk-build -B -j1 V=1 APP_PIE=false
2015-09-05 22:36:47.502 UTC: ## CWD: /Volumes/android/ndk/out/tests/gcc4.9/device/crystax-test-objc2-runtime/target
2015-09-05 22:36:47.569 UTC: > rm -f ./libs/arm64-v8a/lib*.so ./libs/armeabi/lib*.so ./libs/armeabi-v7a/lib*.so ./libs/armeabi-v7a-hard/lib*.so ./libs/mips/lib*.so ./libs/mips64/lib*.so ./libs/x86/lib*.so ./libs/x86_64/lib*.so
2015-09-05 22:36:47.575 UTC: > rm -f ./libs/arm64-v8a/gdbserver ./libs/armeabi/gdbserver ./libs/armeabi-v7a/gdbserver ./libs/armeabi-v7a-hard/gdbserver ./libs/mips/gdbserver ./libs/mips64/gdbserver ./libs/x86/gdbserver ./libs/x86_64/gdbserver
2015-09-05 22:36:47.578 UTC: > rm -f ./libs/arm64-v8a/gdb.setup ./libs/armeabi/gdb.setup ./libs/armeabi-v7a/gdb.setup ./libs/armeabi-v7a-hard/gdb.setup ./libs/mips/gdb.setup ./libs/mips64/gdb.setup ./libs/x86/gdb.setup ./libs/x86_64/gdb.setup
2015-09-05 22:36:47.580 UTC: > mkdir -p obj/local/arm64-v8a/objs/test-shared
2015-09-05 22:36:47.585 UTC: > [arm64-v8a] Compile : test-shared <= test.m
2015-09-05 22:36:47.585 UTC: > /Volumes/android/ndk/platform/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android-gcc -MMD -MP -MF ./obj/local/arm64-v8a/objs/test-shared/test.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -O2 -g -DNDEBUG -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300 -I/Volumes/android/ndk/platform/ndk/sources/objc/gnustep-libobjc2/include -Ijni -DANDROID -Wa,--noexecstack -Wformat -Werror=format-security -fPIE -fobjc-exceptions -c -I/Volumes/android/ndk/platform/ndk/sources/crystax/include -I/Volumes/android/ndk/platform/ndk/platforms/android-21/arch-arm64/usr/include jni/test.m -o ./obj/local/arm64-v8a/objs/test-shared/test.o
2015-09-05 22:36:47.631 UTC: > mkdir -p obj/local/arm64-v8a
2015-09-05 22:36:47.637 UTC: > [arm64-v8a] Prebuilt : libobjc.so <= /sources/objc/gnustep-libobjc2/libs/arm64-v8a/
2015-09-05 22:36:47.637 UTC: > cp -f /Volumes/android/ndk/platform/ndk/sources/objc/gnustep-libobjc2/libs/arm64-v8a/libobjc.so obj/local/arm64-v8a/libobjc.so
2015-09-05 22:36:47.643 UTC: > [arm64-v8a] Executable : test-shared
2015-09-05 22:36:47.643 UTC: > /Volumes/android/ndk/platform/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android-g++ -Wl,--gc-sections -Wl,-z,nocopyreloc --sysroot=/Volumes/android/ndk/platform/ndk/platforms/android-21/arch-arm64 -Wl,-rpath-link=/Volumes/android/ndk/platform/ndk/platforms/android-21/arch-arm64/usr/lib -Wl,-rpath-link=./obj/local/arm64-v8a ./obj/local/arm64-v8a/objs/test-shared/test.o -lgcc ./obj/local/arm64-v8a/libobjc.so -no-canonical-prefixes -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -L/Volumes/android/ndk/platform/ndk/sources/crystax/empty /Volumes/android/ndk/platform/ndk/sources/crystax/libs/arm64-v8a/libcrystax.so -lc -o ./obj/local/arm64-v8a/test-shared
2015-09-05 22:36:47.658 UTC: > [arm64-v8a] Prebuilt : libgnustl_shared.so <= /sources/cxx-stl/gnu-libstdc++/4.9/libs/arm64-v8a/
2015-09-05 22:36:47.659 UTC: > cp -f /Volumes/android/ndk/platform/ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/arm64-v8a/libgnustl_shared.so obj/local/arm64-v8a/libgnustl_shared.so
2015-09-05 22:36:47.683 UTC: > mkdir -p libs/arm64-v8a
2015-09-05 22:36:47.688 UTC: > [arm64-v8a] Install : libcrystax.so => libs/arm64-v8a/libcrystax.so
2015-09-05 22:36:47.689 UTC: > install -p /Volumes/android/ndk/platform/ndk/sources/crystax/libs/arm64-v8a/libcrystax.so libs/arm64-v8a/libcrystax.so
2015-09-05 22:36:47.697 UTC: > /Volumes/android/ndk/platform/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android-strip --strip-unneeded libs/arm64-v8a/libcrystax.so
2015-09-05 22:36:47.715 UTC: > [arm64-v8a] Install : test-shared => libs/arm64-v8a/test-shared
2015-09-05 22:36:47.716 UTC: > install -p ./obj/local/arm64-v8a/test-shared ./libs/arm64-v8a/test-shared
2015-09-05 22:36:47.718 UTC: > /Volumes/android/ndk/platform/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android-strip --strip-unneeded ./libs/arm64-v8a/test-shared
2015-09-05 22:36:47.722 UTC: > mkdir -p obj/local/arm64-v8a/objs/test-static
2015-09-05 22:36:47.726 UTC: > [arm64-v8a] Compile : test-static <= test.m
2015-09-05 22:36:47.727 UTC: > /Volumes/android/ndk/platform/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android-gcc -MMD -MP -MF ./obj/local/arm64-v8a/objs/test-static/test.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -O2 -g -DNDEBUG -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300 -I/Volumes/android/ndk/platform/ndk/sources/objc/gnustep-libobjc2/include -Ijni -DANDROID -Wa,--noexecstack -Wformat -Werror=format-security -fPIE -fobjc-exceptions -fobjc-exceptions -c -I/Volumes/android/ndk/platform/ndk/sources/crystax/include -I/Volumes/android/ndk/platform/ndk/platforms/android-21/arch-arm64/usr/include jni/test.m -o ./obj/local/arm64-v8a/objs/test-static/test.o
2015-09-05 22:36:47.775 UTC: > mkdir -p /Volumes/android/ndk/platform/ndk/sources/objc/gnustep-libobjc2/libs/arm64-v8a
2015-09-05 22:36:47.779 UTC: > [arm64-v8a] Executable : test-static
2015-09-05 22:36:47.779 UTC: > /Volumes/android/ndk/platform/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android-g++ -Wl,--gc-sections -Wl,-z,nocopyreloc --sysroot=/Volumes/android/ndk/platform/ndk/platforms/android-21/arch-arm64 -Wl,-rpath-link=/Volumes/android/ndk/platform/ndk/platforms/android-21/arch-arm64/usr/lib -Wl,-rpath-link=./obj/local/arm64-v8a ./obj/local/arm64-v8a/objs/test-static/test.o /Volumes/android/ndk/platform/ndk/sources/objc/gnustep-libobjc2/libs/arm64-v8a/libobjc.a -lgcc -no-canonical-prefixes -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -L/Volumes/android/ndk/platform/ndk/sources/crystax/empty /Volumes/android/ndk/platform/ndk/sources/crystax/libs/arm64-v8a/libcrystax.so -lc -o ./obj/local/arm64-v8a/test-static
2015-09-05 22:36:47.809 UTC: * /Volumes/android/ndk/platform/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9/../../../../aarch64-linux-android/bin/ld: final link failed: Nonrepresentable section on output
2015-09-05 22:36:47.809 UTC: * collect2: error: ld returned 1 exit status
2015-09-05 22:36:47.809 UTC: * make[2]: *** [obj/local/arm64-v8a/test-static] Error 1

History

#1 Updated by Dmitry Moskalchuk over 3 years ago

  • Target version changed from 10.3.0 to 11.0.0

#2 Updated by Dmitry Moskalchuk about 3 years ago

  • Priority changed from High to Normal

Also available in: Atom PDF