-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails on Ubuntu for Raspberry Pi #445
Comments
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? |
Well, according to the posted link:
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.
The text was updated successfully, but these errors were encountered: