-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
processor does not support `ldrexh r2,[r1]' and other operations in ARM mode #366
Comments
It is not working on a clean Bullseye RPi-4 either. Here is the full error list: [ 14%] Building C object src/libraries/runtime/CMakeFiles/runtime_module.dir/src/rtapi.c.o |
I've even tried to downgrade GCC to 9.3 and rebuild. I still get the same errors. The only clue I have about how to fix this error is adding '-march=armv7-a' to CFLAGS as seen here: http://lkml.iu.edu/hypermail/linux/kernel/1409.3/02963.html Looking at CMakeLists.txt, there does not appear to be a line to set CMAKE_C_FLAGS, but there is for DEBUG, RELEASE, and RELWITHDEBINFO. |
Adding CMAKE_C_FLAGS and CMAKE_CXX_FLAGS to CMakeLists.txt: set(CMAKE_C_FLAGS "-g -O0 -march=armv7-a" ) as well as adding '-march=armv7-a' to all the other FLAGS definitions: set(CMAKE_C_FLAGS_DEBUG "-g -O0 -march=armv7-a" ) got this build through. Once this is added to CMakeLists.txt, this bug will probably be solved. |
ok. Last night I forked machinekit-hal in prep to make the changes and submit a PR. Starting from a clean Bullseye build I find that I do need the '-march=armv7-a' to build on an RPi-4 with the current cmake configuration. To get it to work for myself I simply added it in where the FLAGS were set, but this is not the proper way to support other architectures. I may need som help getting this worked in as it has been years since I have written cmake files. Also, to check if the current build system requires anything from cmake-3.22+, I temporarily lowered that to 3.18 (the current stable release distributed by everyone). It in fact does seem to require 3.22. I'll check again to make sure oce I get everything built through. BTW, part of my PR will be build documentation updates. |
With a clean Bullseye build on a RPi-3B I get dozens of errors while running "cmake --build ./build" which produce errors which are variations on the following:
/tmp/ccur4T6u.s:1341: Error: selected processor does not support `ldrexh r2,[r1]' in ARM mode machinekit-hal
Does machinekit-hal require running on an RPi-4 as well as requiring Bullseye? I could never get it to build cleanly under Buster.
The text was updated successfully, but these errors were encountered: