Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
5.10.1
-
None
-
Sourcing /opt/sdk/environment-setup-aarch64-poky-linux from a jenkins job
Description
Today I started adding jobs to jenkins that build software components using the cross compilation toolchain from a baked B2Qt SDK for TX2.
At the beginning of the script I source . /opt/sdk/environment-setup-aarch64-poky-linux as I should.
Sourcing this file from PC terminal only only shows warnings. But jenkins check every shell instructions return value to detect is the build is successful.
export OE_QMAKE_CC=$CC export OE_QMAKE_CXX=$CXX export OE_QMAKE_LINK=$CXX
should be changed to
export OE_QMAKE_CC="$CC" export OE_QMAKE_CXX="$CXX" export OE_QMAKE_LINK="$CXX"
otherwise build fail with error:
export OE_QMAKE_CC=aarch64-poky-linux-gcc --sysroot=/opt/sdk/sysroots/aarch64-poky-linux
/tmp/jenkins6449859542230643733.sh: 5: export: --sysroot: bad variable name
Also when executing that script these warnings show up:
... + qmake -query QT_INSTALL_LIBS Empty filename passed to function ... + qmake -query QT_INSTALL_HEADERS Empty filename passed to function ... + qmake -query QT_INSTALL_LIBS Empty filename passed to function ... + qmake -query QT_INSTALL_LIBS Empty filename passed to function ...
It turns out that QT_INSTALL_LIBS and QT_INSTALL_HEADERS are not defined. I'm not aware of the impact of these warning at this stage
Attachments
For Gerrit Dashboard: QTBUG-68163 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
228690,2 | nativesdk-qtbase: add quotes to CC and CXX in environment file | 5.11 | yocto/meta-qt5 | Status: MERGED | +2 | 0 |