Work around newlib compilation failure with clang-15 #420
Work around newlib compilation failure with clang-15 #420arichardson merged 1 commit intoCTSRD-CHERI:mainfrom
Conversation
…unction-declaration)
|
Hi Merve, I have pending PRs for both newlib [1] and cheribuild [2] to be able to build with latest toolchain with master cheribuild. [1] CTSRD-CHERI/newlib#6 |
|
Thanks! It was a long-running problem that people struggled with. I hope this will finally solve it. |
@gulmezmerve Meanwhile you can probably checkout the newlib branch on the PR and try to build it and report back to us here if it works for you |
|
@heshamelmatary yes, I tested it with the cheribuild branch |
|
I think we can merge this trivial fix - your PR is rather invasive and needs some time for review. |
|
Yeah I agree with @arichardson We already provided this small trick to Ericsson, KU Leuven, and the University of Waterloo. |
|
CI failure is unrelated, merging |
The command
./cheribuild.py newlib-baremetal-riscv64-purecap -dcurrently fails when using clang-15.This issue has been reported multiple times on the Cheri Slack channel.
As a workaround, this commit adds the
-Wno-implicit-function-declarationoption to suppress these errors. While this may not be a permanent fix, it should unblock users and help others facing the same problem.