Project

General

Profile

Bug #281

Test build/flto failed

Added by Alexander Zhukov over 7 years ago. Updated almost 6 years ago.

Status:
Invalid
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
03/14/2013
Due date:
% Done:

0%

Estimated time:
CPU Architecture:
mips
Host OS:
Mac OS X, Windows
Toolchain:
gcc-4.6
Android version:
CrystaX Version:

Description

Sample output (MAc OS X):

Building NDK build test: flto

COMMAND: cd /tmp/ndk-zuav/tests/build/flto

COMMAND: /tmp/android-ndk-20130312/ndk-build -j4 -B APP_ABI=mips NDK_TOOLCHAIN_VERSION=4.6

rm -f ./libs/armeabi/lib*.so ./libs/armeabi-v7a/lib*.so ./libs/mips/lib*.so ./libs/x86/lib*.so
rm -f ./libs/armeabi/gdbserver ./libs/armeabi-v7a/gdbserver ./libs/mips/gdbserver ./libs/x86/gdbserver
rm -f ./libs/armeabi/gdb.setup ./libs/armeabi-v7a/gdb.setup ./libs/mips/gdb.setup ./libs/x86/gdb.setup
Compile mips : flto <= flto.c
/tmp/android-ndk-20130312/toolchains/mipsel-linux-android-4.6/prebuilt/darwin-x86/bin/mipsel-linux-android-gcc -MMD -MP -MF ./obj/local/mips/objs/flto/flto.o.d -fpic -fno-strict-aliasing -finline-functions -ffunction-sections -funwind-tables -fmessage-length=0 -fno-inline-functions-called-once -fgcse-after-reload -frerun-cse-after-loop -frename-registers -no-canonical-prefixes -O2 -g -DNDEBUG -fomit-frame-pointer -funswitch-loops -finline-limit=300 -I/tmp/android-ndk-20130312/sources/crystax/include -Ijni -DANDROID -flto -Wa,--noexecstack -I/tmp/android-ndk-20130312/platforms/android-9/arch-mips/usr/include -c jni/flto.c -o ./obj/local/mips/objs/flto/flto.o
Executable : flto
/tmp/android-ndk-20130312/toolchains/mipsel-linux-android-4.6/prebuilt/darwin-x86/bin/mipsel-linux-android-g++ -Wl,--gc-sections -Wl,-z,nocopyreloc --sysroot=/tmp/android-ndk-20130312/platforms/android-9/arch-mips ./obj/local/mips/objs/flto/flto.o /tmp/android-ndk-20130312/sources/crystax/libs/mips/libcrystax.a -lgcc -no-canonical-prefixes -flto -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -L /tmp/android-ndk-20130312/sources/crystax/libs/mips -lc -lm -o ./obj/local/mips/flto
/tmp/android-ndk-20130312/toolchains/mipsel-linux-android-4.6/prebuilt/darwin-x86/bin/../lib/gcc/mipsel-linux-android/4.6/../../../../mipsel-linux-android/bin/ld: bad -plugin option
collect2: ld returned 1 exit status
make: *** [obj/local/mips/flto] Error 1

Sample output on Windos:

Executable : flto
/cygdrive/c/Users/zuav/NDK/android-ndk-20130312/toolchains/mipsel-linux-android-4.6/prebuilt/windows/bin/mipsel-linux-android-g++ -Wl,--gc-sections -Wl,-z,nocopyreloc --sysroot=C:/Users/zuav/NDK/android-ndk-20130312/platforms/android-9/arch-mips ./obj/local/mips/objs/flto/flto.o C:/Users/zuav/NDK/android-ndk-20130312/sources/crystax/libs/mips/libcrystax.a -lgcc -no-canonical-prefixes -flto -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -LC:/Users/zuav/NDK/android-ndk-20130312/sources/crystax/libs/mips -lc -lm -o ./obj/local/mips/flto
C:/Users/zuav/NDK/android-ndk-20130312/toolchains/mipsel-linux-android-4.6/prebuilt/windows/bin/../lib/gcc/mipsel-linux-android/4.6/../../../../mipsel-linux-android/bin/ld.exe: unrecognized option '-plugin'
C:/Users/zuav/NDK/android-ndk-20130312/toolchains/mipsel-linux-android-4.6/prebuilt/windows/bin/../lib/gcc/mipsel-linux-android/4.6/../../../../mipsel-linux-android/bin/ld.exe: use the --help option for usage information
collect2: ld returned 1 exit status
/cygdrive/c/Users/zuav/NDK/android-ndk-20130312/build/core/build-binary.mk:510: recipe for target `obj/local/mips/flto' failed
make: *** [obj/local/mips/flto] Error 1
!!! BUILD FAILURE [/cygdrive/c/Users/zuav/NDK/android-ndk-20130312/tests/build/flto]!!! See /tmp/ndk-zuav/tests/build-tests.log for details or use --verbose option!

#1

Updated by Alexander Zhukov over 7 years ago

  • Description updated (diff)
  • Host OS Windows added
#2

Updated by Dmitry Moskalchuk almost 6 years ago

  • Status changed from Open to Invalid

Also available in: Atom PDF