Cross-compile Qt 5.7.1 error on make and partial rsync permission issues.



  • Following the up-to-date (modified on on 23rd of November 2016) qt wiki article -> https://wiki.qt.io/RaspberryPi2EGLFS and with respective changes to downloading Qt opensource everywhere instead of Qt base, and it is targeting raspberry pi3 b, and with respect to that, the x64 was added also to the -device-option CROSS_COMPILE...; the following errors occured:

    Running configuration tests...
    Determining architecture... ()
    /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/root/raspi/sysroot -g -Wall -W -fPIC  -I. -I../../mkspecs/devices/linux-rasp-pi2-g++ -o arch.o arch.cpp
    arch.cpp:43:19: fatal error: stdio.h: No such file or directory
     #include <stdio.h>
                       ^
    compilation terminated.
    make: *** [arch.o] Error 1
    Unable to determine architecture!
    
    Could not determine the target architecture!
    Turn on verbose messaging (-v) to see the final report.
    Determining architecture... ()
    g++ -c -pipe -g -Wall -W -fPIC  -I. -I../../mkspecs/linux-g++ -o arch.o arch.cpp
    g++  -o arch arch.o
        Found architecture in binary
    CFG_HOST_ARCH="x86_64"
    CFG_HOST_CPUFEATURES=" mmx sse sse2"
    System architecture: 'unknown'
    Host architecture: 'x86_64'
    Precompiled-headers support enabled.
    /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -c -fvisibility=hidden fvisibility.c
    Symbol visibility control enabled.
    /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ --sysroot=/root/raspi/sysroot -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c
    bsymbolic_functions.c:2:2: error: #error "Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129)."
     #error "Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129)."
      ^
    Symbolic function binding disabled.
    checking for C++14...
    /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/root/raspi/sysroot -O2 -std=gnu++1y -Wall -W -fPIC  -I. -I../../../mkspecs/devices/linux-rasp-pi2-g++ -o c++14.o c++14.cpp
    c++14.cpp:43:4: error: #error "__cplusplus must be > 201103L (the value of C++11)"
     #  error "__cplusplus must be > 201103L (the value of C++11)"
        ^
    make: *** [c++14.o] Error 1
    C++14 disabled.
    checking for default C++ standard edition...
    /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -pipe -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/root/raspi/sysroot -O2 -Wall -W -fPIC  -I. -I../../../mkspecs/devices/linux-rasp-pi2-g++ -o c++default.ii -E c++default.cpp
    default C++ standard edition enabled.
    checking for 64-bit std::atomic...
    /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/root/raspi/sysroot -O2 -std=gnu++11 -Wall -W -fPIC  -I. -I../../../mkspecs/devices/linux-rasp-pi2-g++ -o atomic64.o atomic64.cpp
    In file included from /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/arm-linux-gnueabihf/bits/c++config.h:426:0,
                     from /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/bits/atomic_base.h:35,
                     from /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/atomic:41,
                     from atomic64.cpp:40:
    /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/arm-linux-gnueabihf/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory
     #include <features.h>
                          ^
    compilation terminated.
    make: *** [atomic64.o] Error 1
    64-bit std::atomic disabled.
    checking for 64-bit std::atomic in -latomic...
    /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/root/raspi/sysroot -O2 -std=gnu++11 -Wall -W -fPIC  -I. -I../../../mkspecs/devices/linux-rasp-pi2-g++ -o atomic64.o atomic64.cpp
    In file included from /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/arm-linux-gnueabihf/bits/c++config.h:426:0,
                     from /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/bits/atomic_base.h:35,
                     from /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/atomic:41,
                     from atomic64.cpp:40:
    /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/arm-linux-gnueabihf/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory
     #include <features.h>
                          ^
    compilation terminated.
    make: *** [atomic64.o] Error 1
    64-bit std::atomic in -latomic disabled.
    checking for std::atomic for function pointers...
    /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/root/raspi/sysroot -O2 -std=gnu++11 -Wall -W -fPIC  -I. -I../../../mkspecs/devices/linux-rasp-pi2-g++ -o atomicfptr.o atomicfptr.cpp
    In file included from /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/arm-linux-gnueabihf/bits/c++config.h:426:0,
                     from /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/bits/atomic_base.h:35,
                     from /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/atomic:41,
                     from atomicfptr.cpp:34:
    /root/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/arm-linux-gnueabihf/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory
     #include <features.h>
                          ^
    compilation terminated.
    make: *** [atomicfptr.o] Error 1
    std::atomic for function pointers disabled.
    ERROR: detected a std::atomic implementation that fails for function pointers.
    Please apply the patch corresponding to your Standard Library vendor, found in
      /root/qt-everywhere-opensource-src-5.7.1/qtbase/config.tests/common/atomicfptr
    

    and while syncing the pi, another issue was presented also.

    //receiving incremental file list
    rsync: send_files failed to open "/usr/lib/cups/backend/vnc": Permission denied (13)
    
    sent 3,640 bytes  received 781,953 bytes  54,178.83 bytes/sec
    total size is 1,634,851,579  speedup is 2,081.04
    rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1655) [generator=3.1.0]
    

    as ambershark has recommneded, here's the new topic for everyone who is having similar trouble and let's work this out and onwards to the exciting embedded device creation.

    Cheers!


  • Moderators

    @ShengS "/root/raspi/sysroot" - are you working as root?! You should never do that!
    Does your sysroot/toolchain contain stdio.h?



  • @jsulm yeah, I am XD, thanks for the heads up, was having problem with my connections recently, and having very little sleep, since that was my third attempt to get this to work, I completely forgot to cd back to the usr account, okay, start from scratch from normal usr account, thanks for the heads up.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.