[meta-freescale] meta-toolchain-qt5 compiles for soft float in hardfp i.mx6 image

Daiane Angolini daiane.list at gmail.com
Tue Jul 8 04:52:26 PDT 2014


On Mon, Jul 7, 2014 at 10:37 PM, Alfonso Tamés <alfonso at tames.com> wrote:
> Hello,
>
> I bitbaked meta-toolchain-qt5 using the master branches in yocto and meta-qt5 (in order to use Qt5.3).
>
> When trying to cross compile in Qt Creator I get this error:
>
> arm-linux-gnueabi-g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/opt/poky/1.6+snapshot/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/linux-arm-gnueabi-g++ -I/opt/Qt5.3.0/Examples/Qt-5.3/quick/demos/clocks -I/opt/poky/1.6+snapshot/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5 -I/opt/poky/1.6+snapshot/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtQuick -I/opt/poky/1.6+snapshot/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtQml -I/opt/poky/1.6+snapshot/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtNetwork -I/opt/poky/1.6+snapshot/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtGui -I/opt/poky/1.6+snapshot/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtCore -I. -I../yocto_master/build/tmp/sysroots/wandboard-quad/usr/include/libdrm -I. -o main.o /opt/Qt5.3.0/Examples/Qt-5.3/quick/demos/clocks/main.cpp
> In file included from /opt/poky/1.6+snapshot/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/features.h:402:0,
>                  from /opt/poky/1.6+snapshot/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/c++/arm-poky-linux-gnueabi/bits/os_defines.h:39,
> ….
>                  from /opt/Qt5.3.0/Examples/Qt-5.3/quick/demos/clocks/../../shared/shared.h:40,
>                  from /opt/Qt5.3.0/Examples/Qt-5.3/quick/demos/clocks/main.cpp:40:
> /opt/poky/1.6+snapshot/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory
>  # include <gnu/stubs-soft.h>
>                              ^
> compilation terminated.
> make: *** [main.o] Error 1
>
> I suppose the toolchain got configured to use soft floating point. Is there a way to force the toolchain to be baked for hard float?
>

>From your log:
/opt/poky/1.6+snapshot/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi

it means your toolchain is already hf-vfp [1]

however your source code includes the soft file gnu/stubs-soft.h


At least it is how I understand your problem.

[1] http://cgit.openembedded.org/openembedded-core/tree/meta/conf/machine/include/tune-cortexa9.inc


Daiane


More information about the meta-freescale mailing list