Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.2
-
None
-
33037150991a0dae0da769af8f46d1c15a27c728
Description
compilerSupportsFlag and linkerSupportsFlag tests types are run without using the CXXFLAGS defined in mkspec. This causes tests to always fail e.g., in cross-compilations since --sysroot is not used.
Checking for gold linker...
+ cd /home/sapiippo/development/qt/qt5/qtbase/config.tests && /home/sapiippo/Qt/5.10.0/Boot2Qt/apalis-imx6/toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ -fuse-ld=gold -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=hard -o conftest-out conftest.cpp
> /home/sapiippo/Qt/5.10.0/Boot2Qt/apalis-imx6/toolchain/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/real-ld: cannot find crt1.o: No such file or directory
> /home/sapiippo/Qt/5.10.0/Boot2Qt/apalis-imx6/toolchain/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/real-ld: cannot find crti.o: No such file or directory
> /home/sapiippo/Qt/5.10.0/Boot2Qt/apalis-imx6/toolchain/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/real-ld: cannot find crtbegin.o: No such file or directory
> /home/sapiippo/Qt/5.10.0/Boot2Qt/apalis-imx6/toolchain/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/real-ld: cannot find -lstdc++
> /home/sapiippo/Qt/5.10.0/Boot2Qt/apalis-imx6/toolchain/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/real-ld: cannot find -lm
> /home/sapiippo/Qt/5.10.0/Boot2Qt/apalis-imx6/toolchain/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/real-ld: cannot find -lgcc_s
> /home/sapiippo/Qt/5.10.0/Boot2Qt/apalis-imx6/toolchain/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/real-ld: cannot find -lgcc
> /home/sapiippo/Qt/5.10.0/Boot2Qt/apalis-imx6/toolchain/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/real-ld: cannot find -lc
> /home/sapiippo/Qt/5.10.0/Boot2Qt/apalis-imx6/toolchain/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/real-ld: cannot find -lgcc_s
> /home/sapiippo/Qt/5.10.0/Boot2Qt/apalis-imx6/toolchain/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/real-ld: cannot find -lgcc
> /home/sapiippo/Qt/5.10.0/Boot2Qt/apalis-imx6/toolchain/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/real-ld: cannot find crtend.o: No such file or directory
> /home/sapiippo/Qt/5.10.0/Boot2Qt/apalis-imx6/toolchain/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/real-ld: cannot find crtn.o: No such file or directory
> collect2: error: ld returned 1 exit status
test config.qtbase.tests.use_gold_linker FAILED
Attachments
Issue Links
- relates to
-
QTBUG-63455 Qt configure not expose -std Cxx configure choice on tests using linux clang
- Reported