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

nix-build error #174

Closed
yzAlvin opened this issue Sep 14, 2021 · 1 comment · Fixed by #175
Closed

nix-build error #174

yzAlvin opened this issue Sep 14, 2021 · 1 comment · Fixed by #175

Comments

@yzAlvin
Copy link
Contributor

yzAlvin commented Sep 14, 2021

I am trying to contribute kubernetes 1.22,

./scripts/add-kubernetes-release 1.22 downloads the tar but then during the nix-build step I get the following error:

building '/nix/store/l8xjnvw3j6sd3r42im5yqh9874fnjzg0-cabal2nix-2.15.0.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/vmdwck7f88b3bnak7znhxrszb42i3q7x-ghc-8.8.1.
unpacking sources
unpacking source archive /nix/store/rgz50hj07a8nw4xa92brp6n1y5jmsgzq-cabal2nix-2.15.0.tar.gz
source root is cabal2nix-2.15.0
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file cabal2nix-2.15.0/test/golden-test-cases/zlib.nix.golden
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/private/tmp/nix-build-cabal2nix-2.15.0.drv-0/setup-package.conf.d -j4 -threaded
[1 of 1] Compiling Main             ( Setup.hs, /private/tmp/nix-build-cabal2nix-2.15.0.drv-0/Main.o )
Linking Setup ...
ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
`cc' failed in phase `Linker'. (Exit code: 1)
note: keeping build directory '/private/tmp/nix-build-cabal2nix-2.15.0.drv-0'
builder for '/nix/store/l8xjnvw3j6sd3r42im5yqh9874fnjzg0-cabal2nix-2.15.0.drv' failed with exit code 1
cannot build derivation '/nix/store/7v79plg4b94ifjvyq26ssxb85ba37j72-cabal2nix-dhall-openapi.drv': 1 dependencies couldn't be built
error: build of '/nix/store/7v79plg4b94ifjvyq26ssxb85ba37j72-cabal2nix-dhall-openapi.drv' failed
(use '--show-trace' to show detailed location information)

It seems to be a common issue ? I am on Big Sur if that matters

Anyway since I'm not able to could someone add kubernetes 1.22 :)

@yzAlvin yzAlvin closed this as completed Sep 14, 2021
@yzAlvin yzAlvin changed the title generate scripts hang nix-build error Sep 14, 2021
@yzAlvin yzAlvin reopened this Sep 14, 2021
@Gabriella439
Copy link
Contributor

This will be fixed once dhall-lang/dhall-haskell#2301 is merged and then that fix is referenced in dhall-kubernetes

Gabriella439 added a commit that referenced this issue Sep 15, 2021
Gabriella439 added a commit that referenced this issue Sep 15, 2021
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

Successfully merging a pull request may close this issue.

2 participants