Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken. pi
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 2 Posters 2.9k Views 1 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.
  • T Offline
    T Offline
    tinashe
    wrote on last edited by
    #1

    i downloaded qt 5.14.2 source code on ubuntu 18.04 64 bit when i try to compile this what i get. can someone please assist me

    /home/tg/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/tg/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/tg/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.

    Pablo J. RoginaP 1 Reply Last reply
    0
    • T tinashe

      i downloaded qt 5.14.2 source code on ubuntu 18.04 64 bit when i try to compile this what i get. can someone please assist me

      /home/tg/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/tg/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/tg/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.

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @tinashe said in ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken. pi:

      cannot find crt1.o: No such file or directory

      I'd say it looks like some issue with the sysroot path while configuring Qt build.

      Please post the ./configure command (and all its arguments) you used.

      As a reference, you can check this guide

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • T Offline
        T Offline
        tinashe
        wrote on last edited by tinashe
        #3

        thank you Pablo for the response
        i am not connected to raspberry pi all i need are just libs which i can deploy later by snapcraft to inubuntu core 18
        ./configure -release -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -skip qtwayland -skip qtlocation -skip qtscript -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -no-use-gold-linker -v -no-gbm

        directory1.png
        directory2.png
        i downloaded my source as follows:
        git clone git://code.qt.io/qt/qt5.git
        cd qt5
        ./init-repository

        Pablo J. RoginaP 1 Reply Last reply
        0
        • T tinashe

          thank you Pablo for the response
          i am not connected to raspberry pi all i need are just libs which i can deploy later by snapcraft to inubuntu core 18
          ./configure -release -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -skip qtwayland -skip qtlocation -skip qtscript -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -no-use-gold-linker -v -no-gbm

          directory1.png
          directory2.png
          i downloaded my source as follows:
          git clone git://code.qt.io/qt/qt5.git
          cd qt5
          ./init-repository

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @tinashe said in ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken. pi:

          i am not connected to raspberry pi

          Does that mean you never copied files from your RPi device into your PC?
          like step #8 from the guide I suggested

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          T 1 Reply Last reply
          0
          • T Offline
            T Offline
            tinashe
            wrote on last edited by
            #5

            yes i did not copy anything from the RPI device into my PC

            1 Reply Last reply
            0
            • Pablo J. RoginaP Pablo J. Rogina

              @tinashe said in ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken. pi:

              i am not connected to raspberry pi

              Does that mean you never copied files from your RPi device into your PC?
              like step #8 from the guide I suggested

              T Offline
              T Offline
              tinashe
              wrote on last edited by
              #6

              @Pablo-J-Rogina

              yes i did not copy anything from the RPI device into my PC.
              the problem is since am using ubuntu core 18 as my server or RPI os it does not allow installation of anything not snap format, unless since am still a newbie am missing something else.

              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