[MacPorts] #64262: libuv fails to build for ppc64

MacPorts noreply at macports.org
Thu May 12 12:39:21 UTC 2022


#64262: libuv fails to build for ppc64
---------------------------+-------------------------------------
  Reporter:  barracuda156  |      Owner:  michaelld
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  powerpc, leopard, ppc64
      Port:  libuv         |
---------------------------+-------------------------------------

Comment (by barracuda156):

 Replying to [comment:11 kencu]:
 > strip out all the dependency tracking. It's not useful for Macports
 builds anyway, and it is likely part of (or all of) the error.

 And then, with another fix for Cmake portfile, I got it built as
 `+universal` too!

 As-is, `cmake` fails with the following:
 {{{
 --->  Configuring cmake for architecture ppc
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.22.4-ppc"
 && ./bootstrap --prefix=/opt/local --docdir=share/doc/cmake --parallel=4
 --init=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.22.4/macports.cmake
 --system-libs --no-system-jsoncpp --no-system-librhash --no-qt-gui --
 ---------------------------------------------
 CMake 3.22.4, Copyright 2000-2021 Kitware, Inc. and Contributors
 ---------------------------------------------
 Error when bootstrapping CMake:
 Cannot find appropriate C compiler on this system.
 Please specify one using environment variable CC.
 See cmake_bootstrap.log for compilers attempted.

 ---------------------------------------------
 Log of errors:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.22.4-ppc/Bootstrap.cmk/cmake_bootstrap.log
 ---------------------------------------------
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.22.4-ppc"
 && ./bootstrap --prefix=/opt/local --docdir=share/doc/cmake --parallel=4
 --init=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.22.4/macports.cmake
 --system-libs --no-system-jsoncpp --no-system-librhash --no-qt-gui --
 Exit code: 6
 Error: Failed to configure cmake: configure failure: command execution
 failed
 }}}

 Adding this helped:
 {{{
 configure.env-append CC="/opt/local/bin/gcc-mp-11" \
                      CXX="/opt/local/bin/g++-mp-11"
 }}}

 However it cannot be a general fix, of course. How to specify CC/CXX
 correctly for a general case?
 Then I can submit a PR.

 {{{
 36-111:~ svacchanda$ port -v installed cmake
 The following ports are currently installed:
   cmake @3.22.1_0 requested_variants='-universal' platform='darwin 9'
 archs='ppc' date='2021-12-22T10:01:18+0800'
   cmake @3.22.2_0 requested_variants='-universal' platform='darwin 9'
 archs='ppc' date='2022-01-30T19:16:42+0800'
   cmake @3.22.4_0+universal (active) requested_variants='+universal'
 platform='darwin 9' archs='ppc ppc64' date='2022-05-12T20:34:56+0800'
 }}}

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


More information about the macports-tickets mailing list