-
Notifications
You must be signed in to change notification settings - Fork 89
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
Issues building libtock-c
with Nix
#352
Comments
Orthogonal change, but looks good to me. You'll want to revert the uncommenting of the
tock/tock#1246 concerns ARM Cortex-M only, not RISC-V. The changes you're proposing only affect the custom-built RISC-V toolchain which However, hopefully #346 will alleviate the need to compile a custom toolchain entirely. IIRC we just have to sort out some licensing & artifact distribution questions there.
I cannot speak for others, but I've leaked secrets in my once-public config more often than I'd like to admit. I once had the goal of having a CI-checked NixOS VM with all toolchains pre-installed, but that's (a) work and (b) pretty exotic. I built a HashiCorp Packer VM for the last Tock tutorial, but I'm unsure how well this continues to work in the future. Building this was painful.
Reiterating my comment from tock/tock#3727: J-Link is only used by a subset of our boards, and generally also requires installation steps on other platforms. I'm unsure whether we should and can ship instructions for installing the (proprietary) toolchains for every board on every OS. What we most certainly don't want to do is vendor unfree packages / accept EULAs etc. for the user. That being said, adding comments or OS-specific install instructions somewhere can't hurt for sure! |
This issue is stale. Please close. |
@Samir-Rashid Correct, thanks! |
I got this error on some examples when running
examples/build_all.sh
in anix-shell
.I went spelunking in issues which ended up here tock/tock#1246. I was able to do a workaround (sources 1, 2). This is not a permanent fix, but I monkey patched
--enable-multilib
to get things to work locally. I see there is some stuff noted in the readme, but thebuild_all
script should just work with no intervention.Diff with everything I did to get things to work
With this, everything builds except for
./tests/mpu_stack_growth
which I saw is a problematic test, so I did not debug it.The error itself is just an infinite recursion warning.
Error output
Other notes
Why do none of the Nix user Tock maintainers post their nix configs? It took me hours to scour scant NixOS documentation to see I need to set this to fix udev issues.
Similarly for this libtock-c
shell.nix
, I had to further edit it to allow unfree and accept jlink EULA. Why can't these lines be included and commented out (like this but commented)?Originally posted by @Samir-Rashid in #349 (comment)
The text was updated successfully, but these errors were encountered: