We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2019-06-16 18:05:17 +0200

qmake-subdir build broken in SailfishOS SDK 2

Hi,

when I try to build my private project with the current version of the SailfishOS SKD in QTCreator the build fails, see error messages[1], while it worked flawlessly with all versions prior to 2.0. It is based on a subdirs project [2]: one directory (“Vokabeltrainer”) contains a library (“libvocable”) the other the main program (“sailfish.pro”).

A manual shadow build inside the sdk vm

sb2 -t SailfishOS-3.0.2.8-armv7hl -m sdk-build qmake ../Vokabeltrainer/sailfish.pro sb2 -t SailfishOS-3.0.2.8-armv7hl -m sdk-build make mb2 -t SailfishOS-3.0.2.8-armv7hl rpm

is successfully after manually copying the spec file to a rpm folder in the shadow build location.

I hope this is sufficient to locate the problematic code changes. If not I will try to compose a minimal example.

carolus


[1] Error Output in QTCreator:

Building target platforms: armv7hl-meego-linux Building for target armv7hl-meego-linux Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Z1P8Dg + umask 022 + cd /home/mersdk/share/src/build-sailfish-SailfishOS_3_0_2_8_armv7hl_in_Sailfish_OS_Build_Engine-Release + LANG=C + export LANG + unset DISPLAY + CFLAGS='-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' + export CFLAGS + CXXFLAGS='-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' + export CXXFLAGS + FFLAGS='-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 -I/usr/lib/gfortran/modules' + export FFLAGS + LD_AS_NEEDED=1 + export LD_AS_NEEDED + export QT_SELECT=5 + QT_SELECT=5 + qmake -qt=5 -makefile 'QMAKE_CFLAGS_RELEASE=-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' 'QMAKE_CFLAGS_DEBUG=-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' 'QMAKE_CXXFLAGS_RELEASE=-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' 'QMAKE_CXXFLAGS_DEBUG=-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' QMAKE_STRIP=: PREFIX=/usr /home/mersdk/.mb2/wrappers/share/src/build-sailfish-SailfishOS_3_0_2_8_armv7hl_in_Sailfish_OS_Build_Engine-Release/qmake: Executing real qmake: + /usr/bin/qmake -qt=5 -makefile 'QMAKE_CFLAGS_RELEASE=-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' 'QMAKE_CFLAGS_DEBUG=-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' 'QMAKE_CXXFLAGS_RELEASE=-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' 'QMAKE_CXXFLAGS_DEBUG=-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' QMAKE_STRIP=: PREFIX=/usr -spec linux-g++ /home/mersdk/share/src/Vokabeltrainer Cannot read /home/mersdk/share/src/Vokabeltrainer: file to open is a directory Error processing project file: /home/mersdk/share/src/Vokabeltrainer error: Bad exit status from /var/tmp/rpm-tmp.Z1P8Dg (%build) Bad exit status from /var/tmp/rpm-tmp.Z1P8Dg (%build)

`

[2] Main project file sailfish.pro

TEMPLATE = subdirs CONFIG += sailfishapp SUBDIRS = libvocable sailfish

CONFIG += ordered OTHER_FILES += \ rpm/VTTouch.spec \ rpm/VTTouch.yaml \

click to hide/show revision 2
No.2 Revision

qmake-subdir build broken in SailfishOS Sailfish SDK 22.x

Hi,

when I try to build my private project with the current version of the SailfishOS SKD Sailfish SDK in QTCreator Qt Creator the build fails, see error messages[1], while it worked flawlessly with all versions prior to 2.0. It is based on a subdirs project [2]: one directory (“Vokabeltrainer”) contains a library (“libvocable”) the other the main program (“sailfish.pro”).

A manual shadow build inside the sdk vm

build engine VM

sb2 -t SailfishOS-3.0.2.8-armv7hl -m sdk-build qmake ../Vokabeltrainer/sailfish.pro
sb2 -t SailfishOS-3.0.2.8-armv7hl -m sdk-build make
mb2 -t SailfishOS-3.0.2.8-armv7hl  rpm

rpm

is successfully after manually copying the spec file to a rpm folder in the shadow build location.

I hope this is sufficient to locate the problematic code changes. If not I will try to compose a minimal example.

carolus


[1] Error Output in QTCreator:

Building target platforms: armv7hl-meego-linux
Building for target armv7hl-meego-linux
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Z1P8Dg
+ umask 022
+ cd /home/mersdk/share/src/build-sailfish-SailfishOS_3_0_2_8_armv7hl_in_Sailfish_OS_Build_Engine-Release
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS='-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'
+ export CFLAGS
+ CXXFLAGS='-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'
+ export CXXFLAGS
+ FFLAGS='-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 -I/usr/lib/gfortran/modules'
+ export FFLAGS
+ LD_AS_NEEDED=1
+ export LD_AS_NEEDED
+ export QT_SELECT=5
+ QT_SELECT=5
+ qmake -qt=5 -makefile 'QMAKE_CFLAGS_RELEASE=-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' 'QMAKE_CFLAGS_DEBUG=-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' 'QMAKE_CXXFLAGS_RELEASE=-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' 'QMAKE_CXXFLAGS_DEBUG=-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' QMAKE_STRIP=: PREFIX=/usr
/home/mersdk/.mb2/wrappers/share/src/build-sailfish-SailfishOS_3_0_2_8_armv7hl_in_Sailfish_OS_Build_Engine-Release/qmake: Executing real qmake:
+ /usr/bin/qmake -qt=5 -makefile 'QMAKE_CFLAGS_RELEASE=-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' 'QMAKE_CFLAGS_DEBUG=-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' 'QMAKE_CXXFLAGS_RELEASE=-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' 'QMAKE_CXXFLAGS_DEBUG=-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' QMAKE_STRIP=: PREFIX=/usr -spec linux-g++ /home/mersdk/share/src/Vokabeltrainer
Cannot read /home/mersdk/share/src/Vokabeltrainer: file to open is a directory
Error processing project file: /home/mersdk/share/src/Vokabeltrainer
error: Bad exit status from /var/tmp/rpm-tmp.Z1P8Dg (%build)
    Bad exit status from /var/tmp/rpm-tmp.Z1P8Dg (%build) 

`

(%build)

[2] Main project file sailfish.pro

TEMPLATE = subdirs
CONFIG += sailfishapp
SUBDIRS = libvocable sailfish

sailfish CONFIG += ordered OTHER_FILES += \ rpm/VTTouch.spec \ rpm/VTTouch.yaml \

\
click to hide/show revision 3
No.3 Revision

qmake-subdir build broken Build fails with multiple .pro files in Sailfish SDK 2.x

Hi,

when I try to build my private project with the current version of the Sailfish SDK in Qt Creator the build fails, see error messages[1], while it worked flawlessly with all versions prior to 2.0. It is based on a subdirs project [2]: one directory (“Vokabeltrainer”) contains a library (“libvocable”) the other the main program (“sailfish.pro”).

A manual shadow build inside the build engine VM

sb2 -t SailfishOS-3.0.2.8-armv7hl -m sdk-build qmake ../Vokabeltrainer/sailfish.pro
sb2 -t SailfishOS-3.0.2.8-armv7hl -m sdk-build make
mb2 -t SailfishOS-3.0.2.8-armv7hl  rpm

is successfully after manually copying the spec file to a rpm folder in the shadow build location.

I hope this is sufficient to locate the problematic code changes. If not I will try to compose a minimal example.

carolus


[1] Error Output in QTCreator:

Building target platforms: armv7hl-meego-linux
Building for target armv7hl-meego-linux
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Z1P8Dg
+ umask 022
+ cd /home/mersdk/share/src/build-sailfish-SailfishOS_3_0_2_8_armv7hl_in_Sailfish_OS_Build_Engine-Release
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS='-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'
+ export CFLAGS
+ CXXFLAGS='-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'
+ export CXXFLAGS
+ FFLAGS='-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 -I/usr/lib/gfortran/modules'
+ export FFLAGS
+ LD_AS_NEEDED=1
+ export LD_AS_NEEDED
+ export QT_SELECT=5
+ QT_SELECT=5
+ qmake -qt=5 -makefile 'QMAKE_CFLAGS_RELEASE=-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' 'QMAKE_CFLAGS_DEBUG=-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' 'QMAKE_CXXFLAGS_RELEASE=-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' 'QMAKE_CXXFLAGS_DEBUG=-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' QMAKE_STRIP=: PREFIX=/usr
/home/mersdk/.mb2/wrappers/share/src/build-sailfish-SailfishOS_3_0_2_8_armv7hl_in_Sailfish_OS_Build_Engine-Release/qmake: Executing real qmake:
+ /usr/bin/qmake -qt=5 -makefile 'QMAKE_CFLAGS_RELEASE=-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' 'QMAKE_CFLAGS_DEBUG=-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' 'QMAKE_CXXFLAGS_RELEASE=-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' 'QMAKE_CXXFLAGS_DEBUG=-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' QMAKE_STRIP=: PREFIX=/usr -spec linux-g++ /home/mersdk/share/src/Vokabeltrainer
Cannot read /home/mersdk/share/src/Vokabeltrainer: file to open is a directory
Error processing project file: /home/mersdk/share/src/Vokabeltrainer
error: Bad exit status from /var/tmp/rpm-tmp.Z1P8Dg (%build)
    Bad exit status from /var/tmp/rpm-tmp.Z1P8Dg (%build)

[2] Main project file sailfish.pro

TEMPLATE = subdirs
CONFIG += sailfishapp
SUBDIRS = libvocable sailfish

CONFIG += ordered
OTHER_FILES += \
    rpm/VTTouch.spec \
    rpm/VTTouch.yaml \