Qt5 + i.MX6 cross compile error



  • Hi,

    i got the following cross compiler error:

    /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/include/c++/4.6.2/bits/atomic_0.h: In constructor 'constexpr std::__atomic0::__atomic_base<_PTp*>::__atomic_base(std::__atomic0::__atomic_base<_PTp*>::__return_pointer_type) [with _PTp = const int, std::__atomic0::__atomic_base<_PTp*>::__return_pointer_type = const int*]':
    /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/include/c++/4.6.2/atomic:245:54: instantiated from 'constexpr std::atomic<_Tp*>::atomic(std::atomic<_Tp*>::__pointer_type) [with _Tp = const int, std::atomic<_Tp*>::__pointer_type = const int*]'
    ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:261:78: instantiated from 'constexpr QBasicAtomicPointer<T>::QBasicAtomicPointer(QBasicAtomicPointer<T>::Type) [with X = const int, QBasicAtomicPointer<T>::Type = const int*]'
    ../../include/QtCore/../../src/corelib/thread/qatomic.h:123:89: instantiated from 'constexpr QAtomicPointer<T>::QAtomicPointer(T*) [with T = const int]'
    ../../include/QtCore/5.0.0/QtCore/private/../../../../../src/corelib/kernel/qobject_p.h:138:77: instantiated from here
    /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/include/c++/4.6.2/bits/atomic_0.h:455:68: error: invalid conversion from 'const void*' to 'std::__atomic0::__atomic_base<const int*>::__pointer_type {aka void*}' [-fpermissive]
    make[3]: *** [.obj/debug-shared/qabstractanimation.o] Error 1
    make[3]: Leaving directory /home/medec01/work/Qt5Beta/qtbase/src/corelib' make[2]: *** [sub-corelib-make_first] Error 2 make[2]: Leaving directory/home/medec01/work/Qt5Beta/qtbase/src'
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory `/home/medec01/work/Qt5Beta/qtbase'
    make: *** [module-qtbase-make_first] Error 2

    i have been using the following configure:

    sudo ./configure -developer-build -opensource -confirm-license -nomake examples -nomake tests -nomake docs -nomake demos -device imx6 -device-option CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi- -sysroot /home/medec01/work/ltib/ltib/rootfs -no-gcc-sysroot -make libs -prefix /usr/local/Trolltech/Qt5-imx6-1

    and the following LTIB: L3.0.35_12.09.01_GA_source downloaded from freescale website

    do any of you have any idea?

    thanks in advance,

    kind regards,

    tim


Log in to reply
 

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