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

Fails to build on latest x64 macos. #9

Open
FrankenApps opened this issue Apr 17, 2021 · 1 comment
Open

Fails to build on latest x64 macos. #9

FrankenApps opened this issue Apr 17, 2021 · 1 comment

Comments

@FrankenApps
Copy link

Hi, great library, unfortunately I am not able to build it on macos due to:

objc_exception v0.1.2

This seems to be needed, because the following feature is enabled:

objc = { version = "0.2", features = ["exception"] }

Is there any chance to disable that feature, or does this need to be fixed upstream?
Thanks in advance.

This is the log:

Compiling objc_exception v0.1.2
   Compiling malloc_buf v0.0.6
   Compiling core-foundation v0.9.1
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-arch" "x86_64" "-L" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/me/Development/Rust/tts/basic_example/target/debug/build/objc_exception-eecd4f6a65aabc68/build_script_build-eecd4f6a65aabc68.build_script_build.735axgxd-cgu.0.rcgu.o" "/Users/me/Development/Rust/tts/basic_example/target/debug/build/objc_exception-eecd4f6a65aabc68/build_script_build-eecd4f6a65aabc68.build_script_build.735axgxd-cgu.1.rcgu.o" "/Users/me/Development/Rust/tts/basic_example/target/debug/build/objc_exception-eecd4f6a65aabc68/build_script_build-eecd4f6a65aabc68.build_script_build.735axgxd-cgu.2.rcgu.o" "/Users/me/Development/Rust/tts/basic_example/target/debug/build/objc_exception-eecd4f6a65aabc68/build_script_build-eecd4f6a65aabc68.build_script_build.735axgxd-cgu.3.rcgu.o" "/Users/me/Development/Rust/tts/basic_example/target/debug/build/objc_exception-eecd4f6a65aabc68/build_script_build-eecd4f6a65aabc68.build_script_build.735axgxd-cgu.4.rcgu.o" "/Users/me/Development/Rust/tts/basic_example/target/debug/build/objc_exception-eecd4f6a65aabc68/build_script_build-eecd4f6a65aabc68.build_script_build.735axgxd-cgu.5.rcgu.o" "/Users/me/Development/Rust/tts/basic_example/target/debug/build/objc_exception-eecd4f6a65aabc68/build_script_build-eecd4f6a65aabc68.build_script_build.735axgxd-cgu.6.rcgu.o" "/Users/me/Development/Rust/tts/basic_example/target/debug/build/objc_exception-eecd4f6a65aabc68/build_script_build-eecd4f6a65aabc68.build_script_build.735axgxd-cgu.7.rcgu.o" "-o" "/Users/me/Development/Rust/tts/basic_example/target/debug/build/objc_exception-eecd4f6a65aabc68/build_script_build-eecd4f6a65aabc68" "/Users/me/Development/Rust/tts/basic_example/target/debug/build/objc_exception-eecd4f6a65aabc68/build_script_build-eecd4f6a65aabc68.ai25uaehhuri6bv.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/me/Development/Rust/tts/basic_example/target/debug/deps" "-L" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/me/Development/Rust/tts/basic_example/target/debug/deps/libcc-7560b1db13a03cf8.rlib" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-349f286494d73b18.rlib" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-0c9fcc24a503d489.rlib" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libobject-70419d92d1ba4b1d.rlib" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-65e88774cb68bd46.rlib" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgimli-3849b3781a19a398.rlib" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-0dbb03fa66ca6d84.rlib" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-65edff8661311c85.rlib" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-599e707cd7ee7216.rlib" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-40cb05f6c516791a.rlib" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-7a0a923a4d37a048.rlib" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-7e047938e88325ef.rlib" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-02542d835be27c0f.rlib" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-63712b18a1365082.rlib" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-1196a2a060497e71.rlib" "/Users/me/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-10db70d883838cbc.rlib" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: Undefined symbols for architecture x86_64:
            "hashbrown::raw::RawTable$LT$T$GT$::find::he8090a1d69077876", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::insert::hf69552a051eb945b in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "hashbrown::raw::RawTable$LT$T$GT$::insert::hbbe63e4d89eab6cb", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::insert::hf69552a051eb945b in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "hashbrown::raw::RawTable$LT$T$GT$::find::h25cfcb9cf54a8646", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::insert::hd33cfd3b46acdb57 in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "hashbrown::raw::RawTable$LT$T$GT$::find::h97c3520b600e98d8", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::insert::h712f4038383a129d in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "_$LT$hashbrown..raw..RawTable$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::h57f7ec4e55830473", referenced from:
                core::ptr::drop_in_place$LT$hashbrown..raw..RawTable$LT$$LP$alloc..string..String$C$std..ffi..os_str..OsString$RP$$GT$$GT$::h67e51172e00a95c7 in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.13.rcgu.o)
            "hashbrown::raw::Bucket$LT$T$GT$::as_ref::hd8aeddb3d8f75850", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::get_key_value::hcc07acf2a98b70e3 in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "hashbrown::raw::RawTable$LT$T$GT$::new::hbd4e17ce6f231bcb", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::with_hasher::h3aab56af9ead24fe in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "hashbrown::raw::RawTable$LT$T$GT$::new::h62cadb52a8882d21", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::with_hasher::h7cbb5a88e7224a32 in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "hashbrown::raw::RawTable$LT$T$GT$::find::h0b7300015e387705", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::get_key_value::hac32d5233cb9eea0 in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "hashbrown::raw::RawTable$LT$T$GT$::insert::hc3963cc33750cc31", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::insert::hd33cfd3b46acdb57 in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "hashbrown::raw::RawTable$LT$T$GT$::new::h3b5c197859b10526", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::with_hasher::h1f6e371ead49c5a8 in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "hashbrown::raw::Bucket$LT$T$GT$::as_ref::h79837e0149a2a17e", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::get_key_value::hac32d5233cb9eea0 in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "hashbrown::raw::Bucket$LT$T$GT$::as_mut::h2f9e778eb6521987", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::insert::hf69552a051eb945b in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "hashbrown::raw::Bucket$LT$T$GT$::as_mut::h1f79e50bc31f03dc", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::insert::h712f4038383a129d in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "hashbrown::raw::RawTable$LT$T$GT$::find::ha5c2c81ffe3283e7", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::get_key_value::hcc07acf2a98b70e3 in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "hashbrown::raw::RawTable$LT$T$GT$::find::h92ecf69a875b3ee4", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::get_key_value::h2dbac2627cc907b3 in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "hashbrown::raw::Bucket$LT$T$GT$::as_ref::h39e2c7f072c88930", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::get_key_value::h2dbac2627cc907b3 in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "hashbrown::raw::Bucket$LT$T$GT$::as_mut::h8cddf622cf8c6533", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::insert::hd33cfd3b46acdb57 in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "hashbrown::raw::RawTable$LT$T$GT$::insert::h3485c7d3dd32566b", referenced from:
                hashbrown::map::HashMap$LT$K$C$V$C$S$GT$::insert::h712f4038383a129d in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.5.rcgu.o)
            "_$LT$hashbrown..raw..RawTable$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::hd51e8c81e3fd645b", referenced from:
                core::ptr::drop_in_place$LT$hashbrown..raw..RawTable$LT$$LP$alloc..string..String$C$bool$RP$$GT$$GT$::haff0c5c298408d12 in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.13.rcgu.o)
            "_$LT$hashbrown..raw..RawTable$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::h2d0a93cbc8e36b55", referenced from:
                core::ptr::drop_in_place$LT$hashbrown..raw..RawTable$LT$$LP$alloc..string..String$C$core..option..Option$LT$alloc..string..String$GT$$RP$$GT$$GT$::hb791bdcb498bedd4 in libcc-7560b1db13a03cf8.rlib(cc-7560b1db13a03cf8.cc.3oiexmgb-cgu.13.rcgu.o)
          ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: aborting due to previous error

error: could not compile `objc_exception`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

on macOS Big Sur 11.2.3

@secretmango
Copy link

funny I have a similar bug:

cargo build                                                          master ✱
   Compiling proc-macro2 v1.0.69
   Compiling rustix v0.38.21
   Compiling libc v0.2.149
   Compiling prettyplease v0.2.15
   Compiling memchr v2.6.4
   Compiling cfg-if v1.0.0
   Compiling linux-raw-sys v0.4.10
   Compiling clang-sys v1.6.1
   Compiling regex-automata v0.4.3
error: linker `cc` not found
  |
  = note: No such file or directory (os error 2)

error: could not compile `prettyplease` (build script) due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `proc-macro2` (build script) due to previous error
error: could not compile `rustix` (build script) due to previous error
error: could not compile `libc` (build script) due to previous error
error: could not compile `clang-sys` (build script) due to previous error

Fedora KDE 39 container, gcc x86_64 installed

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

2 participants