[MacPorts] #63038: Fail to build clang12 +analyzer

MacPorts noreply at macports.org
Sun Jun 6 19:03:14 UTC 2021


#63038: Fail to build clang12 +analyzer
------------------------+----------------------
 Reporter:  mouse07410  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  clang-12
------------------------+----------------------
 iMac (Intel-based), MacOS BigSur 11.4, Xcode-12.5. Note: I do **not** want
 to build universal binaries, though the ability to cross-compile on this
 iMac for M1 platform (again, not universal!) would be beneficial.

 First, to my surprise, the pre-built clang-12 is **not** built with
 {{{+analyzer}}}, only with {{{+libstdcxx}}}. Is this an omission, or a
 "strategic" change? If an omission - could you please remedy it. If an
 intentional change - please reconsider and return to providing binaries
 pre-built with analyzer.

 Second - my attempt to install clang-12 with analyzer fails:
 {{{
 $ sudo port install llvm-12
 $ sudo port install clang-12 +analyzer
 .  .  .  .  .
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-12/clang-12/work/build'
 :info:build [ 18%] Built target clang_rt.builtins_arm64_osx
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-12/clang-12/work/build'
 :info:build [ 18%] Built target obj.llvm-tblgen
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-12/clang-12/work/build'
 :info:build make: *** [all] Error 2
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-12/clang-12/work/build'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-12/clang-12/work/build"
 && /usr/bin/make -j20 -w all VERBOSE=ON
 :info:build Exit code: 2
 :error:build Failed to build clang-12: command execution failed
 :debug:build Error code: CHILDSTATUS 77307 2
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec -callback
 portprogress::target_progress_callback build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-12/clang-12/main.log
 for details.
 }}}

 Complete log attached.

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


More information about the macports-tickets mailing list