REPRODUCIBILITY: always
BUILD ID: SDK 3.2
HARDWARE: build engine, Virtualbox
REGRESSION: yes
DESCRIPTION:
After upgrading SDK to recent version (3.2) my C++ application fails to compile (OSM Scout: https://github.com/Karry/osmscout-sailfish). It fails while linking binaries:
/usr/bin/c++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mfloat-abi=hard -mfpu=neon -mthumb -Wno-psabi -fopenmp -O2 -g -pie CMakeFiles/Routing.dir/dependencies/libosmscout/Demos/src/Routing.cpp.o CMakeFiles/Routing.dir/Routing_autogen/mocs_compilation.cpp.o -o Routing dependencies/libosmscout/libosmscout/libosmscout.a libmarisa.a -lc
/srv/mer/toolings/SailfishOS-3.3.0.16//opt/cross/bin/armv7hl-meego-linux-gnueabi-ld: dependencies/libosmscout/libosmscout/libosmscout.a(TypeInfoSet.cpp.o): bad reloc symbol index (0x233f0c >= 0x82) for offset 0xf8 in section `.text._ZNSt6vectorISt10shared_ptrIN8osmscout8TypeInfoEESaIS3_EED2Ev[_ZNSt6vectorISt10shared_ptrIN8osmscout8TypeInfoEESaIS3_EED5Ev]'
/srv/mer/toolings/SailfishOS-3.3.0.16//opt/cross/bin/armv7hl-meego-linux-gnueabi-ld: dependencies/libosmscout/libosmscout/libosmscout.a: error adding symbols: bad value
collect2: error: ld returned 1 exit status
It fails even when I cleanup build directory before build. It is possible that I have some error in my CMake, but it fails even with v2.4
tag, that was build without issue in previous SDK release.
STEPS TO REPRODUCE:
# install recent SDK to default location
OS_VERSION=3.3.0.16
sfdk config target=SailfishOS-${OS_VERSION}-armv7hl
# HACK: gcc libs like libgomp.so are missing under the build target
sfdk engine exec sudo cp \
/srv/mer/toolings/SailfishOS-${OS_VERSION}/opt/cross/armv7hl-meego-linux-gnueabi/lib/libgomp.so.1.0.0 \
/srv/mer/targets/SailfishOS-${OS_VERSION}-armv7hl/usr/lib/libgomp.so.1
sfdk engine exec sudo cp \
/srv/mer/toolings/SailfishOS-${OS_VERSION}/usr/lib/libgomp.so.1.0.0 \
/srv/mer/targets/SailfishOS-${OS_VERSION}-i486/usr/lib/libgomp.so.1
git clone --recursive https://github.com/Karry/osmscout-sailfish
cd osmscout-sailfish
sfdk build
EXPECTED RESULT:
get osmscout package
ACTUAL RESULT:
linking fails