[Qt5.12.3][Compilation Error] No, I didn't forgot to setup the environment.



  • Hello everyone,
    I am trying to cross-build Qt for my board 'Humming Board 2' by SolidRun. Since there are no a single guide for building 5.12.3 for Humming Board, I am facing 100 errors a day.
    I am following this guide for Qt5.3. Most of the links are broken and configuration of course does not work for 5.12.3.
    I have used a different image than described in the guide and stuff, but when I am trying to configure the 'qtbase' with the configuration settings;

    ./configure -v -opensource -confirm-license -no-pch -no-xcb -no-opengl -opengl es2 -make libs -no-icu \
    -device linux-imx6-g++ -device-option CROSS_COMPILE=~/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- \
    -sysroot /mnt/hummingboard-rootfs -no-gcc-sysroot -prefix /usr/local/qt5-hum \
    -device-option DISTRO_OPTS=hard-float
    

    It Says,

    Project ERROR: Cannot run target compiler '/home/closx/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++'. Output:
    ===================
    ===================
    Maybe you forgot to setup the environment?
    

    I tried 3 different cross-compilers;

    gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf
    gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux
    gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux
    

    Guys, I just want to compile Qt JUST ONCE WITHOUT A PROBLEM in my life :D
    Any thoughts?
    Thanks!



  • @closx

    1. what happens if you run from command line?
    /home/closx/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
    
    1. What's your Host OS? is it 32 or 64 bits?

    gcc-linaro-7.4.1-2019.02-i686



  • @Pablo-J.-Rogina said in [Qt5.12.3][Compilation Error] No, I didn't forgot to setup the environment.:

    /home/closx/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++

    It gives 'no input' fatal error

    closx@closx-pc:~/hummingboard$ /home/closx/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
    arm-linux-gnueabihf-g++: fatal error: no input files
    compilation terminated.
    

    and my host system is 64 bit ubuntu (32 bit libs are already installed)

    closx@closx-pc:~/hummingboard$ uname -a
    Linux closx-pc 4.15.0-54-generic #58~16.04.1-Ubuntu SMP Mon Jun 24 13:21:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
    

  • Lifetime Qt Champion

    Hi,

    What info do you get if you add the -v option ?



  • @SGaist allright, I will share all three outputs of all three compilers I use.

    gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf

    Using built-in specs.
    COLLECT_GCC=/home/closx/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
    COLLECT_LTO_WRAPPER=/home/closx/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/../libexec/gcc/arm-linux-gnueabihf/7.4.1/lto-wrapper
    Target: arm-linux-gnueabihf
    Configured with: '/home/tcwg-buildslave/workspace/tcwg-make-release_0/snapshots/gcc.git~linaro-7.4-2019.02/configure' SHELL=/bin/bash --with-mpc=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu --with-mpfr=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu --with-gmp=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu --with-gnu-as --with-gnu-ld --disable-libmudflap --enable-lto --enable-shared --without-included-gettext --enable-nls --with-system-zlib --disable-sjlj-exceptions --enable-gnu-unique-object --enable-linker-build-id --disable-libstdcxx-pch --enable-c99 --enable-clocale=gnu --enable-libstdcxx-debug --enable-long-long --with-cloog=no --with-ppl=no --with-isl=no --disable-multilib --with-float=hard --with-fpu=vfpv3-d16 --with-mode=thumb --with-tune=cortex-a9 --with-arch=armv7-a --enable-threads=posix --enable-multiarch --enable-libstdcxx-time=yes --enable-gnu-indirect-function --with-build-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/sysroots/arm-linux-gnueabihf --with-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu/arm-linux-gnueabihf/libc --enable-checking=release --disable-bootstrap --enable-languages=c,c++,fortran,lto --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-linux-gnueabihf --prefix=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu
    Thread model: posix
    gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02) 
    

    gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux

    Using built-in specs.
    COLLECT_GCC=./arm-linux-gnueabi-g++
    COLLECT_LTO_WRAPPER=/home/closx/hummingboard/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/../libexec/gcc/arm-linux-gnueabi/4.7.1/lto-wrapper
    Target: arm-linux-gnueabi
    Configured with: /cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/.build/src/gcc-linaro-4.7-2012.04/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-linux-gnueabi --prefix=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/install --with-sysroot=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/install/arm-linux-gnueabi/libc --enable-languages=c,c++,fortran --disable-multilib --with-arch=armv7-a --with-tune=cortex-a9 --with-fpu=vfpv3-d16 --with-float=softfp --with-pkgversion='crosstool-NG linaro-1.13.1-2012.04-20120426 - Linaro GCC 2012.04' --with-bugurl=https://bugs.launchpad.net/gcc-linaro --enable-__cxa_atexit --enable-libmudflap --enable-libgomp --enable-libssp --with-gmp=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static --with-mpfr=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static --with-mpc=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static --with-ppl=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static --with-cloog=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static --with-libelf=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static --with-host-libstdcxx='-L/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static/lib -lpwl' --enable-threads=posix --disable-libstdcxx-pch --enable-linker-build-id --enable-gold --with-local-prefix=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/install/arm-linux-gnueabi/libc --enable-c99 --enable-long-long --with-mode=thumb --enable-gnu-unique-object
    Thread model: posix
    gcc version 4.7.1 20120402 (prerelease) (crosstool-NG linaro-1.13.1-2012.04-20120426 - Linaro GCC 2012.04) 
    

    gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux

    Using built-in specs.
    COLLECT_GCC=./arm-linux-gnueabihf-g++
    COLLECT_LTO_WRAPPER=/home/closx/hummingboard/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/../libexec/gcc/arm-linux-gnueabihf/4.8.2/lto-wrapper
    Target: arm-linux-gnueabihf
    Configured with: /cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/src/gcc-linaro-4.8-2013.10/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-linux-gnueabihf --prefix=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install --with-sysroot=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install/arm-linux-gnueabihf/libc --enable-languages=c,c++,fortran --enable-multilib --with-arch=armv7-a --with-tune=cortex-a9 --with-fpu=vfpv3-d16 --with-float=hard --with-pkgversion='crosstool-NG linaro-1.13.1-4.8-2013.10 - Linaro GCC 2013.10' --with-bugurl=https://bugs.launchpad.net/gcc-linaro --enable-__cxa_atexit --enable-libmudflap --enable-libgomp --enable-libssp --with-gmp=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-mpfr=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-mpc=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-isl=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-cloog=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-libelf=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --enable-threads=posix --disable-libstdcxx-pch --enable-linker-build-id --enable-gold --with-local-prefix=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install/arm-linux-gnueabihf/libc --enable-c99 --enable-long-long --with-mode=thumb
    Thread model: posix
    gcc version 4.8.2 20131014 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2013.10 - Linaro GCC 2013.10)
    


  • Everyone, I have decided to build a Yocto with meta-qt5 layer. If I can be successful, I will open a topic describes how to do that (since there is not any valid topic like that in any forum).
    Wish me luck! For now, I will set this to be "Solved".



  • @closx good luck! (and thanks for your positive attitude in trying to share your experience)


  • Lifetime Qt Champion

    I was thinking about the configure options not the compilers :-)

    Anyway, good luck in your new direction !



  • @SGaist Yep, issue was about the configurations :D
    Thank you, SGaist! I could boot a Yocto image with meta-qt5 layer!
    Now only thing is creation of a toolchain :D


Log in to reply