[MacPorts] #61082: rust @ 1.45.2 -x11 +no_x11 +quartz - build failure with macosx_deployment_target 10.11

MacPorts noreply at macports.org
Fri Aug 28 13:53:55 UTC 2020


#61082: rust @ 1.45.2 -x11 +no_x11 +quartz - build failure with
macosx_deployment_target 10.11
-----------------------+--------------------
 Reporter:  fredowski  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.6.3
 Keywords:             |       Port:  rust
-----------------------+--------------------
 I try to build rust 1.45.2 on MacOS 10.13.6 (xcode 10.1) with
 macosx_deployment_target 10.11 set in macports.conf. The build then fails
 with

 {{{
           Undefined symbols for architecture x86_64:
             "___isOSVersionAtLeast", referenced from:
                 llvm::sys::fs::copy_file(llvm::Twine const&, llvm::Twine
 const&) in librustc_llvm-d89f2e99b72ea4cc.rlib(Path.cpp.o)
           ld: symbol(s) not found for architecture x86_64
           clang: error: linker command failed with exit code 1 (use -v to
 see invocation)
 }}}

 This seems to be the identical problem that occured in upstream

 https://github.com/rust-lang/rust/pull/62592#issuecomment-510670657

 which ended in this patch in upstream

 https://github.com/rust-lang/llvm-project/pull/21

 As far as I figured it out this patch is also in the sources in macports
 but the bug is still there.

 The build works when I disable the macosx_deployment_target setting in
 macports.conf

-- 
Ticket URL: <https://trac.macports.org/ticket/61082>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list