Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



  • 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.



  • @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



  • 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



  • @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



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



  • @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.


Log in to reply