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

Undefined symbols for architecture x86_64: "_kCFURLVolumeAvailableCapacityForImportantUsageKey" #61

Open
ZingerLittleBee opened this issue Dec 7, 2022 · 6 comments
Labels
bug Something isn't working needs-testing Needs further testing to narrow down problem target-x86_64-apple-darwin

Comments

@ZingerLittleBee
Copy link

when build with x86_64-apple-darwin, got this error.
action detail logs
before v1.4.0 everything is ok, however downgrade to v1.3.2 error still exists
thank you for your time

@Douile Douile added bug Something isn't working needs-testing Needs further testing to narrow down problem target-x86_64-apple-darwin labels Dec 27, 2022
@bjarthur
Copy link

me too!

@bjarthur
Copy link

bjarthur commented Apr 3, 2023

_kCFURLVolumeAvailableCapacityForImportantUsageKey is only defined on macOS 10.13+ according to https://developer.apple.com/documentation/corefoundation/kcfurlvolumeavailablecapacityforimportantusagekey. maybe the linker is using on older version?

@Douile
Copy link
Member

Douile commented Apr 6, 2023

Have you guys tried using https://github.com/houseabsolute/actions-rust-cross ? As this project uses the method that was planned to fix macos builds.

@bjarthur
Copy link

bjarthur commented May 3, 2023

i just set the MACOSX_SDK_VERSION variable to 10.13 in my conda forge recipe. see https://conda-forge.org/docs/maintainer/knowledge_base.html#requiring-newer-macos-sdks

@avinashkurup
Copy link

Hi,
I faced this issue while trying to generate build artifacts for x86_64-apple-darwin14

error: linking with /opt/osxcross/target/bin/x86_64-apple-darwin14-clang failed: exit status: 1
|
= note: LC_ALL="C" PATH="/usr/local/rustup/toolchains/1.73.0-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/bin:/opt/osxcross/target/bin:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" ZERO_AR_DATE="1" "/opt/osxcross/target/bin/x86_64-apple-darwin14-clang" "-arch" "x86_64" "-m64" "/tmp/rustcawMcm7/symbols.o" "/github/workspace/./target/x86_64-apple-darwin/release/deps/surveilr-de53a87eb7532d24.surveilr.15c7b8d257bb6997-cgu.00.rcgu.o"
....

....
= note: Undefined symbols for architecture x86_64:
"_kCFURLVolumeAvailableCapacityForImportantUsageKey", referenced from:
_$LT$sysinfo..apple..disk..Disk$u20$as$u20$sysinfo..traits..DiskExt$GT$::refresh::hdd6df93d7d889244 in libsysinfo-b4136c289cfe1568.rlib(sysinfo-b4136c289cfe1568.sysinfo.ba89491eecc95e75-cgu.11.rcgu.o)
sysinfo::apple::disk::get_disks::h98ec83301f80ba3e in libsysinfo-b4136c289cfe1568.rlib(sysinfo-b4136c289cfe1568.sysinfo.ba89491eecc95e75-cgu.11.rcgu.o)
ld: symbol(s) not found for architecture x86_64
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)

I used this action, rust-build/[email protected]. Please help me with a fix for this.

@coolbeevip
Copy link

Hi, I faced this issue while trying to generate build artifacts for x86_64-apple-darwin14

error: linking with /opt/osxcross/target/bin/x86_64-apple-darwin14-clang failed: exit status: 1 | = note: LC_ALL="C" PATH="/usr/local/rustup/toolchains/1.73.0-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/bin:/opt/osxcross/target/bin:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" ZERO_AR_DATE="1" "/opt/osxcross/target/bin/x86_64-apple-darwin14-clang" "-arch" "x86_64" "-m64" "/tmp/rustcawMcm7/symbols.o" "/github/workspace/./target/x86_64-apple-darwin/release/deps/surveilr-de53a87eb7532d24.surveilr.15c7b8d257bb6997-cgu.00.rcgu.o" ....

.... = note: Undefined symbols for architecture x86_64: "_kCFURLVolumeAvailableCapacityForImportantUsageKey", referenced from: _$LT$sysinfo..apple..disk..Disk$u20$as$u20$sysinfo..traits..DiskExt$GT$::refresh::hdd6df93d7d889244 in libsysinfo-b4136c289cfe1568.rlib(sysinfo-b4136c289cfe1568.sysinfo.ba89491eecc95e75-cgu.11.rcgu.o) sysinfo::apple::disk::get_disks::h98ec83301f80ba3e in libsysinfo-b4136c289cfe1568.rlib(sysinfo-b4136c289cfe1568.sysinfo.ba89491eecc95e75-cgu.11.rcgu.o) ld: symbol(s) not found for architecture x86_64 clang-15: error: linker command failed with exit code 1 (use -v to see invocation)

I used this action, rust-build/[email protected]. Please help me with a fix for this.

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-testing Needs further testing to narrow down problem target-x86_64-apple-darwin
Development

No branches or pull requests

5 participants