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 log is not available #351

Open
jfroche opened this issue Apr 16, 2023 · 0 comments
Open

build log is not available #351

jfroche opened this issue Apr 16, 2023 · 0 comments

Comments

@jfroche
Copy link

jfroche commented Apr 16, 2023

We have different packages failing with no build log available. Example:
https://r.ryantm.com/log/azure-cli/2023-04-09.log
https://r.ryantm.com/log/aflplusplus/2023-04-10.log

This could be a problem for #347

I managed to reproduce that locally as well. It looks like we rely on nix log but sometimes the build of a dependency is failing.
For example the azure-cli package:

$ /nix/store/3nqhcyc7vid1npgcd0m7arg5sn325nhz-nix-2.12.0/bin/nix-build --option sandbox true --arg config "{ allowBroken = true; allowUnfree = true; allowAliases = false; }" --arg overlays "[ ]" -A azure-cli
these 2 derivations will be built:
  /nix/store/kb0xqvpcrqgrwdnzvmfcmlnpk03x5hs9-python3.10-azure-cli-core-2.47.0.drv
  /nix/store/5p9wcnay1cd5kj7qjyq2153rzw8a1h9q-python3.10-azure-cli-2.47.0.drv
...
building '/nix/store/kb0xqvpcrqgrwdnzvmfcmlnpk03x5hs9-python3.10-azure-cli-core-2.47.0.drv'...
...
       > ERROR: Could not find a version that satisfies the requirement distro; sys_platform == "linux" (from azure-cli-core) (f
rom versions: none)
       > ERROR: No matching distribution found for distro; sys_platform == "linux"
       >
       For full logs, run 'nix log /nix/store/kb0xqvpcrqgrwdnzvmfcmlnpk03x5hs9-python3.10-azure-cli-core-2.47.0.drv'.
error: 1 dependencies of derivation '/nix/store/5p9wcnay1cd5kj7qjyq2153rzw8a1h9q-python3.10-azure-cli-2.47.0.drv' failed to build

So that

$ /nix/store/3nqhcyc7vid1npgcd0m7arg5sn325nhz-nix-2.12.0/bin/nix log -f . azure-cli
error: build log of 'azure-cli' is not available

So we would need to parse the nix log of all dependencies (or can we filter the dependencies to be built ?) to get the previous error log.

Could we store/catch stdout/stderr when running nix-build instead ?

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

No branches or pull requests

1 participant