Export to GitHub

android-lighthouse - issue #60

Compilation error: selected processor does not support `swp r4,r0,[r3]


Posted on Jan 3, 2011 by Quick Lion

What steps will reproduce the problem?

  1. clone latest BogDan's qt/android-lighthouse master branch
  2. compile for target android 2.2 with ndk-5

What is the expected output? What do you see instead?

Expect compiled libraries. Instead compilation ends with assembler error in src/corelib/kernel/qobject.cpp

/home/jet/android-ndk-r5/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ -c -include .pch/release-shared/QtCore -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fpic -mthumb -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -DANDROID -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -DQT_NO_QWS_TRANSFORMED -Os -g -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_NO_CORESERVICES -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQLIBRARYINFO_EPOCROOT -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -I../../mkspecs/android-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-shared -Iglobal -I../../tools/shared -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared -I/home/jet/android-ndk-r5/platforms/android-4/arch-arm/usr/include -I/home/jet/android-ndk-r5/sources/cxx-stl/gnu-libstdc++/include -I/home/jet/android-ndk-r5/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include -o .obj/release-shared/qprocess_unix.o io/qprocess_unix.cpp /home/jet/android-ndk-r5/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ -c -include .pch/release-shared/QtCore -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fpic -mthumb -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -DANDROID -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -DQT_NO_QWS_TRANSFORMED -Os -g -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_NO_CORESERVICES -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQLIBRARYINFO_EPOCROOT -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -I../../mkspecs/android-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-shared -Iglobal -I../../tools/shared -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared -I/home/jet/android-ndk-r5/platforms/android-4/arch-arm/usr/include -I/home/jet/android-ndk-r5/sources/cxx-stl/gnu-libstdc++/include -I/home/jet/android-ndk-r5/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include -o .obj/release-shared/qobject.o kernel/qobject.cpp /tmp/ccQOHtKL.s: Assembler messages: /tmp/ccQOHtKL.s:5465: Error: selected processor does not support `swp r4,r0,[r3]' make[1]: * [.obj/release-shared/qobject.o] Error 1

What version of the product are you using? On what operating system?

Latest master branch of BogDan's qt/android-lighthouse master branch. Compiling on Ubuntu 10.04.1 LTS 32-bit.

Comment #1

Posted on Jan 3, 2011 by Quick Cat

Comment deleted

Comment #2

Posted on Jan 3, 2011 by Quick Cat

The same error compiling on Ubuntu 10.10 64-bit

Comment #3

Posted on Jan 3, 2011 by Swift Horse

It's an issue on the last commit, please try with a previous version. I'll fix it very soon.

Comment #4

Posted on Jan 4, 2011 by Swift Horse

Fixed. Please check latest version

Status: Fixed

Labels:
Type-Defect Priority-Critical