ManikandanP Posted November 3, 2020 Posted November 3, 2020 How to run SoftFloat based binary in OrangePiPC ? I have flashed my OrangePiPC with "Armbian_20.08.1_Orangepipc_buster_current_5.8.5.img.xz". When I cross compiled my C based application with ARM hard-float toolchain "gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf", Its compiled in my linux pc and able to run that application in OrangePiPC. Its working fine. But When I cross compiled my C based application with ARM Soft-float toolchain "gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabi" (with -mfloat-abi=softfp), Its compiled and Couldn't able to run that application in OrangePiPC. It showing error like "No such file". Could you please let me know how to run Soft-float based my application binary in OrangePiPC board? uname -a Linux 172.20.4.200 5.8.5-sunxi #20.08.1 SMP Wed Sep 2 08:03:45 CEST 2020 armv7l GNU/Linux cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=orangepipc BOARD_NAME="Orange Pi PC" BOARDFAMILY=sun8i BUILD_REPOSITORY_URL=https://github.com/armbian/build BUILD_REPOSITORY_COMMIT=e6fa811d-dirty DISTRIBUTION_CODENAME=buster DISTRIBUTION_STATUS=supported VERSION=20.08.1 LINUXFAMILY=sunxi BRANCH=current ARCH=arm IMAGE_TYPE=stable BOARD_TYPE=conf INITRD_ARCH=arm KERNEL_IMAGE_TYPE=Image
xwiggen Posted November 4, 2020 Posted November 4, 2020 Try cross-compiling with -mfloat-abi=soft -static, all libraries on your armbian image are armhf: % dpkg -S libm.so libc6:armhf: /lib/arm-linux-gnueabihf/libm.so.6 libc6-dev:armhf: /usr/lib/arm-linux-gnueabihf/libm.so
Recommended Posts