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

Failing to build on mac m1 #140

Open
datawater opened this issue Oct 15, 2023 · 0 comments
Open

Failing to build on mac m1 #140

datawater opened this issue Oct 15, 2023 · 0 comments

Comments

@datawater
Copy link

I'm using a crate that has being failing to build for ages. After a lot of trial and error, I've boiled it down to shaderc-rs. While trying to build, I get the following link-error

note: LC_ALL="C" PATH="/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/opt/homebrew/opt/bison/bin:/Users/data/.bun/bin:/Users/data/.bun/bin:/usr/local/opt/bison/bin:/opt/homebrew/opt/llvm/bin::~/.local/bin:/opt/homebrew/opt/openjdk/bin:~/go/bin/:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/homebrew/opt/bison/bin:/Users/data/.bun/bin:/usr/local/opt/bison/bin:/opt/homebrew/opt/llvm/bin:~/.local/bin:/opt/homebrew/opt/openjdk/bin:~/go/bin/:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/local/bin:/opt/local/sbin:/Users/data/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-Wl,-exported_symbols_list,/var/folders/2l/qd9dbgvj0xl2cqb0wlyj9gt40000gn/T/rustcQEGjG1/list" "-arch" "arm64" "/var/folders/2l/qd9dbgvj0xl2cqb0wlyj9gt40000gn/T/rustcQEGjG1/symbols.o" "/Users/data/Desktop/Programming/rust/tsira/target/debug/deps/inline_spirv-b3581911ba3877f2.inline_spirv.a936138ef310781a-cgu.0.rcgu.o" "/Users/data/Desktop/Programming/rust/tsira/target/debug/deps/inline_spirv-b3581911ba3877f2.inline_spirv.a936138ef310781a-cgu.1.rcgu.o" "/Users/data/Desktop/Programming/rust/tsira/target/debug/deps/inline_spirv-b3581911ba3877f2.inline_spirv.a936138ef310781a-cgu.2.rcgu.o" "/Users/data/Desktop/Programming/rust/tsira/target/debug/deps/inline_spirv-b3581911ba3877f2.inline_spirv.a936138ef310781a-cgu.3.rcgu.o" "/Users/data/Desktop/Programming/rust/tsira/target/debug/deps/inline_spirv-b3581911ba3877f2.4upei424h0zsi978.rcgu.rmeta" "/Users/data/Desktop/Programming/rust/tsira/target/debug/deps/inline_spirv-b3581911ba3877f2.19fwwbpsncjon043.rcgu.o" "-L" "/Users/data/Desktop/Programming/rust/tsira/target/debug/deps" "-L" "/Users/data/Desktop/Programming/rust/tsira/target/debug/build/shaderc-sys-288a6fddede2d0b5/out/lib" "-L" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/data/Desktop/Programming/rust/tsira/target/debug/deps/libsyn-a9d6b8b75668413c.rlib" "/Users/data/Desktop/Programming/rust/tsira/target/debug/deps/libquote-8d9e9cad00c4b7eb.rlib" "/Users/data/Desktop/Programming/rust/tsira/target/debug/deps/libproc_macro2-54b02a7a557430d9.rlib" "/Users/data/Desktop/Programming/rust/tsira/target/debug/deps/libunicode_ident-58edc6d52b8c1d41.rlib" "/Users/data/Desktop/Programming/rust/tsira/target/debug/deps/libshaderc-36c2599a0c1e7142.rlib" "/Users/data/Desktop/Programming/rust/tsira/target/debug/deps/libshaderc_sys-c97572a7114a7239.rlib" "/Users/data/Desktop/Programming/rust/tsira/target/debug/deps/liblibc-4e7c3df8cdd33de4.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libproc_macro-1cc1172ecf987819.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-804bb88a2c600be3.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-c319b8b631bd8512.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-cd3a70bb708a13a9.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-1af7981c5704ce04.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-bcda7c80f0773775.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-bdf9397375ffff2f.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-fd3ceeb08bc81b65.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-cb3d6dd6f761f554.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-4e21f75aedbb5dc4.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-c0772d28ed70a21e.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-37a8973a9b1b929d.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-92e4b3d050489593.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-ebf2611a64cde865.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-c395d02a6e4c211a.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-165ef8fb7c1e2eab.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-e023ed957a9241e1.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-f4d733c7c8b5a29f.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-49cb3ef59194e1e6.rlib" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-f16e04de5c7e32d0.rlib" "-lc++" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/data/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/data/Desktop/Programming/rust/tsira/target/debug/deps/libinline_spirv-b3581911ba3877f2.dylib" "-Wl,-dead_strip" "-dynamiclib" "-Wl,-dylib" "-nodefaultlibs" "-Wl,-no_compact_unwind,-L/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/current,-lstdc++,-L/opt/homebrew/Cellar/shaderc/2023.7/lib,-lshaderc_shared"
  = note: Undefined symbols for architecture arm64:
            "___aarch64_ldadd4_acq_rel", referenced from:
                shaderc_util::CountingIncluder::includeLocal(char const*, char const*, unsigned long) in libshaderc_sys-c97572a7114a7239.rlib(shaderc.cc.o)
                shaderc_util::CountingIncluder::includeSystem(char const*, char const*, unsigned long) in libshaderc_sys-c97572a7114a7239.rlib(shaderc.cc.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
$ gcc -dumpmachine
> arm64-apple-darwin22.6.0
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