Run make file with linux Cross-compiling Environment for Raspberry Pi problem

3 posts / 0 new
Last post
Offline
Last seen: 4 years 5 months ago
Joined: 08/11/2019
Posts: 28
Run make file with linux Cross-compiling Environment for Raspberry Pi problem

Hello,

when I run 

make -f makefile_HelloWorld_armv6vfphLinux3.xgcc4.7.2

I face the problem like this :

/usr/arm-linux-gnueabihf/include/bits/byteswap.h: In function ‘__bswap_32’:
/usr/arm-linux-gnueabihf/include/bits/byteswap.h:45:1: sorry, unimplemented: Thumb-1 hard-float VFP ABI

How can I solve it ?

 

ENV:

$LD_LIBRARY_PATH = /home/kay/rti_connext_dds-6.0.0/lib/armv6vfphLinux3.xgcc4.7.2

$NDDSHOME =/home/kay/rti_connext_dds-6.0.0

$PATH =/home/kay/toolchains/raspbian-toolchain-gcc-4.7.2-linux64/bin:/home/kay/rti_connext_dds-6.0.0/bin:/home/kay/toolchains/raspbian-toolchain-gcc-4.7.2-linux64/bin:/home/kay/rti_connext_dds-6.0.0/bin:

Keywords:
irwin's picture
Offline
Last seen: 4 years 2 months ago
Joined: 08/14/2010
Posts: 42

Hi,

   I have ran into this before. I suggest that you make change to your make file:

DEFINES = -fpic -DRTI_UNIX -DRTI_LINUX -march=armv6 -mfpu=vfp -mfloat-abi=hard -mlong-calls

 

                   Irwin

Offline
Last seen: 4 years 5 months ago
Joined: 08/11/2019
Posts: 28

Hi irwin,

thanks a lot,

I change 

DEFINES = -fpic -DRTI_UNIX -DRTI_LINUX -march=armv6 -mfpu=vfp -mfloat-abi=hard -mlong-calls

to

DEFINES = -fpic -DRTI_UNIX -DRTI_LINUX -marm -mfpu=vfp -mfloat-abi=hard -mlong-calls

It can work now !