Opened 2 years ago

Last modified 2 years ago

#64362 new defect

pango @1.50.3 fails building on 10.5.8 PPC

Reported by: udbraumann Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: leopard Cc: ryandesign (Ryan Carsten Schmidt), mascguy (Christopher Nielsen), evanmiller (Evan Miller), ballapete (Peter "Pete" Dyballa)
Port: pango

Description

While upgrading pango from 1.42.4_2 to 1.50.3_0 compiling

first is being bothered with some nm related trouble:

...
:info:build [37/150] /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/meson --internal symbolextractor /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_pango/pango/work/build pango/libpango-1.0.0.dylib pango/libpango-1.0.0.dylib pango/libpango-1.0.0.dylib.p/libpango-1.0.0.dylib.symbols
:info:build WARNING: ['nm'] does not work. Relinking will always happen on source changes.
:info:build error: nm: invalid argument --
:info:build Usage: nm [-agnopruUmxjlfAPL[s segname sectname] [-] [-t format] [[-arch <arch_flag>] ...] [file ...]
...

and later on finally fails during linking

...
:info:build [61/150] /opt/local/bin/gcc-mp-7  -o pango/libpangoxft-1.0.0.dylib pango/libpangoxft-1.0.0.dylib.p/pangoxft-font.c.o pango/libpangoxft-1.0.0.dylib.p/pangoxft-fontmap.c.o pango/libpangoxft-1.0.0.dylib.p/pangoxft-render.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -shared -install_name @rpath/libpangoxft-1.0.0.dylib -compatibility_version 5001 -current_version 5001.3.0 -Wl,-headerpad_max_install_names -arch ppc -pipe -Os -Wno-error,-Wimplicit-fallthrough -arch ppc -Wl,-rpath,@loader_path/ pango/libpango-1.0.0.dylib pango/libpangoft2-1.0.0.dylib -lm -L/opt/local/lib -lglib-2.0 -lintl -L/opt/local/lib -lgobject-2.0 -lglib-2.0 -lintl -L/opt/local/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -L/opt/local/lib -lfribidi -L/opt/local/lib -lharfbuzz -L/opt/local/lib -lfontconfig -lfreetype -L/opt/local/lib -lfreetype /opt/local/lib/libX11.a -L/opt/local/lib -lXrender -L/opt/local/lib -lXft -framework CoreFoundation -framework ApplicationServices -L/opt/local/lib -lcairo -L/opt/local/lib -lharfbuzz-gobject -lharfbuzz -lgobject-2.0 -lglib-2.0 -lintl
:info:build FAILED: pango/libpangoxft-1.0.0.dylib
:info:build /opt/local/bin/gcc-mp-7  -o pango/libpangoxft-1.0.0.dylib pango/libpangoxft-1.0.0.dylib.p/pangoxft-font.c.o pango/libpangoxft-1.0.0.dylib.p/pangoxft-fontmap.c.o pango/libpangoxft-1.0.0.dylib.p/pangoxft-render.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -shared -install_name@rpath/libpangoxft-1.0.0.dylib -compatibility_version 5001 -current_version 5001.3.0 -Wl,-headerpad_max_install_names -arch ppc -pipe -Os -Wno-error,-Wimplicit-fallthrough -arch ppc -Wl,-rpath,@loader_path/ pango/libpango-1.0.0.dylib pango/libpangoft2-1.0.0.dylib -lm -L/opt/local/lib -lglib-2.0 -lintl -L/opt/local/lib -lgobject-2.0 -lglib-2.0 -lintl -L/opt/local/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -L/opt/local/lib -lfribidi -L/opt/local/lib -lharfbuzz -L/opt/local/lib -lfontconfig -lfreetype -L/opt/local/lib -lfreetype /opt/local/lib/libX11.a -L/opt/local/lib -lXrender -L/opt/local/lib -lXft -framework CoreFoundation -framework ApplicationServices -L/opt/local/lib -lcairo -L/opt/local/lib -lharfbuzz-gobject -lharfbuzz -lgobject-2.0 -lglib-2.0 -lintl
:info:build Undefined symbols for architecture ppc:
:info:build Undefined symbols for architecture ppc:
:info:build   "_xcb_disconnect", referenced from:
:info:build       _OutOfMemory in libX11.a(OpenDis.o)
:info:build       _XCloseDisplay in libX11.a(ClDisplay.o)
:info:build   "_xcb_get_setup", referenced from:
:info:build       _XOpenDisplay in libX11.a(OpenDis.o)
:info:build   "_xcb_get_maximum_request_length", referenced from:
:info:build       _XOpenDisplay in libX11.a(OpenDis.o)
:info:build   "_xcb_parse_display", referenced from:
:info:build       __XConnectXCB in libX11.a(xcb_disp.o)
:info:build   "_xcb_connect_to_display_with_auth_info", referenced from:
:info:build       __XConnectXCB in libX11.a(xcb_disp.o)
:info:build   "_xcb_connect", referenced from:
:info:build       __XConnectXCB in libX11.a(xcb_disp.o)
:info:build   "_xcb_get_file_descriptor", referenced from:
:info:build       __XConnectXCB in libX11.a(xcb_disp.o)
:info:build   "_xcb_take_socket", referenced from:
:info:build       _require_socket in libX11.a(xcb_io.o)
:info:build   "_xcb_poll_for_queued_event", referenced from:
:info:build       _poll_for_event in libX11.a(xcb_io.o)
:info:build   "_xcb_poll_for_event", referenced from:
:info:build       _poll_for_event in libX11.a(xcb_io.o)
:info:build   "_xcb_poll_for_reply64", referenced from:
:info:build       _poll_for_response in libX11.a(xcb_io.o)
:info:build   "_xcb_generate_id", referenced from:
:info:build       __XAllocIDs in libX11.a(xcb_io.o)
:info:build       __XConnectXCB in libX11.a(xcb_disp.o)
:info:build   "_xcb_writev", referenced from:
:info:build       __XSend in libX11.a(xcb_io.o)
:info:build   "_xcb_wait_for_reply64", referenced from:
:info:build       __XReply in libX11.a(xcb_io.o)
:info:build   "_xcb_wait_for_event", referenced from:
:info:build       __XReadEvents in libX11.a(xcb_io.o)
:info:build   "_xcb_connection_has_error", referenced from:
:info:build       __XReadEvents in libX11.a(xcb_io.o)
:info:build       __XEventsQueued in libX11.a(xcb_io.o)
:info:build       __XConnectXCB in libX11.a(xcb_disp.o)
:info:build ld: symbol(s) not found for architecture ppc
:info:build collect2: error: ld returned 1 exit status
:info:build ninja: build stopped: subcommand failed.
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_pango/pango/work/build" && /opt/local/bin/ninja -j1 -v
:info:build Exit code: 1
...

What can I do?

Attachments (5)

main.log.gz (19.8 KB) - added by udbraumann 2 years ago.
main.log.2.gz (27.9 KB) - added by udbraumann 2 years ago.
succesful build with an xorg-libX11 without +universal switch
meson-log.txt (126.9 KB) - added by barracuda156 2 years ago.
main_ppc_Leo.log (384.8 KB) - added by barracuda156 2 years ago.
main_1.48.10_Leo.log (316.6 KB) - added by barracuda156 2 years ago.

Download all attachments as: .zip

Change History (34)

Changed 2 years ago by udbraumann

Attachment: main.log.gz added

comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

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?

comment:2 in reply to:  1 Changed 2 years ago by udbraumann

Replying to 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.

comment:3 Changed 2 years ago by mascguy (Christopher Nielsen)

Evan, can you confirm whether you're seeing anything similar for 10.5 PPC?

comment:4 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: evanmiller added

comment:5 Changed 2 years ago by mascguy (Christopher Nielsen)

Evan, thought I had CCed you, but apparently not.

Are you seeing anything similar for 10.5 PPC?

comment:6 Changed 2 years ago by evanmiller (Evan Miller)

Builds fine on 10.4 PPC

comment:7 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Cc: ballapete added

comment:8 in reply to:  3 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Replying to mascguy: I can confirm from 10.5.8 PPC that with or without -Dlt_cv_path_NM=/opt/local/bin/nm the error is reported.

comment:9 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

In 067cfe230bf2e07922061a81967a32d428681efe/macports-ports (master):

pango, pango-devel: Remove -Dlt_cv_path_NM=...

This was an autoconf override that has no effect in meson.

See: #64362
See: #64370

comment:10 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

I am trying to find out which nm when produces this report. During the (supposed, I don't know how meson or cmake work) configure phase meson finds:

Run-time dependency cairo-win32 found: NO (tried pkgconfig, framework and cmake)

but then I find:

…/pango/work/build/meson-private/cmake_cairo-win32/CMakeCache.txt:CMAKE_NM:FILEPATH=/opt/local/bin/nm
…/pango/work/build/meson-private/cmake_cairo-win32/cmake_trace.txt:{"args":["_CMAKE_NM_NAMES","nm"],"cmd":"set","file":"/opt/local/share/cmake-3.22/Modules/CMakeFindBinUtils.cmake","frame":3,"line":161,"time":1641634445.2884631}
…/pango/work/build/meson-private/cmake_cairo-win32/cmake_trace.txt:{"args":["APPEND","_CMAKE_NM_FIND_NAMES","nm","nm","nm","nm"],"cmd":"list","file":"/opt/local/share/cmake-3.22/Modules/CMakeFindBinUtils.cmake","frame":3,"line":202,"time":1641634445.324461}

The files have a recent date – why is something for MS Windows being built?

comment:11 in reply to:  6 Changed 2 years ago by udbraumann

Replying to evanmiller:

Builds fine on 10.4 PPC

Meanwhile, I have found a way to build pango @1.50.3_0 on 10.5.8 G4 PPC (but still the abovementioned nm issue is "alive"):

Since building finally stopped with linking errors with respect to libX11.a (see above), and since I noticed that xorg-libX11 is residing as fat binary on my 10.5.8 G4 PPC

$ sudo port installed xorg-libX11
The following ports are currently installed:
  xorg-libX11 @1.6.9_0+universal
  xorg-libX11 @1.7.3.1_0+universal (active)

I got the idea to build xorg-libX11 @1.7.3.1_0 without +universal (I cannot say why my installation has quite a few fat binaries, maybe I was experimenting years ago with binaries - not pango - that could be used on an Intel platform as well):

$ sudo port installed xorg-libX11
The following ports are currently installed:
  xorg-libX11 @1.6.9_0+universal
  xorg-libX11 @1.7.3.1_0 (active)
  xorg-libX11 @1.7.3.1_0+universal

Interestingly, now pango @1.50.3_0 builds:

$ sudo port -s build pango
--->  Computing dependencies for libgcc7
--->  Cleaning libgcc7
--->  Computing dependencies for gcc7
--->  Cleaning gcc7
--->  Computing dependencies for pango
--->  Fetching distfiles for pango
--->  Verifying checksums for pango
--->  Extracting pango
--->  Configuring pango
--->  Building pango

Looking into the log, the linking with the "unfatted" libX11 works now:

:info:build [61/150] /opt/local/bin/gcc-mp-7  -o pango/libpangoxft-1.0.0.dylib pango/libpangoxft-1.0.0.dylib.p/pangoxft-font.c.o pango/libpangoxft-1.0.0.dylib.p/pangoxft-fontmap.c.o pango/libpangoxft-1.0.0.dylib.p/pangoxft-render.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -shared -install_name @rpath/libpangoxft-1.0.0.dylib -compatibility_version 5001 -current_version 5001.3.0 -Wl,-headerpad_max_install_names -arch ppc -pipe -Os -Wno-error,-Wimplicit-fallthrough -arch ppc -Wl,-rpath,@loader_path/ pango/libpango-1.0.0.dylib pango/libpangoft2-1.0.0.dylib -lm -L/opt/local/lib -lglib-2.0 -lintl -L/opt/local/lib -lgobject-2.0 -lglib-2.0 -lintl -L/opt/local/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -L/opt/local/lib -lfribidi -L/opt/local/lib -lharfbuzz -L/opt/local/lib -lfontconfig -lfreetype -L/opt/local/lib -lfreetype -L/opt/local/lib -lXrender -lX11 -L/opt/local/lib -lXft -framework CoreFoundation -framework ApplicationServices -L/opt/local/lib -lcairo -L/opt/local/lib -lharfbuzz-gobject -lharfbuzz -lgobject-2.0 -lglib-2.0 -lintl

I am adding the main.log of the successful building for completeness. You will see the still existing nm issue as building step [38/150] as initially mentioned.

As soon as I activate xorg-libX11 @1.7.3.1_0+universal again, building of pango @1.50.3_0 fails again as described above in my original post.

Naive question: do you assume that this peculiar behavior can be related to the nm issue?

As there was the question which nm is being used, it is clear to me it is /opt/local/bin/nm. Which MacPorts port is containing it?

And another naive question: Why do the nms belonging to the various gccs are not working, e.g.:

$ gcc-nm-mp-7
gcc-nm-mp-7: Cannot find plugin 'liblto_plugin.so'

The latter fails also for all other versions (oldest I have is 4.8):

$ gcc-nm-mp-4.8
gcc-nm-mp-4.8: Cannot find plugin 'liblto_plugin.so'

BTW, the ars are affected as well:

$ gcc-ar-mp-7
gcc-ar-mp-7: Cannot find plugin 'liblto_plugin.so'

However, this liblto_plugin.so issue is far beyond my scope...

Very last question for today: Why do both libgcc7 and gcc7, in case either of them is being used for building, are being explicitly checking for dependencies (not only for pango, but for all other ports) and the do a cleaning:

--->  Computing dependencies for libgcc7
--->  Cleaning libgcc7
--->  Computing dependencies for gcc7
--->  Cleaning gcc7

If e.g. gcc6 is being applied, this dependency check and cleaning step is not reported to me.

Changed 2 years ago by udbraumann

Attachment: main.log.2.gz added

succesful build with an xorg-libX11 without +universal switch

comment:12 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Pete 245 /\ port provides /opt/local/bin/nm
/opt/local/bin/nm is provided by: cctools

comment:13 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

The failures with gcc-nm-mp-* I have too on PPC Mac OS X 10.5.8, Leopard.

comment:14 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

In my opinion the nm failure with invalid argument -- is due to ninja. I think there exists no version or variant of nm that uses --. I built today a few times pango +x11 +quartz and searched in all files for an occurrence of a text matching the regular expression [ :/]nm .*-- – nothing was found (OK, a probably final check is still necessary). So the -- cannot come from the pango sources but is introduced by some auxiliary programme. CMake seems to be IMO more of a framework that is used early while ninja is doing the real job of controlling the build (and its check) process. So to me it's likely ninja that introduces the --.

I'll try to build on Monterey (macOS 12.1), and possibly High Sierra (macOS 10.13.6) too. I also would like to find out whether naming the nm binary explicitly is necessary.

comment:15 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

On Monterey (macOS 12.1) I see one reasonable fault: -Wno-error,-Wimplicit-fallthrough. The correct syntax for Clang 13 is -Wno-error=-Wimplicit-fallthrough. (I think, https://clang.llvm.org/docs/UsersManual.html#cmdoption-wno-error.)

comment:16 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

On High Sierra (macOS 10.13.6) only one problem is visible, similar to Monterey: Apple's Clang 10 does not accept -Wno-error,-Wimplicit-fallthrough. Here too nm plays no role, stays invisible, as do CMake and Ninja.

comment:17 Changed 2 years ago by kencu (Ken)

pango installs without any trouble for me on 10.5 PPC:

$ port -v installed pango
The following ports are currently installed:
  pango @1.50.3_0+quartz+x11 (active) requested_variants='' platform='darwin 9' archs='ppc' date='2022-01-12T00:53:16-0800'

there is an interesting difference between my link line (that succeeds) and yours (that fails) that looks to be the issue to be explored:

mine (succeeds):
[55/150] /opt/local/bin/gcc-mp-7  -o pango/libpangoxft-1.0.0.dylib pango/libpangoxft-1.0.0.dylib.p/pangoxft-font.c.o pango/libpangoxft-1.0.0.dylib.p/pangoxft-fontmap.c.o pango/libpangoxft-1.0.0.dylib.p/pangoxft-render.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -shared -install_name @rpath/libpangoxft-1.0.0.dylib -compatibility_version 5001 -current_version 5001.3.0 -Wl,-headerpad_max_install_names -arch ppc -pipe -Os -Wno-error,-Wimplicit-fallthrough -arch ppc -Wl,-rpath,@loader_path/ pango/libpango-1.0.0.dylib pango/libpangoft2-1.0.0.dylib -lm -L/opt/local/lib -lglib-2.0 -lintl -L/opt/local/lib -lgobject-2.0 -lglib-2.0 -lintl -L/opt/local/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -L/opt/local/lib -lfribidi -L/opt/local/lib -lharfbuzz -L/opt/local/lib -lfontconfig -lfreetype -L/opt/local/lib -lfreetype -L/opt/local/lib -lXrender -lX11 -L/opt/local/lib -lXft -framework CoreFoundation -framework ApplicationServices -L/opt/local/lib -lcairo -L/opt/local/lib -lharfbuzz-gobject -lharfbuzz -lgobject-2.0 -lglib-2.0 -lintl

yours (fails)
[61/150] /opt/local/bin/gcc-mp-7  -o pango/libpangoxft-1.0.0.dylib pango/libpangoxft-1.0.0.dylib.p/pangoxft-font.c.o pango/libpangoxft-1.0.0.dylib.p/pangoxft-fontmap.c.o pango/libpangoxft-1.0.0.dylib.p/pangoxft-render.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -shared -install_name @rpath/libpangoxft-1.0.0.dylib -compatibility_version 5001 -current_version 5001.3.0 -Wl,-headerpad_max_install_names -arch ppc -pipe -Os -Wno-error,-Wimplicit-fallthrough -arch ppc -Wl,-rpath,@loader_path/ pango/libpango-1.0.0.dylib pango/libpangoft2-1.0.0.dylib -lm -L/opt/local/lib -lglib-2.0 -lintl -L/opt/local/lib -lgobject-2.0 -lglib-2.0 -lintl -L/opt/local/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -L/opt/local/lib -lfribidi -L/opt/local/lib -lharfbuzz -L/opt/local/lib -lfontconfig -lfreetype -L/opt/local/lib -lfreetype /opt/local/lib/libX11.a -L/opt/local/lib -lXrender -L/opt/local/lib -lXft -framework CoreFoundation -framework ApplicationServices -L/opt/local/lib -lcairo -L/opt/local/lib -lharfbuzz-gobject -lharfbuzz -lgobject-2.0 -lglib-2.0 -lintl

Notice that I don't have this: /opt/local/lib/libX11.a but I do have this instead -lX11 and I believe that is why mine works and yours does not.

Perhaps you can look into why that is different on your system.

comment:18 Changed 2 years ago by kencu (Ken)

I suspect the warning from meson about nm not accepting a certain argument is irrelevant, by the way, as I do see that here and there too, but the build still succeeds.

comment:19 in reply to:  1 Changed 2 years ago by kencu (Ken)

Replying to ryandesign:

I thought this was supposed to have been fixed by #60253 already.

That NM fix in #60253 corrects an error building on < 10.6 with a macports-clang-N compiler, as the objects produced by a newer macports-clang-N compiler are in a format that is too new for the old /usr/bin/nm on < 10.6 to process.

So it really only fixes building on Leopard Intel, where a macports-clang-N compiler is used to build pango. Aside: Riccardo is a heavy user of Leopard Intel, as he has a laptop he really like to use that runs gimp, that he uses for his photography interests (look him up on the internet sometime, very interesting).

When I added a block like that to a Portfile, I usually tried to add in a restriction to use that newer NM only when building with a macports-clang-N compiler for this reason.

comment:20 in reply to:  17 ; Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Replying to kencu:

Notice that I don't have this: /opt/local/lib/libX11.a but I do have this instead -lX11 and I believe that is why mine works and yours does not.

So it's likely that just a sym-link, /opt/local/lib/libX11.dylib, is missing. I have:

-rwxr-xr-x  1 root  admin  1152868  5 Jan 19:30 /opt/local/lib/libX11.6.dylib
-rw-r--r--  1 root  admin  1541792  5 Jan 19:30 /opt/local/lib/libX11.a
lrwxr-xr-x  1 root  admin       14  5 Jan 19:30 /opt/local/lib/libX11.dylib -> libX11.6.dylib
-rwxr-xr-x  1 root  admin      904  5 Jan 19:30 /opt/local/lib/libX11.la
pete 265 /\ port provides /opt/local/lib/libX11.dylib 
/opt/local/lib/libX11.dylib is provided by: xorg-libX11

comment:21 in reply to:  20 Changed 2 years ago by kencu (Ken)

Replying to ballapete:

So it's likely that just a sym-link, /opt/local/lib/libX11.dylib, is missing. I have:

-rwxr-xr-x  1 root  admin  1152868  5 Jan 19:30 /opt/local/lib/libX11.6.dylib
-rw-r--r--  1 root  admin  1541792  5 Jan 19:30 /opt/local/lib/libX11.a
lrwxr-xr-x  1 root  admin       14  5 Jan 19:30 /opt/local/lib/libX11.dylib -> libX11.6.dylib
-rwxr-xr-x  1 root  admin      904  5 Jan 19:30 /opt/local/lib/libX11.la

/opt/local/lib/libX11.dylib seems to me to be sitting right there for you.

comment:22 in reply to:  17 ; Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to kencu:

Notice that I don't have this: /opt/local/lib/libX11.a but I do have this instead -lX11 and I believe that is why mine works and yours does not.

Right. libX11 needs libxcb. When you link with dynamic libraries, that's taken care of for you. You link with libX11.dylib, libX11.dylib links with libxcb.dylib, and all the symbols are there. But when you link with a static library libX11.a, you must also explicitly link with all the libraries libX11.a requires, such as libxcb.a.

But we don't want to use the static library. We want to use the dynamic library. We need to figure out why your build chose to use the static library. Can you attach the meson log file?

comment:23 Changed 2 years ago by kencu (Ken)

FYI - might be of interest to see if deactivating a previous pango (if there is one installed) fixes the build. That is a very frequent cause for troubles. I installed pango without a previous one installed.

comment:24 in reply to:  3 ; Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Here is another occurrence on PPC Tiger, Mac OS X 10.4.11:

[10/35] /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/meson --internal symbolextractor /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libepoxy/libepoxy/work/build src/libepoxy.0.dylib src/libepoxy.0.dylib src/libepoxy.0.dylib.p/libepoxy.0.dylib.symbols 
WARNING: ['nm'] does not work. Relinking will always happen on source changes.
error: nm: invalid argument --
Usage: nm [-agnopruUmxjlfAP[s segname sectname] [-] [-t format] [[-arch <arch_flag>] ...] [file ...]

With libepoxy @1.5.9.

comment:25 in reply to:  23 Changed 2 years ago by barracuda156

Replying to kencu:

FYI - might be of interest to see if deactivating a previous pango (if there is one installed) fixes the build. That is a very frequent cause for troubles. I installed pango without a previous one installed.

I have no pango installed on Leopard, and it nevertheless fails to build:

[55/151] /opt/local/bin/gcc-mp-7  -o pango/libpangoxft-1.0.0.dylib pango/libpangoxft-1.0.0.dylib.p/pangoxft-font.c.o pango/libpangoxft-1.0.0.dylib.p/pangoxft-fontmap.c.o pango/libpangoxft-1.0.0.dylib.p/pangoxft-render.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -shared -install_name @rpath/libpangoxft-1.0.0.dylib -compatibility_version 5001 -current_version 5001.5.0 -Wl,-headerpad_max_install_names -arch ppc -pipe -Os -Wno-error,-Wimplicit-fallthrough -arch ppc -Wl,-rpath,@loader_path/ pango/libpango-1.0.0.dylib pango/libpangoft2-1.0.0.dylib -lm -L/opt/local/lib -lglib-2.0 -lintl -L/opt/local/lib -lgobject-2.0 -lglib-2.0 -lintl -L/opt/local/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl /opt/local/lib/libfribidi.a -L/opt/local/lib -lharfbuzz -L/opt/local/lib -lfontconfig -lfreetype -L/opt/local/lib -lfreetype /opt/local/lib/libXrender.a /opt/local/lib/libX11.a -L/opt/local/lib -lXft -framework CoreFoundation -framework ApplicationServices -L/opt/local/lib -lcairo -L/opt/local/lib -lharfbuzz-gobject -lharfbuzz -lgobject-2.0 -lglib-2.0 -lintl
FAILED: pango/libpangoxft-1.0.0.dylib 
/opt/local/bin/gcc-mp-7  -o pango/libpangoxft-1.0.0.dylib pango/libpangoxft-1.0.0.dylib.p/pangoxft-font.c.o pango/libpangoxft-1.0.0.dylib.p/pangoxft-fontmap.c.o pango/libpangoxft-1.0.0.dylib.p/pangoxft-render.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -shared -install_name @rpath/libpangoxft-1.0.0.dylib -compatibility_version 5001 -current_version 5001.5.0 -Wl,-headerpad_max_install_names -arch ppc -pipe -Os -Wno-error,-Wimplicit-fallthrough -arch ppc -Wl,-rpath,@loader_path/ pango/libpango-1.0.0.dylib pango/libpangoft2-1.0.0.dylib -lm -L/opt/local/lib -lglib-2.0 -lintl -L/opt/local/lib -lgobject-2.0 -lglib-2.0 -lintl -L/opt/local/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl /opt/local/lib/libfribidi.a -L/opt/local/lib -lharfbuzz -L/opt/local/lib -lfontconfig -lfreetype -L/opt/local/lib -lfreetype /opt/local/lib/libXrender.a /opt/local/lib/libX11.a -L/opt/local/lib -lXft -framework CoreFoundation -framework ApplicationServices -L/opt/local/lib -lcairo -L/opt/local/lib -lharfbuzz-gobject -lharfbuzz -lgobject-2.0 -lglib-2.0 -lintl
Undefined symbols:
  "_xcb_generate_id", referenced from:
      __XAllocIDs in libX11.a(xcb_io.o)
      __XConnectXCB in libX11.a(xcb_disp.o)
  "_xcb_take_socket", referenced from:
      _require_socket in libX11.a(xcb_io.o)
  "_xcb_wait_for_reply64", referenced from:
      __XReply in libX11.a(xcb_io.o)
  "_xcb_poll_for_queued_event", referenced from:
      _poll_for_event in libX11.a(xcb_io.o)
  "_xcb_poll_for_event", referenced from:
      _poll_for_event in libX11.a(xcb_io.o)
  "_xcb_parse_display", referenced from:
      __XConnectXCB in libX11.a(xcb_disp.o)
  "_xcb_get_setup", referenced from:
      _XOpenDisplay in libX11.a(OpenDis.o)
  "_xcb_connect_to_display_with_auth_info", referenced from:
      __XConnectXCB in libX11.a(xcb_disp.o)
  "_xcb_connection_has_error", referenced from:
      __XReadEvents in libX11.a(xcb_io.o)
      __XEventsQueued in libX11.a(xcb_io.o)
      __XConnectXCB in libX11.a(xcb_disp.o)
  "_xcb_disconnect", referenced from:
      _OutOfMemory in libX11.a(OpenDis.o)
      _XCloseDisplay in libX11.a(ClDisplay.o)
  "_xcb_get_file_descriptor", referenced from:
      __XConnectXCB in libX11.a(xcb_disp.o)
  "_xcb_connect", referenced from:
      __XConnectXCB in libX11.a(xcb_disp.o)
  "_xcb_poll_for_reply64", referenced from:
      _poll_for_response in libX11.a(xcb_io.o)
  "_xcb_get_maximum_request_length", referenced from:
      _XOpenDisplay in libX11.a(OpenDis.o)
  "_xcb_wait_for_event", referenced from:
      __XReadEvents in libX11.a(xcb_io.o)
  "_xcb_writev", referenced from:
      __XSend in libX11.a(xcb_io.o)
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
[56/151] /opt/local/bin/gcc-mp-7 -Ipango/libpangocairo-1.0.0.dylib.p -Ipango -I../pango-1.50.5/pango -I. -I../pango-1.50.5 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/fribidi -I/opt/local/include/harfbuzz -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/ossp -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include -fdiagnostics-color=always -Wall -Winvalid-pch -std=gnu99 -O2 -g -D_POSIX_C_SOURCE=200809L -D_POSIX_THREAD_SAFE_FUNCTIONS -D_GNU_SOURCE -pipe -Os -Wno-error,-Wimplicit-fallthrough -arch ppc -Wno-missing-include-dirs -Wduplicated-branches -Wduplicated-cond -Wformat=2 -Wformat-nonliteral -Wformat-security -Wignored-qualifiers -Wimplicit-function-declaration -Wlogical-op -Wmisleading-indentation -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wuninitialized -Wunused -Werror=address -Werror=array-bounds -Werror=empty-body -Werror=implicit -Werror=implicit-fallthrough -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=missing-declarations -Werror=missing-prototypes -Werror=nonnull -Werror=pointer-to-int-cast -Werror=redundant-decls -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=vla -Werror=write-strings -fno-strict-aliasing -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wformat-nonliteral -Wformat-security -Wunused -Wcast-align -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-include-dirs -Wlogical-op -Wno-uninitialized -Wno-shadow -Werror=implicit-fallthrough -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=empty-body -Werror=write-strings -Werror=unused-but-set-variable -Wundef -Werror=redundant-decls -fvisibility=hidden -DPANGO_ENABLE_DEBUG '-DG_LOG_DOMAIN="Pango"' -DG_LOG_USE_STRUCTURED=1 -DPANGO_COMPILATION '-DSYSCONFDIR="/opt/local/etc"' '-DLIBDIR="/opt/local/lib"' -DPANGO_DISABLE_DEPRECATION_WARNINGS -MD -MQ pango/libpangocairo-1.0.0.dylib.p/pangocairo-fontmap.c.o -MF pango/libpangocairo-1.0.0.dylib.p/pangocairo-fontmap.c.o.d -o pango/libpangocairo-1.0.0.dylib.p/pangocairo-fontmap.c.o -c ../pango-1.50.5/pango/pangocairo-fontmap.c
[57/151] /opt/local/bin/gcc-mp-7 -Ipango/libpangocairo-1.0.0.dylib.p -Ipango -I../pango-1.50.5/pango -I. -I../pango-1.50.5 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/fribidi -I/opt/local/include/harfbuzz -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/ossp -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include -fdiagnostics-color=always -Wall -Winvalid-pch -std=gnu99 -O2 -g -D_POSIX_C_SOURCE=200809L -D_POSIX_THREAD_SAFE_FUNCTIONS -D_GNU_SOURCE -pipe -Os -Wno-error,-Wimplicit-fallthrough -arch ppc -Wno-missing-include-dirs -Wduplicated-branches -Wduplicated-cond -Wformat=2 -Wformat-nonliteral -Wformat-security -Wignored-qualifiers -Wimplicit-function-declaration -Wlogical-op -Wmisleading-indentation -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wuninitialized -Wunused -Werror=address -Werror=array-bounds -Werror=empty-body -Werror=implicit -Werror=implicit-fallthrough -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=missing-declarations -Werror=missing-prototypes -Werror=nonnull -Werror=pointer-to-int-cast -Werror=redundant-decls -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=vla -Werror=write-strings -fno-strict-aliasing -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wformat-nonliteral -Wformat-security -Wunused -Wcast-align -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-include-dirs -Wlogical-op -Wno-uninitialized -Wno-shadow -Werror=implicit-fallthrough -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=empty-body -Werror=write-strings -Werror=unused-but-set-variable -Wundef -Werror=redundant-decls -fvisibility=hidden -DPANGO_ENABLE_DEBUG '-DG_LOG_DOMAIN="Pango"' -DG_LOG_USE_STRUCTURED=1 -DPANGO_COMPILATION '-DSYSCONFDIR="/opt/local/etc"' '-DLIBDIR="/opt/local/lib"' -DPANGO_DISABLE_DEPRECATION_WARNINGS -MD -MQ pango/libpangocairo-1.0.0.dylib.p/pangocairo-font.c.o -MF pango/libpangocairo-1.0.0.dylib.p/pangocairo-font.c.o.d -o pango/libpangocairo-1.0.0.dylib.p/pangocairo-font.c.o -c ../pango-1.50.5/pango/pangocairo-font.c
[58/151] /opt/local/bin/g-ir-scanner --no-libtool --namespace=Pango --nsversion=1.0 --warn-all --output pango/Pango-1.0.gir --c-include=pango/pango.h --quiet -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_pango/pango/work/pango-1.50.5/pango -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_pango/pango/work/build/pango -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_pango/pango/work/build/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_pango/pango/work/pango-1.50.5/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_pango/pango/work/build/pango/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_pango/pango/work/pango-1.50.5/pango/. --filelist=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_pango/pango/work/build/pango/libpango-1.0.0.dylib.p/Pango_1.0_gir_filelist --include=HarfBuzz-0.0 --include=GObject-2.0 --include=cairo-1.0 --symbol-prefix=pango --identifier-prefix=Pango --pkg-export=pango --cflags-begin -D_POSIX_C_SOURCE=200809L -D_POSIX_THREAD_SAFE_FUNCTIONS -D_GNU_SOURCE -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_pango/pango/work/build/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_pango/pango/work/pango-1.50.5/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_pango/pango/work/build/pango/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_pango/pango/work/pango-1.50.5/pango/. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/fribidi -I/opt/local/include/harfbuzz -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/ossp -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/gobject-introspection-1.0 -I/opt/local/include --cflags-end --add-include-path=/opt/local/share/gir-1.0 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_pango/pango/work/build/pango --library pango-1.0 -L/opt/local/lib --extra-library=m -L/opt/local/lib --extra-library=glib-2.0 --extra-library=intl --extra-library=gobject-2.0 --extra-library=gio-2.0 --extra-library=fribidi --extra-library=harfbuzz --extra-library=fontconfig --extra-library=freetype --extra-library=Xrender --extra-library=X11 --extra-library=Xft --extra-library=cairo --extra-library=harfbuzz-gobject --extra-library=girepository-1.0 --sources-top-dirs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_pango/pango/work/pango-1.50.5/subprojects/ --sources-top-dirs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_pango/pango/work/build/subprojects/
ninja: build stopped: subcommand failed.
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_pango/pango/work/build" && /opt/local/bin/ninja -j4 -v 
Exit code: 1
Error: Failed to build pango: command execution failed

Interestingly, at the same time it does build on Tiger and on 10A190.

comment:26 in reply to:  22 Changed 2 years ago by barracuda156

Replying to ryandesign:

Replying to kencu: Can you attach the meson log file?

It got a lot of arch errors:

Found ninja-1.10.2 at /opt/local/bin/ninja
Rejected /opt/local/lib/libglib-2.0.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libglib-2.0.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libglib-2.0.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libglib-2.0.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libintl.a, supports ['ppc7400', 'ppc64'] but need ppc
Rejected /opt/local/lib/libintl.a, supports ['ppc7400', 'ppc64'] but need ppc
Rejected /opt/local/lib/libintl.dylib, supports ['ppc7400', 'ppc64'] but need ppc
Rejected /opt/local/lib/libintl.dylib, supports ['ppc7400', 'ppc64'] but need ppc
Rejected /opt/local/lib/libgobject-2.0.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libgobject-2.0.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libgobject-2.0.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libgobject-2.0.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libgio-2.0.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libgio-2.0.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libgio-2.0.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libgio-2.0.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libharfbuzz.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libharfbuzz.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libfontconfig.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libfontconfig.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libfontconfig.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libfontconfig.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libfreetype.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libfreetype.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libfreetype.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libfreetype.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libXft.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libXft.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libXft.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libXft.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libcairo.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libcairo.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libcairo.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libcairo.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libharfbuzz-gobject.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libharfbuzz-gobject.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libglib-2.0.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libglib-2.0.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libglib-2.0.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libglib-2.0.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libintl.a, supports ['ppc7400', 'ppc64'] but need ppc
Rejected /opt/local/lib/libintl.a, supports ['ppc7400', 'ppc64'] but need ppc
Rejected /opt/local/lib/libintl.dylib, supports ['ppc7400', 'ppc64'] but need ppc
Rejected /opt/local/lib/libintl.dylib, supports ['ppc7400', 'ppc64'] but need ppc
Rejected /opt/local/lib/libgobject-2.0.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libgobject-2.0.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libgobject-2.0.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libgobject-2.0.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libgio-2.0.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libgio-2.0.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libgio-2.0.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libgio-2.0.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libharfbuzz.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libharfbuzz.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libfontconfig.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libfontconfig.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libfontconfig.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libfontconfig.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libfreetype.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libfreetype.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libfreetype.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libfreetype.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libXft.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libXft.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libXft.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libXft.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libcairo.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libcairo.a, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libcairo.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libcairo.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libharfbuzz-gobject.dylib, supports ['ppc7400'] but need ppc
Rejected /opt/local/lib/libharfbuzz-gobject.dylib, supports ['ppc7400'] but need ppc

  1. S. As a side note, I got these kind of errors when trying to build gexiv2 @0.12.3 (which also uses meson) on 10.6 PPC. Errors above are from 10.5.8, of course.

Changed 2 years ago by barracuda156

Attachment: meson-log.txt added

Changed 2 years ago by barracuda156

Attachment: main_ppc_Leo.log added

comment:27 Changed 2 years ago by barracuda156

By the way pango-devel also fails to build, I guess we should add it to the ticket.

And in fact, even @1.48.10 fails to build now in the same manner:

Last edited 2 years ago by barracuda156 (previous) (diff)

Changed 2 years ago by barracuda156

Attachment: main_1.48.10_Leo.log added

comment:28 Changed 2 years ago by kencu (Ken)

the "ppc" vs "ppc7400" business is explained quite well here <https://stackoverflow.com/questions/32281472/cause-of-change-from-arch-ppc-to-arch-ppc7400> with a reasonably easy workaround to try.

That is a different issue than the libX11 static vs dynamic library being linked in issue above that seems to be the cause of this ticket's troubles.

comment:29 in reply to:  24 Changed 2 years ago by kencu (Ken)

Replying to ballapete:

Here is another occurrence on PPC Tiger, Mac OS X 10.4.11:

[10/35] /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/meson --internal symbolextractor /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libepoxy/libepoxy/work/build src/libepoxy.0.dylib src/libepoxy.0.dylib src/libepoxy.0.dylib.p/libepoxy.0.dylib.symbols 
WARNING: ['nm'] does not work. Relinking will always happen on source changes.
error: nm: invalid argument --
Usage: nm [-agnopruUmxjlfAP[s segname sectname] [-] [-t format] [[-arch <arch_flag>] ...] [file ...]

With libepoxy @1.5.9.

Just so we're clear, I think this is just noise, and not the cause of any build failure.

Note: See TracTickets for help on using tickets.