Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.

ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 2 Posters 945 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dj_13
    wrote on last edited by
    #1

    Hello Everyone, i am trying to configure the qt code for RPi.
    I am getting the following message:

    /home/bot1/tmp/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/home/bot1/raspi/sysroot -Wl,-O1 -Wl,-rpath-link,/home/bot1/raspi/sysroot/opt/vc/lib -Wl,-rpath-link,/home/bot1/raspi/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/bot1/raspi/sysroot/lib/arm-linux-gnueabihf -o verifyspec verifyspec.o
    /home/bot1/tmp/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find crt1.o: No such file or directory
    /home/bot1/tmp/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find crti.o: No such file or directory
    /home/bot1/tmp/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lm
    collect2: error: ld returned 1 exit status
    Makefile:68: recipe for target 'verifyspec' failed
    make: *** [verifyspec] Error 1
    Note: Also available for Linux: linux-clang linux-icc

    ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.

    I suppose its an issue with the crt*.o files and a relative path.

    Thank you!

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dj_13
      wrote on last edited by
      #2

      I think that the main problem lays in the "ld" file, which does not incorporate crt1,crti and also -lm

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dj_13
        wrote on last edited by
        #3

        It is worth mentioning that i am using this command to configure the project:

        ../qt-5.12.3-src/configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/home/bot1/tmp/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr -extprefix ~/raspi/sysroot/usr -hostprefix ~/raspi/qt5 -v -no-use-gold-linker -webengine-embedded-build -webengine-pepper-plugins -webengine-printing-and-pdf -webengine-proprietary-codecs -webengine-spellchecker -qt-sqlite -feature-webengine-embedded-build -feature-webengine-printing-and-pdf -skip qtscript -webengine-webrtc
        
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi and welcome to devnet,

          I would try to get a more recent version of your cross-compiler. Gcc 4.8.3 is a bit outdated.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved