[MacPorts] #54242: clang-3.8 build fails on 10.5 PPC due to fatal error: lipo: specifed architecture in libclang_rt.10.4.a does not match its cputype -- and workaround that allows build to succeed

MacPorts noreply at macports.org
Sat May 27 19:13:21 UTC 2017


#54242: clang-3.8 build fails on 10.5 PPC due to fatal error: lipo: specifed
architecture in libclang_rt.10.4.a does not match its cputype -- and
workaround that allows build to succeed
------------------------+----------------------
  Reporter:  kencu      |      Owner:  jeremyhu
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:  powerpc
      Port:  clang-3.8  |
------------------------+----------------------

Comment (by kencu):

 I think this file `work/llvm-4.0.0.src/projects/compiler-
 rt/cmake/Modules/CompilerRTDarwinUtils.cmake` is missing most of the logic
 to support `ppc` and `ppc64` archs, in the end. There are other functions
 in that file that done have ppc support. It doesn't look like a lot to
 add, but it would take a little logic to work out.

 I suppose it's kind of surprising then that the default build comes out
 with a ppc arch library that we can use at all.

 I don't think it's easy to patch files _after_ the configure stage. Some
 reinplacing could be done post-configure instead, I suppose.

 I wish it was a bit easier to debug cmake build scripts.

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


More information about the macports-tickets mailing list