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

Does anyone knows why some crate prevent from compiling with arch-related error ? #61

Open
Roms1383 opened this issue Jan 5, 2022 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed macos Issues/PRs related to using rid on macOS (osx)

Comments

@Roms1383
Copy link
Collaborator

Roms1383 commented Jan 5, 2022

Hello everyone and happy new year ! 🥳 🎉
I tried using kira which depends on coreaudio-rs and I don't understand but it fails to compile, as seen in details below.

First a long list of warnings:

ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(aesni-x86_64-macosx.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(vpaes-x86_64-macosx.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(x86_64-mont-macosx.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(x86_64-mont5-macosx.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(chacha-x86_64-macosx.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(p256-x86_64-asm-macosx.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(aesni-gcm-x86_64-macosx.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(ghash-x86_64-macosx.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(sha512-x86_64-macosx.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(chacha20_poly1305_x86_64-macosx.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(sha256-x86_64-macosx.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(aes_nohw.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(montgomery.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(montgomery_inv.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(limbs.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(mem.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(poly1305.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(crypto.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(curve25519.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(ecp_nistz.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(ecp_nistz256.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(gfp_p256.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(gfp_p384.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(cpu-intel.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(poly1305_vec.o)) was built for newer macOS version (12.0) than being linked (10.11)
ld: warning: object file (/Users/romain/Development/sandbox/dataterm/citinet/plugin/macos/libcitinet.a(constant_time_test.o)) was built for newer macOS version (12.0) than being linked (10.11)

Followed by an arch-related error:

Undefined symbols for architecture x86_64:
  "_AudioComponentFindNext", referenced from:
      coreaudio::audio_unit::AudioUnit::new_with_flags::hc62e1936b3e73ac3 in libcitinet.a(cpal-177f4348c727ca18.cpal.5a91f529-cgu.6.rcgu.o)
  "_AudioComponentInstanceDispose", referenced from:
      _$LT$coreaudio..audio_unit..AudioUnit$u20$as$u20$core..ops..drop..Drop$GT$::drop::heb9d93a27b9bd098 in libcitinet.a(coreaudio-4c65020fa51c4abc.coreaudio.2a69c96c-cgu.3.rcgu.o)
  "_AudioComponentInstanceNew", referenced from:
      coreaudio::audio_unit::AudioUnit::new_with_flags::hc62e1936b3e73ac3 in libcitinet.a(cpal-177f4348c727ca18.cpal.5a91f529-cgu.6.rcgu.o)
  "_AudioOutputUnitStart", referenced from:
      coreaudio::audio_unit::AudioUnit::start::h5942ebb4e25ce675 in libcitinet.a(coreaudio-4c65020fa51c4abc.coreaudio.2a69c96c-cgu.3.rcgu.o)
  "_AudioOutputUnitStop", referenced from:
      coreaudio::audio_unit::AudioUnit::stop::hecf1350304deb91d in libcitinet.a(coreaudio-4c65020fa51c4abc.coreaudio.2a69c96c-cgu.3.rcgu.o)
  "_AudioUnitGetProperty", referenced from:
      coreaudio::audio_unit::get_property::had5879f485b38978 in libcitinet.a(cpal-177f4348c727ca18.cpal.5a91f529-cgu.6.rcgu.o)
      coreaudio::audio_unit::get_property::h1a9553496dbaefa8 in libcitinet.a(coreaudio-4c65020fa51c4abc.coreaudio.2a69c96c-cgu.3.rcgu.o)
      coreaudio::audio_unit::get_property::hf18977f0b23798ee in libcitinet.a(coreaudio-4c65020fa51c4abc.coreaudio.2a69c96c-cgu.3.rcgu.o)
  "_AudioUnitInitialize", referenced from:
      coreaudio::audio_unit::AudioUnit::new_with_flags::hc62e1936b3e73ac3 in libcitinet.a(cpal-177f4348c727ca18.cpal.5a91f529-cgu.6.rcgu.o)
      coreaudio::audio_unit::AudioUnit::initialize::h37da196658ae3105 in libcitinet.a(coreaudio-4c65020fa51c4abc.coreaudio.2a69c96c-cgu.3.rcgu.o)
  "_AudioUnitSetProperty", referenced from:
      coreaudio::audio_unit::set_property::h5d8e058f5849df91 in libcitinet.a(cpal-177f4348c727ca18.cpal.5a91f529-cgu.6.rcgu.o)
      coreaudio::audio_unit::set_property::h767748f942455a07 in libcitinet.a(coreaudio-4c65020fa51c4abc.coreaudio.2a69c96c-cgu.3.rcgu.o)
      coreaudio::audio_unit::set_property::h7c5b6de6454f21d3 in libcitinet.a(coreaudio-4c65020fa51c4abc.coreaudio.2a69c96c-cgu.3.rcgu.o)
      coreaudio::audio_unit::set_property::hb9f67e83a63e4769 in libcitinet.a(kira_cpal-f5f69e29e1f1854f.3iy8a5x5qm8d9y49.rcgu.o)
  "_AudioUnitUninitialize", referenced from:
      coreaudio::audio_unit::AudioUnit::uninitialize::h24ecea097c06f272 in libcitinet.a(coreaudio-4c65020fa51c4abc.coreaudio.2a69c96c-cgu.3.rcgu.o)
      _$LT$coreaudio..audio_unit..AudioUnit$u20$as$u20$core..ops..drop..Drop$GT$::drop::heb9d93a27b9bd098 in libcitinet.a(coreaudio-4c65020fa51c4abc.coreaudio.2a69c96c-cgu.3.rcgu.o)
ld: symbol(s) not found for architecture x86_64

I've already tried naive attempts like building the dependent crate with --target=x86_64-apple-darwin but without success.

@Roms1383 Roms1383 added bug Something isn't working help wanted Extra attention is needed macos Issues/PRs related to using rid on macOS (osx) labels Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed macos Issues/PRs related to using rid on macOS (osx)
Projects
None yet
Development

No branches or pull requests

1 participant