CODeRUS / docker-sailfishos-sdk-local

Scripts to build local Sailfish OS SDK Docker image
16 stars 3 forks source link

Build fails with QMake unable to find files #2

Open ksiazkowicz opened 5 years ago

ksiazkowicz commented 5 years ago

I'm running Docker Desktop on Windows, which requires Hyper-V and unfortunately makes VBox unusable. I compiled the scripts in helper-win directory in repo, replaced all paths with where my SDK is installed (to C:\bin\SailfishOS). built the image and ran it. QtCreator correctly detects the container and has no issues connecting to it. Web interface also looks functional.

When I'm trying to build something, I get this:

Building target platforms: armv7hl-meego-linux
Building for target armv7hl-meego-linux
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.d2yjO2
+ umask 022
+ cd /home/mersdk/share/build-test-SailfishOS_3_0_1_11_armv7hl_in_Sailfish_OS_Build_Engine-Debug
+ 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/share//test/test.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug
Cannot find file: /home/mersdk/share/test/test.pro.

I can confirm that directories are mapped correctly and file exists in that path, using ssh to connect to the container.

 ✔   ~  ssh sfosengine
,---
| Sailfish OS 3.0.1.11 (Sipoonkorpi)
'---
[mersdk@7b0afb46c741 ~]$ tail /home/mersdk/share/test/test.pro

# to disable building translations every time, comment out the
# following CONFIG line
CONFIG += sailfishapp_i18n

# German translation is enabled as an example. If you aren't
# planning to localize your app, remember to comment out the
# following TRANSLATIONS line. And also do not forget to
# modify the localized app name in the the .desktop file.
TRANSLATIONS += translations/test-de.ts
[mersdk@7b0afb46c741 ~]$

Command generated by Qt seems to fail when ran in SB2 environment as well, with the same error.

[SB2 sdk-build SailfishOS-3.0.1.11-armv7hl] mersdk@7b0afb46c741 ~ $ 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/share//test/test.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug
Cannot find file: /home/mersdk/share/test/test.pro.
[SB2 sdk-build SailfishOS-3.0.1.11-armv7hl] mersdk@7b0afb46c741 ~ $

Any suggestions on how to debug this further?

CODeRUS commented 5 years ago

thanks for report, i didnt tried win docker with sfos 3, maybe something had changed.

вс, 24 февр. 2019 г. в 18:19, Maciej Janiszewski notifications@github.com:

I'm running Docker Desktop on Windows, which requires Hyper-V and unfortunately makes VBox unusable. I compiled the scripts in helper-win directory in repo, replaced all paths with where my SDK is installed (to C:\bin\SailfishOS). built the image and ran it. QtCreator correctly detects the container and has no issues connecting to it. Web interface also looks functional.

When I'm trying to build something, I get this:

Building for target armv7hl-meego-linux

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.d2yjO2

  • umask 022

  • cd /home/mersdk/share/build-test-SailfishOS_3_0_1_11_armv7hl_in_Sailfish_OS_Build_Engine-Debug

  • 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/share//test/test.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug

Cannot find file: /home/mersdk/share/test/test.pro.

I can confirm that directories are mapped correctly and file exists in that path, using ssh to connect to the container.

,---

| Sailfish OS 3.0.1.11 (Sipoonkorpi)

'---

[mersdk@7b0afb46c741 ~]$ tail /home/mersdk/share/test/test.pro

to disable building translations every time, comment out the

following CONFIG line

CONFIG += sailfishapp_i18n

German translation is enabled as an example. If you aren't

planning to localize your app, remember to comment out the

following TRANSLATIONS line. And also do not forget to

modify the localized app name in the the .desktop file.

TRANSLATIONS += translations/test-de.ts

[mersdk@7b0afb46c741 ~]$

Command generated by Qt seems to fail when ran in SB2 environment as well, with the same error.

[SB2 sdk-build SailfishOS-3.0.1.11-armv7hl] mersdk@7b0afb46c741 ~ $ 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/share//test/test.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug

Cannot find file: /home/mersdk/share/test/test.pro.

[SB2 sdk-build SailfishOS-3.0.1.11-armv7hl] mersdk@7b0afb46c741 ~ $

Any suggestions on how to debug this further?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CODeRUS/docker-sailfishos-sdk-local/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AAr-2YynLN3-Tna7mRp1ScQHCim8uBEeks5vQq2WgaJpZM4bOllq .

CODeRUS commented 5 years ago

Related: https://unix.stackexchange.com/questions/36852/qmake-not-working-in-a-mounted-smb-dir