Skip to content
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

Selected processor does not support 'yield' in ARM mode #3861

Closed
doraemon96 opened this issue May 15, 2019 · 8 comments
Closed

Selected processor does not support 'yield' in ARM mode #3861

doraemon96 opened this issue May 15, 2019 · 8 comments
Milestone

Comments

@doraemon96
Copy link

doraemon96 commented May 15, 2019

Explanation

Trying to make hpx for my Raspberry Pi 3b+ (ARMv7l) it throws an error of:
/tmp/ccplVcGc.s:1123 : Error: selected processor does not support 'yield' in ARM mode

Build info

DEVICE => Raspberry Pi 3b+ with ARMv7l
OS >= Running Raspbian 9 (Stretch)
COMPILERS => gcc/g++/c++ version 6.3.0 , cmake version 3.7.2
DEPENDENCIES =>
Hpx downloaded from git (checkout 1.2.1)
Boost libraries (built from source) version 1.69.0
Hwloc libraries (from aptitude repository)
CMAKE COMMAND => (tried lots of combinations) cmake -DCMAKE_BUILD_TYPE=Release -DBOOST_ROOT=/home/pi/boost_1_69_0 -DHPX_WITH_CXX11=ON -DHPX_WITH_MALLOC=jemalloc ../hpx

Already tried

-DCMAKE_CROSSCOMPILING -DCMAKE_CXX_COMPILER=arm-linux-gnueabihf-g++ -DCMAKE_C_COMPILER=arm-linux-gnueabihf-gcc -DHPX_WITH_GENERIC_COROUTINES=ON
(following the cmake toolchain example for crosscompilation)

Extra info

I believe the error could be located in the HPX_SMT_PAUSE definition for ARM directive, and maybe a solution could be found in this boost issue but I'm currently unavailable to fix it.

@msimberg
Copy link
Contributor

msimberg commented May 15, 2019

@diehlpk @biddisco did either of you ever bump into something like this? @doraemon96 thanks for the report and the links. This looks like something we could use.

@biddisco
Copy link
Contributor

I had a look at the fiber implementation and we can certainly copy that. I haven't had that problem, but I've not tested the pi3 for some time, so I'd need to have a look when I get home. My x-Compile tool chain is certainly not working without some maintenance as I've not touched it in ages.

@doraemon96
Copy link
Author

I will try to build 1.3.0-rc1 this weekend as maybe this merge: #3591 can solve some problems. Also upgrading cmake to 3.14.4 (because before 3.12 it cannot detect boost_context well). Will keep you updated

@stale
Copy link

stale bot commented Nov 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the tag: wontfix label Nov 11, 2019
@stale
Copy link

stale bot commented Dec 11, 2019

This issue has been automatically closed. Please re-open if necessary.

@stale stale bot closed this as completed Dec 11, 2019
@biddisco
Copy link
Contributor

Did anything come of this? has anyone tested on Raspberry Pi recently. I have a pi 4 at home and might try a build, but need to setup a toolchain for it (which might be a job for the christmas break).

@backbone-link
Copy link

For future folks viewing - try below. Solved the same error for me on another project:
export CXXFLAG="-march=native -mcpu=native"

@hkaiser hkaiser added this to the 1.8.0 milestone Nov 15, 2021
@x37v
Copy link

x37v commented Aug 3, 2022

CXXFLAG="-march=native -mcpu=native"

shouldn't it be CXXFLAGS plural?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants