xiaozhuai opened PR #11293 from xiaozhuai:patch-1 to bytecodealliance:main:
Fix build on macOS
Undefined symbols for architecture arm64: "_CFRelease", referenced from: _$LT$iana_time_zone..platform..system_time_zone..SystemTimeZone$u20$as$u20$core..ops..drop..Drop$GT$::drop::hbe05ab81c8aa1895 in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) "_CFStringGetBytes", referenced from: iana_time_zone::platform::string_ref::StringRef$LT$T$GT$::to_utf8::h49322ae39bd5c38e in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) "_CFStringGetCStringPtr", referenced from: iana_time_zone::platform::string_ref::StringRef$LT$T$GT$::as_utf8::h4b4b4b7548589d47 in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) "_CFStringGetLength", referenced from: iana_time_zone::platform::string_ref::StringRef$LT$T$GT$::to_utf8::h49322ae39bd5c38e in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) "_CFTimeZoneCopySystem", referenced from: iana_time_zone::platform::system_time_zone::SystemTimeZone::new::h3b802fbfcb488c18 in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) "_CFTimeZoneGetName", referenced from: iana_time_zone::platform::system_time_zone::SystemTimeZone::name::h92132c16acf40afe in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) ld: symbol(s) not found for architecture arm64
xiaozhuai requested fitzgen for a review on PR #11293.
xiaozhuai requested wasmtime-core-reviewers for a review on PR #11293.
xiaozhuai updated PR #11293.
xiaozhuai edited PR #11293:
- Fix build on macOS
Undefined symbols for architecture arm64: "_CFRelease", referenced from: _$LT$iana_time_zone..platform..system_time_zone..SystemTimeZone$u20$as$u20$core..ops..drop..Drop$GT$::drop::hbe05ab81c8aa1895 in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) "_CFStringGetBytes", referenced from: iana_time_zone::platform::string_ref::StringRef$LT$T$GT$::to_utf8::h49322ae39bd5c38e in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) "_CFStringGetCStringPtr", referenced from: iana_time_zone::platform::string_ref::StringRef$LT$T$GT$::as_utf8::h4b4b4b7548589d47 in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) "_CFStringGetLength", referenced from: iana_time_zone::platform::string_ref::StringRef$LT$T$GT$::to_utf8::h49322ae39bd5c38e in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) "_CFTimeZoneCopySystem", referenced from: iana_time_zone::platform::system_time_zone::SystemTimeZone::new::h3b802fbfcb488c18 in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) "_CFTimeZoneGetName", referenced from: iana_time_zone::platform::system_time_zone::SystemTimeZone::name::h92132c16acf40afe in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) ld: symbol(s) not found for architecture arm64
- Set up MACOSX_DEPLOYMENT_TARGET correctly
ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1054](242b1992def1ef0b-helpers.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1891](44ff4c55aa9e5133-entropy_common.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1892](44ff4c55aa9e5133-error_private.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1893](44ff4c55aa9e5133-fse_decompress.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1896](44ff4c55aa9e5133-zstd_common.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1897](fb80479a5fb81f6a-fse_compress.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1898](fb80479a5fb81f6a-hist.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1899](fb80479a5fb81f6a-huf_compress.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1900](fb80479a5fb81f6a-zstd_compress.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1901](fb80479a5fb81f6a-zstd_compress_literals.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1902](fb80479a5fb81f6a-zstd_compress_sequences.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1903](fb80479a5fb81f6a-zstd_compress_superblock.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1904](fb80479a5fb81f6a-zstd_double_fast.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1905](fb80479a5fb81f6a-zstd_fast.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1906](fb80479a5fb81f6a-zstd_lazy.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1907](fb80479a5fb81f6a-zstd_ldm.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1908](fb80479a5fb81f6a-zstd_opt.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1910](88f362f13b0528ed-huf_decompress.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1911](88f362f13b0528ed-zstd_ddict.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1912](88f362f13b0528ed-zstd_decompress.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1913](88f362f13b0528ed-zstd_decompress_block.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1970](db3b6bfb95261072-gdbjit.o)) was built for newer 'macOS' version (15.5) than being linked (11.0)
xiaozhuai edited PR #11293:
- Fix build on macOS for downstream projects
Undefined symbols for architecture arm64: "_CFRelease", referenced from: _$LT$iana_time_zone..platform..system_time_zone..SystemTimeZone$u20$as$u20$core..ops..drop..Drop$GT$::drop::hbe05ab81c8aa1895 in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) "_CFStringGetBytes", referenced from: iana_time_zone::platform::string_ref::StringRef$LT$T$GT$::to_utf8::h49322ae39bd5c38e in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) "_CFStringGetCStringPtr", referenced from: iana_time_zone::platform::string_ref::StringRef$LT$T$GT$::as_utf8::h4b4b4b7548589d47 in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) "_CFStringGetLength", referenced from: iana_time_zone::platform::string_ref::StringRef$LT$T$GT$::to_utf8::h49322ae39bd5c38e in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) "_CFTimeZoneCopySystem", referenced from: iana_time_zone::platform::system_time_zone::SystemTimeZone::new::h3b802fbfcb488c18 in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) "_CFTimeZoneGetName", referenced from: iana_time_zone::platform::system_time_zone::SystemTimeZone::name::h92132c16acf40afe in libwasmtime.a[770](iana_time_zone-751748d2983d7843.iana_time_zone.76c62ed0e50067e-cgu.0.rcgu.o) ld: symbol(s) not found for architecture arm64
- Set up MACOSX_DEPLOYMENT_TARGET correctly
ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1054](242b1992def1ef0b-helpers.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1891](44ff4c55aa9e5133-entropy_common.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1892](44ff4c55aa9e5133-error_private.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1893](44ff4c55aa9e5133-fse_decompress.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1896](44ff4c55aa9e5133-zstd_common.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1897](fb80479a5fb81f6a-fse_compress.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1898](fb80479a5fb81f6a-hist.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1899](fb80479a5fb81f6a-huf_compress.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1900](fb80479a5fb81f6a-zstd_compress.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1901](fb80479a5fb81f6a-zstd_compress_literals.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1902](fb80479a5fb81f6a-zstd_compress_sequences.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1903](fb80479a5fb81f6a-zstd_compress_superblock.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1904](fb80479a5fb81f6a-zstd_double_fast.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1905](fb80479a5fb81f6a-zstd_fast.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1906](fb80479a5fb81f6a-zstd_lazy.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1907](fb80479a5fb81f6a-zstd_ldm.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1908](fb80479a5fb81f6a-zstd_opt.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1910](88f362f13b0528ed-huf_decompress.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1911](88f362f13b0528ed-zstd_ddict.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1912](88f362f13b0528ed-zstd_decompress.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1913](88f362f13b0528ed-zstd_decompress_block.o)) was built for newer 'macOS' version (15.5) than being linked (11.0) ld: warning: object file (target/aarch64-apple-darwin/debug/libwasmtime.a[1970](db3b6bfb95261072-gdbjit.o)) was built for newer 'macOS' version (15.5) than being linked (11.0)
Last updated: Dec 06 2025 at 06:05 UTC