[MacPorts] #64146: rust on Mac OS 10.6.8?

MacPorts noreply at macports.org
Tue Dec 7 20:37:42 UTC 2021


#64146: rust on Mac OS 10.6.8?
--------------------------+----------------------
  Reporter:  catap        |      Owner:  catap
      Type:  enhancement  |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.7.1
Resolution:               |   Keywords:
      Port:  rust         |
--------------------------+----------------------

Comment (by kencu):

 Indeed, you will need that llvm/clang patch to enable thread_local_storage
 using llvm using emulated tls; it was a real find to have such a
 straightforward patch to accomplish this on darwin a few years ago.

 Upstream will never enable this hack on darwin < 10.7, but I applaud your
 gumption :> Upstream has officially killed all support for older darwin
 systems, and they have drawn the bar at about 10.14 now. The only reason
 it builds on anything earlier is because of all (my) our patches making it
 so.

 I would have hoped we might apply pretty much all of our existing
 clang/llvm patches from llvm-13 to the llvm-13 that is used in rust, as
 those patches all have a role, have been used for years and years and are
 very well vetted. (I think llvm-13 is the one used in rust, if not then
 use the patches from our llvm that they do use.) It should be pretty
 trivial to do that instead of trying to keep up with yet another branch of
 llvm to be maintained for rust.

 Also, don't forget there is the need for {{{cxa_thread_atexit}}} function
 to be provided in libc++abi.dylib, which we do in the {{{libcxx}}} port,
 where this is built. That function is provided there as that is where
 upstream provides it on all the systems that use emulated_tls, and I
 believe it is not supposed to be statically linked into each individual
 executable as it won't work properly that way (which would be the more
 trivial thing to do).

-- 
Ticket URL: <https://trac.macports.org/ticket/64146#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list