[MacPorts] #64362: pango @1.50.3 fails building on 10.5.8 PPC

MacPorts noreply at macports.org
Wed Jan 5 12:19:15 UTC 2022


#64362: pango @1.50.3 fails building on 10.5.8 PPC
-------------------------+---------------------
  Reporter:  udbraumann  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  leopard
      Port:  pango       |
-------------------------+---------------------

Comment (by udbraumann):

 Replying to [comment:1 ryandesign]:
 > I thought this was supposed to have been fixed by #60253 already.
 >
 > Is there another log that shows more detail, specifically to verify
 which nm (/usr/bin/nm or /opt/local/bin/nm) is being called—maybe a
 meson.log file?

 What I find near the top of main.log is this:

 {{{
 ...
 :debug:configure Environment:
 :debug:configure CC='/opt/local/bin/gcc-mp-7'
 :debug:configure CC_PRINT_OPTIONS='YES'
 :debug:configure
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_pango/pango/work/.CC_PRINT_OPTIONS'
 :debug:configure CFLAGS='-pipe -Os -Wno-error,-Wimplicit-fallthrough -arch
 ppc'
 :debug:configure CPATH='/opt/local/include'
 :debug:configure CPPFLAGS='-I/opt/local/include'
 :debug:configure CXX='/opt/local/bin/g++-mp-7'
 :debug:configure CXXFLAGS='-pipe -Os -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0
 -arch ppc'
 :debug:configure DEVELOPER_DIR='/Developer'
 :debug:configure F77='/opt/local/bin/gfortran-mp-7'
 :debug:configure F90='/opt/local/bin/gfortran-mp-7'
 :debug:configure F90FLAGS='-pipe -Os -m32'
 :debug:configure FC='/opt/local/bin/gfortran-mp-7'
 :debug:configure FCFLAGS='-pipe -Os -m32'
 :debug:configure FFLAGS='-pipe -Os -m32'
 :debug:configure INSTALL='/usr/bin/install -c'
 :debug:configure LDFLAGS='-L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch ppc'
 :debug:configure LIBRARY_PATH='/opt/local/lib'
 :debug:configure MACOSX_DEPLOYMENT_TARGET='10.5'
 :debug:configure NM='/opt/local/bin/nm'
 :debug:configure OBJC='/opt/local/bin/gcc-mp-7'
 :debug:configure OBJCFLAGS='-pipe -Os -arch ppc'
 :debug:configure OBJCXX='/opt/local/bin/g++-mp-7'
 :debug:configure OBJCXXFLAGS='-pipe -Os -std=c++11
 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc'
 :info:configure Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_pango/pango/work/pango-1.50.3"
 && /opt/local/bin/meson --prefix=/opt/local -Dxft=enabled
 -Dintrospection=enabled -Dlt_cv_path_NM=/opt/local/bin/nm
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_pango/pango/work/pango-1.50.3
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_pango/pango/work/build
 :debug:configure system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_pango/pango/work/pango-1.50.3"
 && /opt/local/bin/meson --prefix=/opt/local -Dxft=enabled
 -Dintrospection=enabled -Dlt_cv_path_NM=/opt/local/bin/nm
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_pango/pango/work/pango-1.50.3
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_pango/pango/work/build
 :info:configure The Meson build system
 :info:configure Version: 0.59.1
 :info:configure Source dir:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_pango/pango/work/pango-1.50.3
 :info:configure Build dir:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_pango/pango/work/build
 :info:configure Build type: native build
 :info:configure WARNING: Unknown options: "lt_cv_path_NM"
 :info:configure The value of new options can be set with:
 :info:configure meson setup <builddir> --reconfigure
 -Dnew_option=new_value ...
 :info:configure Project name: pango
 :info:configure Project version: 1.50.3
 :info:configure C compiler for the host machine: /opt/local/bin/gcc-mp-7
 (gcc 7.5.0 "gcc-mp-7 (MacPorts gcc7 7.5.0_3) 7.5.0")
 :info:configure C linker for the host machine: /opt/local/bin/gcc-mp-7
 ld64 127.2
 :info:configure C++ compiler for the host machine: /opt/local/bin/g++-mp-7
 (gcc 7.5.0 "g++-mp-7 (MacPorts gcc7 7.5.0_3) 7.5.0")
 :info:configure C++ linker for the host machine: /opt/local/bin/g++-mp-7
 ld64 127.2
 :info:configure Host machine cpu family: ppc
 :info:configure Host machine cpu: power macintosh
 ...
 }}}

 So I believe that `/opt/local/bin/nm` is being used.

 Some more evidence is given by the log lines near the first error:

 {{{
 ...
 :info:build error: nm: invalid argument --
 :info:build Usage: nm [-agnopruUmxjlfAPL[s segname sectname] [-] [-t
 format] [[-arch <arch_flag>] ...] [file ...]
 ...
 }}}

 Compare this message with these from the two calls:

 {{{
 $ /opt/local/bin/nm ---
 error: /opt/local/bin/nm: invalid argument --
 Usage: /opt/local/bin/nm [-agnopruUmxjlfAPL[s segname sectname] [-] [-t
 format] [[-arch <arch_flag>] ...] [file ...]
 $ /usr/bin/nm ---
 /usr/bin/nm: invalid argument --
 Usage: /usr/bin/nm [-agnoprumxjlfAP[s segname sectname] [-] [-t format]
 [[-arch <arch_flag>] ...] [file ...]
 }}}

 It is clear it is not the second of the two.

 If you look in the lines above taken from `main.log` you see:

 {{{
 ...
 :info:configure WARNING: Unknown options: "lt_cv_path_NM"
 :info:configure The value of new options can be set with:
 :info:configure meson setup <builddir> --reconfigure
 -Dnew_option=new_value ...
 ...
 }}}

 That means that the option `lt_cv_path_NM` is not valid, and following
 `-Dlt_cv_path_NM=/opt/local/bin/nm` has no effect.

 I hope you have some idea what is the basic problem here.

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


More information about the macports-tickets mailing list