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: pkgsMusl.bun #280716

Open
superherointj opened this issue Jan 13, 2024 · 1 comment
Open

Build failure: pkgsMusl.bun #280716

superherointj opened this issue Jan 13, 2024 · 1 comment
Labels
0.kind: build failure A package fails to build 6.topic: musl Running or building packages with musl libc

Comments

@superherointj
Copy link
Contributor

superherointj commented Jan 13, 2024

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build .#pkgsMusl.bun

Build log

Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/64r2z4dif068gwyqx0n3m9spd0r8n3za-bun-1.0.21
shrinking /nix/store/64r2z4dif068gwyqx0n3m9spd0r8n3za-bun-1.0.21/bin/bun
checking for references to /build/ in /nix/store/64r2z4dif068gwyqx0n3m9spd0r8n3za-bun-1.0.21...
patching script interpreter paths in /nix/store/64r2z4dif068gwyqx0n3m9spd0r8n3za-bun-1.0.21
stripping (with command strip and flags -S -p) in  /nix/store/64r2z4dif068gwyqx0n3m9spd0r8n3za-bun-1.0.21/bin
automatically fixing dependencies for ELF files
{'append_rpaths': [],
 'extra_args': [],
 'ignore_missing': [],
 'libs': [PosixPath('/nix/store/g0paxdz0f7kpy7ss3kvashvs7nrlvy1d-openssl-3.0.12-dev/lib'),
          PosixPath('/nix/store/c164kdh023c9wprvqliyhn0s9pzdh72a-openssl-3.0.12-bin/lib'),
          PosixPath('/nix/store/w09g2k7mb3gx58vzx2w2nl1wp1ybn1ay-openssl-3.0.12/lib')],
 'paths': [PosixPath('/nix/store/64r2z4dif068gwyqx0n3m9spd0r8n3za-bun-1.0.21')],
 'recursive': True,
 'runtime_dependencies': []}
setting interpreter of /nix/store/64r2z4dif068gwyqx0n3m9spd0r8n3za-bun-1.0.21/bin/bun
searching for dependencies of /nix/store/64r2z4dif068gwyqx0n3m9spd0r8n3za-bun-1.0.21/bin/bun
    libc.so.6 -> not found!
    ld-linux-x86-64.so.2 -> not found!
    libpthread.so.0 -> not found!
    libdl.so.2 -> not found!
    libm.so.6 -> not found!
auto-patchelf: 5 dependencies could not be satisfied
error: auto-patchelf could not satisfy dependency libc.so.6 wanted by /nix/store/64r2z4dif068gwyqx0n3m9spd0r8n3za-bun-1.0.21/bin/bun
error: auto-patchelf could not satisfy dependency ld-linux-x86-64.so.2 wanted by /nix/store/64r2z4dif068gwyqx0n3m9spd0r8n3za-bun-1.0.21/bin/bun
error: auto-patchelf could not satisfy dependency libpthread.so.0 wanted by /nix/store/64r2z4dif068gwyqx0n3m9spd0r8n3za-bun-1.0.21/bin/bun
error: auto-patchelf could not satisfy dependency libdl.so.2 wanted by /nix/store/64r2z4dif068gwyqx0n3m9spd0r8n3za-bun-1.0.21/bin/bun
error: auto-patchelf could not satisfy dependency libm.so.6 wanted by /nix/store/64r2z4dif068gwyqx0n3m9spd0r8n3za-bun-1.0.21/bin/bun
auto-patchelf failed to find all the required dependencies.
Add the missing dependencies to --libs or use `--ignore-missing="foo.so.1 bar.so etc.so"`.
/nix/store/hrgq8bpilvkfnyvbxr77i7qaj6g9ijvl-stdenv-linux/setup: line 74: pop_var_context: head of shell_variables not a function context
/nix/store/hrgq8bpilvkfnyvbxr77i7qaj6g9ijvl-stdenv-linux/setup: line 1450: pop_var_context: head of shell_variables not a function context
/nix/store/hrgq8bpilvkfnyvbxr77i7qaj6g9ijvl-stdenv-linux/setup: line 1553: pop_var_context: head of shell_variables not a function context

Log file: bun.txt

Additional context

Seems to be broken in upstream, but I'm still opening this issue to track a solution to this.
Also, to mark package broken for Musl while issue isn't resolved. (Which needs an issue of reference for tracking the breakage.)

Notify maintainers

@DAlperin @jk @thilobillerbeck @cdmistman @coffeeispower

@superherointj superherointj added the 0.kind: build failure A package fails to build label Jan 13, 2024
superherointj added a commit to superherointj/nixpkgs that referenced this issue Jan 13, 2024
@FliegendeWurst FliegendeWurst added the 6.topic: musl Running or building packages with musl libc label Oct 18, 2024
@imide
Copy link

imide commented Nov 26, 2024

Bun officially supports musl, as of 1.1.35.
https://bun.sh/blog/bun-v1.1.35

I am going to try to update the bun package, however this is my first contribution to nixpkgs, so expect mistakes lol 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 6.topic: musl Running or building packages with musl libc
Projects
None yet
Development

No branches or pull requests

3 participants