-
Notifications
You must be signed in to change notification settings - Fork 153
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
Asm parts are not compiled when building boost 1.83 on riscv64 linux #243
Comments
Fix missing asm functions in boost context lib. Upstream bugs: - boostorg/context: boostorg/context#243 - b2: bfgroup/b2#340 Upstream PR: bfgroup/b2#341
Fix missing asm functions in boost context lib. Upstream bugs: - boostorg/context: boostorg/context#243 - b2: bfgroup/b2#340 Upstream PR: bfgroup/b2#341
wrong API selection during build |
The wrong API selection is made by the build script of this repository ( |
If you look into Jamfile you see that sysv is the default for the ABI. It seams that something is wrong with your environment. |
Yes,
This makes the boost context lib 1.83 broken on almost every riscv linux distro that ships boost 1.83.
e.g.
If jump_fcontext, make_fcontext and ontop_fcontext is vital to this lib, we can make the error fatal, that is, aborting the build instead of producing a broken lib silently. |
It seams to be a problem of boost build system (os property) and has to be fixed in tools/build/src/engine/jam.h.
I've no access to RISC systems ... could you evaluate if other other preprocessor definitions beside |
I have already referenced this issue from bfgroup/b2#341 and bfgroup/b2#340. And I can confirm my patch fixes this issue. Maybe the detection logic in Jamfile could be made better as well.
Thanks very much. It seems that boost.build no longer accepts PRs so I sent my PR to bfgroup/b2. It seems that boost itself is still using boost/build instead of bfgroup/b2. |
It is upto the bfgroup to merge the merge-request ... |
Hi,
I found that
jump_fcontext
,make_fcontext
andontop_fcontext
is missing in our builds on riscv64 linux.It seems the following non-fatal error when building boost is the cause for this:
The abi value is wrong. And I figured out that it is caused by
OSPLAT
not defined for riscv in b2.I will open an issue and PR for bfgroup/b2. But it seems that boost itself is using boostorg/build which doesn't accept PRs now.
I don't know if a PR to bfgroup/b2 will fix this issue in the future so I opened this issue here.
The text was updated successfully, but these errors were encountered: