Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63483

conftest does not use CXXFLAGS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.11.2
    • 5.9.2
    • Build System
    • 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

          Activity

            People

              buddenha Oswald Buddenhagen
              sapiippo Samuli Piippo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: