Skip to content
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

Build failure: Linux (RISCV) #235526

Open
gangaram-tii opened this issue Jun 2, 2023 · 5 comments
Open

Build failure: Linux (RISCV) #235526

gangaram-tii opened this issue Jun 2, 2023 · 5 comments
Labels

Comments

@gangaram-tii
Copy link
Contributor

Steps To Reproduce

TBD

Build log

[gangaram@nixos-ssrc0:~/workspace/deploy/ghaf]$ nix build .#packages.riscv64-linux.mpfs-icicle-kit-release --allow-dirty
warning: Git tree '/home/gangaram/workspace/deploy/ghaf' is dirty
error: cycle detected in build of '/nix/store/72x8qcddsn9bvy8sx4gwpyskwc3kbgc9-linux-riscv64-unknown-linux-gnu-5.15.92-hardened1.drv' in the references of output 'dev' from output 'out'

[gangaram@nixos-ssrc0:~/workspace/deploy/ghaf]$

Additional context

Trying to build a sd image for Microchip Icicle kit (RISCV64) platform. I see above error with nixpkgs 23.05, when I switch to 22.11 it works fine. No other changes in my flake.

@vcunat vcunat added 6.topic: kernel 6.topic: exotic Exotic hardware or software platform labels Jun 2, 2023
@MaxHearnden
Copy link
Contributor

It would be nice to have the source to https://github.com/codehub8/nixos-hardware/blob/ecf03079a0e9f8bf3f5c0b5839c882b3c564a567/microchip/common/bsp/linux-icicle-kit.nix#L23-L27, otherwise all I can say is that nixpkgs#legacyPackages.x86_64-linux.pkgsCross.riscv64.linux_hardened builds

@MaxHearnden
Copy link
Contributor

If you want to debug the problem yourself, NixOS/nix#8255 might help you

@NickCao
Copy link
Member

NickCao commented Jun 2, 2023

Likely the same issue fixed in https://lore.kernel.org/all/20230326153412.63128-1-hi@alyssa.is/, you can try applying the linked patch.

@gangaram-tii
Copy link
Contributor Author

@NickCao The patch is not applicable to my Linux version. I am using Linux 5.15.92, it doesn't have "arch/riscv/purgatory" directory.

@NickCao
Copy link
Member

NickCao commented Jun 7, 2023

Then you would have to debug the issue yourself, normally I use a combination of breakpointHook and exit 1 in postFixup to retain the outputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants