Skip to content

Linux pre-compiled builds are dynamically linked to the Nix store #670

@kivikakk

Description

@kivikakk

musl build required — onig giving us a little bit of trouble:

error: build of '/nix/store/y82xac3dxrws2rzis3yldir2a1pcgjzk-comrak-0.47.0.drv' on 'ssh-ng://rosetta-builder' failed: builder for '/nix/store/y82xac3dxrws2rzis3yldir2a1pcgjzk-comrak-0.47.0.drv' failed with exit code 101;
       last 25 log lines:
       >           /nix/store/ll82pfjsgww6cmi7mazcpsbv4b1szd9b-binutils-2.44/bin/ld: regerror.c:(.text.onig_error_code_to_str+0x360): undefined reference to `__snprintf_chk'
       >           /nix/store/ll82pfjsgww6cmi7mazcpsbv4b1szd9b-binutils-2.44/bin/ld: regerror.c:(.text.onig_error_code_to_str+0x390): undefined reference to `__snprintf_chk'
       >           /nix/store/ll82pfjsgww6cmi7mazcpsbv4b1szd9b-binutils-2.44/bin/ld: /build/rustc5rK0WZ/libonig_sys-e001fc07d29eb553.rlib(regerror.o):regerror.c:(.text.onig_error_code_to_str+0x3c0): more undefined references to `__snprintf_chk' follow
       >           /nix/store/ll82pfjsgww6cmi7mazcpsbv4b1szd9b-binutils-2.44/bin/ld: /build/rustc5rK0WZ/libonig_sys-e001fc07d29eb553.rlib(regerror.o): in function `onig_error_code_to_str':
       >           regerror.c:(.text.onig_error_code_to_str+0x418): undefined reference to `__memcpy_chk'
       >           /nix/store/ll82pfjsgww6cmi7mazcpsbv4b1szd9b-binutils-2.44/bin/ld: /build/rustc5rK0WZ/libonig_sys-e001fc07d29eb553.rlib(regerror.o): in function `onig_snprintf_with_pattern':
       >           regerror.c:(.text.onig_snprintf_with_pattern+0x9c): undefined reference to `__vsnprintf_chk'
       >           /nix/store/ll82pfjsgww6cmi7mazcpsbv4b1szd9b-binutils-2.44/bin/ld: regerror.c:(.text.onig_snprintf_with_pattern+0x1dc): undefined reference to `__snprintf_chk'
       >           /nix/store/ll82pfjsgww6cmi7mazcpsbv4b1szd9b-binutils-2.44/bin/ld: regerror.c:(.text.onig_snprintf_with_pattern+0x558): undefined reference to `__snprintf_chk'
       >           /nix/store/ll82pfjsgww6cmi7mazcpsbv4b1szd9b-binutils-2.44/bin/ld: /build/rustc5rK0WZ/libonig_sys-e001fc07d29eb553.rlib(regparse.o): in function `prs_callout_args.constprop.0.isra.0':
       >           regparse.c:(.text.prs_callout_args.constprop.0.isra.0+0x108): undefined reference to `__memcpy_chk'
       >           /nix/store/ll82pfjsgww6cmi7mazcpsbv4b1szd9b-binutils-2.44/bin/ld: /build/rustc5rK0WZ/libonig_sys-e001fc07d29eb553.rlib(regcomp.o): in function `compile_tree':
       >           regcomp.c:(.text.compile_tree+0x330): undefined reference to `__memcpy_chk'
       >           /nix/store/ll82pfjsgww6cmi7mazcpsbv4b1szd9b-binutils-2.44/bin/ld: regcomp.c:(.text.compile_tree+0x990): undefined reference to `__memcpy_chk'
       >           /nix/store/ll82pfjsgww6cmi7mazcpsbv4b1szd9b-binutils-2.44/bin/ld: /build/rustc5rK0WZ/libonig_sys-e001fc07d29eb553.rlib(regcomp.o): in function `onig_compile':
       >           regcomp.c:(.text.onig_compile+0x438): undefined reference to `__memcpy_chk'
       >           /nix/store/ll82pfjsgww6cmi7mazcpsbv4b1szd9b-binutils-2.44/bin/ld: regcomp.c:(.text.onig_compile+0x948): undefined reference to `__memcpy_chk'
       >           /nix/store/ll82pfjsgww6cmi7mazcpsbv4b1szd9b-binutils-2.44/bin/ld: /build/rustc5rK0WZ/libonig_sys-e001fc07d29eb553.rlib(regenc.o):regenc.c:(.text.onigenc_strdup+0x44): more undefined references to `__memcpy_chk' follow
       >           collect2: error: ld returned 1 exit status
       >
       >   = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
       >   = note: use the `-l` flag to specify native libraries to link
       >   = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)
       >
       > error: could not compile `comrak` (bin "comrak") due to 1 previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions