[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 17:58:31 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:
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:
 Keywords:  powerpc  |       Port:  clang-3.8
---------------------+-----------------------
 During the build of clang-3.8 on 10.5 PPC, the following error is noted:

 {{{
 [ 14%] Generating
 ../../../../lib/clang/3.8.1/lib/darwin/libclang_rt.10.4.a
 cd
 /opt/local/var/macports/build/_opt_LeopardPorts_lang_llvm-3.8/clang-3.8/work/build/projects
 /compiler-rt/lib/builtins && /opt/local/bin/cmake -E make_directory
 /opt/local/var/macports/build/_opt_LeopardPorts_lang_llvm-3.8/clang-3.8/work/build/./lib/clang/3.8.1/lib/darwin
 cd
 /opt/local/var/macports/build/_opt_LeopardPorts_lang_llvm-3.8/clang-3.8/work/build/projects
 /compiler-rt/lib/builtins && lipo -output
 /opt/local/var/macports/build/_opt_LeopardPorts_lang_llvm-3.8/clang-3.8/work/build/./lib/clang/3.8.1/lib/darwin/libclang_rt.10.4.a
 -create -arch i386
 /opt/local/var/macports/build/_opt_LeopardPorts_lang_llvm-3.8/clang-3.8/work/build/lib/libclang_rt.builtins_i386_10.4.a
 -arch x86_64
 /opt/local/var/macports/build/_opt_LeopardPorts_lang_llvm-3.8/clang-3.8/work/build/lib/libclang_rt.builtins_x86_64_10.4.a
 fatal error: lipo: specifed architecture type (i386) for file
 (/opt/local/var/macports/build/_opt_LeopardPorts_lang_llvm-3.8/clang-3.8/work/build/lib/libclang_rt.builtins_i386_10.4.a)
 does not match its cputype (18) and cpusubtype (0) (should be cputype (7)
 and cpusubtype (3))
 }}}

 This appears to be due to an error in the cmake build script for this
 library. See below for more analysis and a workaround that allows the
 build to succeed.

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


More information about the macports-tickets mailing list