-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Compiling string.cc: Error: selected processor does not support `yield' in ARM mode #49287
Comments
Judging by the fact that your toolchain is using a Try installing and using a toolchain that is suitable for the Pi 2 v1.2 (armv7) instead. |
Thanks. So I figured out how configure was getting the value and sure enough it's correct. I check apt search for a different gcc version that doesn't have a tailing +rpi1 and didn't find any. In configure.py, the only thing the v7 arch is used for is for setting the FPU type, so I'm re-trying with ./configure --with-arm-fpu vfpv3. I also modified config.gypi as: 'arm_version': '7', It's not clear if this will work. If not, it seems the next alternative is to build gcc with the required config. Any more thoughts? |
Well, you can try explicitly setting
|
So, it seems my solution was "successful" in that the build completed successfully. The whole process took about 20hrs. |
Version
node-v18.17.1
Platform
Linux renogy0 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
Subsystem
string
What steps will reproduce the bug?
Same error message from issue: #44357
How often does it reproduce? Is there a required condition?
Every time during compile.
Initially, compiling with make -j2 failed for out of memory. Adding more swap space and using -j1 avoided that issue. Build docs could be updated.
string.cc error occurred after about 8hrs after 'make clean'.
Rerunning make after failure results in the same failure in <5min.
What is the expected behavior? Why is that the expected behavior?
Compile to successful completion.
What do you see instead?
Compiler error on string.cc
Additional information
g++ -v: gcc version 10.2.1 20210110 (Raspbian 10.2.1-6+rpi1)
python3 --version Python 3.9.2
cat /proc/cpuinfo
cat /etc/apt/sources.list
The text was updated successfully, but these errors were encountered: