-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
--sdk no longer works in latest Ubuntu PPA #5776
Comments
Bisecting in the devcontainer suggests that 7af1ca5 is the first bad commit. Automated reproducerFor the curious or perhaps future me... Setup
Run
|
try this patch. #5780
|
Would it be possible to include this fix in the PPA package? We can't update our dev container currently. |
I don't know how to update it without updating the version? you can run xmake update dev
source ~/.xmake/profile to update to dev on container. |
Maybe do a point release? Or bump the date suffix? Or keep the old version available so that we can pin the version and have one that can still build any of our things?
This isn't easy to integrate with a dev container. |
try 2.9.6+2 |
That works, thanks! I’ll try to set up a nightly CI job to test xmake head and catch things like this prior to release in the future. |
FYI: I've set up a nightly job for us to test with the latest xmake: https://github.com/CHERIoT-Platform/cheriot-rtos/actions/workflows/test-new-xmake-nightly.yml It's currently failing because the sudo config is broken in our dev container, but that will be fixed as soon as the dev container is rebuilt (20-30 minutes). |
Xmake Version
v2.9.6+20241030
Operating System Version and Architecture
Ubuntu (x86-64 and AArch64)
Describe Bug
Out dev container build does a smoke test to make sure that it can build the RTOS. The builds from yesterday bring a new version of xmake from the Ubuntu PPA and now we see compile failures.
It appears that the latest xmake no longer finds our clang. This was working with versions of our dev container built three days ago. Those included xmake v2.9.5+20240914.
Expected Behavior
We run
xmake f --sdk=/cheriot-tools/
, where/cheriot-tools/bin
contains the toolchain files (clang, lld, and so on). This should then compile with the clang that we have found there.Project Configuration
https://github.com/CHERIoT-Platform/cheriot-rtos/blob/main/tests/xmake.lua
Most of the rules come from here, including the toolchain definition:
https://github.com/CHERIoT-Platform/cheriot-rtos/blob/main/sdk/xmake.lua
The dev container image with the toolchain installed is available here:
https://github.com/orgs/CHERIoT-Platform/packages/container/package/devcontainer
The smoke-test build is done as:
cd /tmp git clone --recurse http://github.com/Microsoft/cheriot-rtos xmake f --sdk=/cheriot-tools/ xmake xmake run
This works, but if you install a new xmake it does not (unfortunately, changes to the Ubuntu base layer broke sudo - I can fix that once I have a working xmake package).
Additional Information and Error Logs
For comparison, with v2.9.5+20240914, we see this:
And then the build works, because it's using the correct compiler.
The text was updated successfully, but these errors were encountered: