[MacPorts] #64088: cargo-c fails to build on 10.13
MacPorts
noreply at macports.org
Thu Dec 2 22:28:04 UTC 2021
#64088: cargo-c fails to build on 10.13
-----------------------+---------------------------------
Reporter: bK4gYuRo | Owner: MarcusCalhoun-Lopez
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: cargo-c
Port: cargo-c |
-----------------------+---------------------------------
Comment (by kencu):
{{{isPlatformVersionAtLeast}}} is a function in the compiler_rt library in
newer versions of clang:
https://github.com/llvm/llvm-project/blob/main/compiler-
rt/lib/builtins/os_version_check.c
Normally it is found in the compiler_rt.a library that is automatically
added to the link libraries by clang when clang drives the linker (ld64)
on Darwin.
If you are driving the linker in some other way (ghc, rust perhaps, gcc),
or if you are specifying {{{nostdlibs}}} then you have to add the full
path to the static clang_rt library to get that function to be linked in.
Presumably one of those things is messing this up. I suspect that older
xcode versions might not use that function but newer ones do, which could
be why xcode9 works yet xcode10 fails.
Maybe.
--
Ticket URL: <https://trac.macports.org/ticket/64088#comment:18>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list