[MacPorts] #64088: cargo-c fails to build on 10.13

MacPorts noreply at macports.org
Fri Dec 3 11:54:54 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 mascguy):

 Replying to [comment:19 tomio-arisaka]:
 > This is my solution to the issue:
 >
 > {{{
 > $ sudo port select --set clang mp-clang-13
 > $ sudo port install cargo-c
 > $ sudo port select --set clang none
 > }}}
 >
 > Results:
 >
 > {{{
 > $ port installed cargo-c
 > The following ports are currently installed:
 >   cargo-c @0.9.5_0 (active)
 >
 > $ xcodebuild -version
 > Xcode 9.4.1
 > Build version 9F2000
 > }}}
 >
 > I don't know why the issue happens. But, there are the following
 differences between the failed case and the succeeded case:
 >
 > * The failed case log includes the next option:  "-L
 /Library/Developer/CommandLineTools/usr/lib/clang/10.0.0/lib/darwin"
 > * The succeeded case log includes the next option:  "-L
 /opt/local/libexec/llvm-13/lib/clang/13.0.0/lib/darwin"

 It's interesting that selecting Clang 13 as the default, fixes the issue.

 On my 10.13 system, I was able to successfully build `cargo-c` with both
 Xcode 9.4.1, and 10.1, without an issue. (And without a default Clang
 set.)

 @cjones, any thoughts/ideas?

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


More information about the macports-tickets mailing list