Open hjf opened 3 years ago
I think the toolchain you installed is teh 32 bit version. Something seems funny with the cmake toolchain file you mention, -mfpu=neon should not be required for an aarch64 build. Can you try the first step without that flag?
I have a bad feeling that toolchain file was tested for a 32 bit system. https://lists.linaro.org/pipermail/linaro-toolchain/2016-July/005815.html
Is there anything we can do in VOLK to fix it? Provide separate toolchain files?
Is there anything we can do in VOLK to fix it? Provide separate toolchain files?
Well, according to the posted link:
Meanwhile, the aarch64 spec requires FP and ASIMD instruction support in the linux ABI, so there are no options to enable them, they are on by default.
So there is not really a need for the flags. The build instructions should be updated to reflect that, I suppose. Officially Raspberry Pi OS is 32 bit only, still. They were dragging their feet but they were forced to go 64-bit once they released the 8GB Raspberry Pi 4. So there is a 64-bit Raspberry Pi OS but it's "beta". Ubuntu for Pi is 64 or 32-bit.
So basically the instructions should be: if using a 32-bit OS, use this toolchain. Otherwise, the default toolchain will provide optimized binaries.
We should clearly separate our toolchain files into 64bit and 32bit. I assume that would solve the issue.
[UPDATE] Moved comment to new issue #471
I wonder if this is still an issue. In this case, time is on our side and users potentially migrated to a 64bit Pi OS.
I'm using Ubuntu Server on a Raspberry Pi 4. I'm not using raspberry pi OS because it includes an older GCC version, and I need C++17 for another program I need to compile.
I tried the instructions (
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchains/arm_cortex_a72_hardfp_native.cmake
) but I got the error that gcc did not recognze -mfpu=neon (I think that was the error). So I installed arm-linux-gnueabihf-gcc-10 and this time cmake works:but make fails with the following error:
uname -a, though, shows:
Linux ubuntu 5.4.0-1015-raspi #15-Ubuntu SMP Fri Jul 10 05:34:24 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
I'm not exactly sure what could be going on here.