Skip to content

crystalStatic doesn't build on x86-linux #19

@rbishop

Description

@rbishop

Fails due to undefined references. It seems to be trying to use musl instead of libc on my machine

error: builder for '/nix/store/1x5ms4d6dnf92bv992534chxvr7k222q-check-crystal-static-x86_64-unknown-linux-musl-1.11.2.drv' failed with exit code 1;
       last 6 log lines:
       > /nix/store/0gi4vbw1qfjncdl95a9ply43ymd6aprm-binutils-2.40/bin/ld: /nix/store/6wfpsbqw40awg87x05h7c3fm26vdlvir-libevent-static-x86_64-unknown-linux-musl-2.1.12/lib/libevent.a(evutil.o): in function `evutil_getenv_':
       > (.text+0x2ca5): undefined reference to `issetugid'
       > /nix/store/0gi4vbw1qfjncdl95a9ply43ymd6aprm-binutils-2.40/bin/ld: /nix/store/38zmyyxnqgw5cpxa83gmwvy4acjyr2k4-boehm-gc-static-x86_64-unknown-linux-musl-8.2.2/lib/libgc.a(os_dep.o): in function `GC_find_limit_with_bound':
       > (.text+0xc74): undefined reference to `sigsetjmp'
       > collect2: error: ld returned 1 exit status
       > Error: execution of command failed with exit status 1: gcc "${@}" -o /build/.crystal/crystal-run-eval.tmp  -rdynamic -L/nix/store/38zmyyxnqgw5cpxa83gmwvy4acjyr2k4-boehm-gc-static-x86_64-unknown-linux-musl-8.2.2/lib -L/nix/store/vdh847lbm49x56gxg02582vy8mcmpybh-gmp-with-cxx-static-x86_64-unknown-linux-musl-6.3.0/lib -L/nix/store/6wfpsbqw40awg87x05h7c3fm26vdlvir-libevent-static-x86_64-unknown-linux-musl-2.1.12/lib -L/nix/store/vpnsiap6kdzq0r71m0v9gaa8wwyawr33-libffi-static-x86_64-unknown-linux-musl-3.4.4/lib -L/nix/store/wmxp34wwc7j3lw4fwl50h6vpznhlqljs-libxml2-static-x86_64-unknown-linux-musl-2.12.3-unstable-2023-12-14/lib -L/nix/store/1b39nmcnl43y25iykv6shx6vn04rsl8a-libyaml-static-x86_64-unknown-linux-musl-0.2.5/lib -L/nix/store/i3b5b73wmd7z9yq4gg77r0a0vqplx41a-openssl-static-x86_64-unknown-linux-musl-3.0.12/lib -L/nix/store/d2j05qn5w25q4zgnbr0wqlhck91416bs-pcre2-static-x86_64-unknown-linux-musl-10.42/lib -L/nix/store/jvkmzfyri69xi8b30g0zi53hr8am67vz-zlib-static-x86_64-unknown-linux-musl-1.3/lib -lpcre2-8 -lgc -lpthread -levent -lrt -lpthread -ldl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions