<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class="">Early MacBook Pro (13", mid 2010), High Sierra 10.13.6 (as far as it will <br class="">go).<br class=""><br class="">When doing my weekly port upgrade, it bombs out with:<br class=""><br class=""> ---> Building glib2 <br class=""> Error: Failed to build glib2: command execution failed <br class=""> Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/main.log for details.<br class=""><br class="">I see a lot of warnings in main.log such as:<br class=""><br class=""> :info:build ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)<br class=""><br class="">Is this some insidious attempt by Cupertino to force me to buy an M series?</blockquote><br class=""></div><div>Not insidious, Apple doesn't even know about it, and warnings are not errors (although they may be treated as errors if the creator of the build procedure - not necessarily the port maintainer - chooses to).</div><div><br class=""></div><div>A library, almost certainly libdbus-1 (provided by the dbus port) does not support i386 (32-bit) but only x86_64 (64-bit). I verified that with</div><div><br class=""></div><div><div>sh-3.2$ nm /opt/local/lib/libdbus-1.dylib|grep _dbus_message_set_path</div><div>000000000001483c T _dbus_message_set_path</div><div class=""><br class=""></div><div class="">(hex may vary, but " T " should be there indicating the symbol is a defined text (function name, usually) symbol)</div><div class=""><br class=""></div></div><div>That may mean you tried to install glib2 with +universal but did not previously install dbus with +universal. Or something like that which has similar results.</div><div><br class=""></div><div>Pretty sure that dbus CAN be installed universal, because I have it that way on my Snow Leopard VM. Apparently I gave up on installing ports with +universal as too much bother on Mojave even though it's the last OS that supports i386, and of course I don't have i386 or universal builds on later OSs that don't support that. (I don't have anything running High Sierra, so that's as close as I can get to your situation)</div><div><br class=""></div><div>Building dbus +universal will likely require that every port it depends on (at least at runtime) is also built +universal, and it depends on quite a few ports. No guarantee that one of them won't be a show-stopper for some reason or other (although since I had it built on that Snow Leopard VM, it should likely be possible, if very slow).</div><div><br class=""></div><div>You really have to look more closely at the log, look for the first line (other than the fetching of the downloads, which can fail on some locations before succeeding on one of them, i.e. http 404 errors don't count) that has the word "error" (case insensitive and followed by a colon to exclude mentions of error handing routines and limit it to error messages). And then look back a bit from there to see what failed.</div><div><br class=""></div><div>In your case (with the "error:" in question and the prior reference to -ldbus-1 highlighted in red):</div><div><br class=""></div><div><div>:info:build [827/1188] /usr/bin/clang -o gio/tests/gdbus-serialization gio/tests/gdbus-serialization.p/gdbus-serialization.c.o gio/tests/gdbus-serialization.p/gdbus-tests.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -Wl,-headerpad_max_install_names -lresolv -bind_at_load -arch i386 -pipe -Os -Wno-deprecated-declarations -arch i386 -Wl,-rpath,@loader_path/../../glib -Wl,-rpath,@loader_path/../../gmodule -Wl,-rpath,@loader_path/../../gobject -Wl,-rpath,@loader_path/.. -Wl,-rpath,/opt/local/lib glib/libglib-2.0.0.dylib gmodule/libgmodule-2.0.0.dylib gobject/libgobject-2.0.0.dylib gio/libgio-2.0.0.dylib -lintl -L/opt/local/lib -ldbus-1</div><div>:info:build FAILED: gio/tests/gdbus-serialization </div><div>:info:build /usr/bin/clang -o gio/tests/gdbus-serialization gio/tests/gdbus-serialization.p/gdbus-serialization.c.o gio/tests/gdbus-serialization.p/gdbus-tests.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -Wl,-headerpad_max_install_names -lresolv -bind_at_load -arch i386 -pipe -Os -Wno-deprecated-declarations -arch i386 -Wl,-rpath,@loader_path/../../glib -Wl,-rpath,@loader_path/../../gmodule -Wl,-rpath,@loader_path/../../gobject -Wl,-rpath,@loader_path/.. -Wl,-rpath,/opt/local/lib glib/libglib-2.0.0.dylib gmodule/libgmodule-2.0.0.dylib gobject/libgobject-2.0.0.dylib gio/libgio-2.0.0.dylib -lintl -L/opt/local/lib <font color="#ff2600" class="">-ldbus-1</font></div><div>:info:build ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)</div><div>:info:build ld: warning: ignoring file /opt/local/lib/libdbus-1.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libdbus-1.dylib</div><div>:info:build Undefined symbols for architecture i386:</div><div>:info:build "_dbus_error_free", referenced from:</div><div>:info:build _get_and_check_serialization in gdbus-serialization.c.o</div><div><i class="">[many more undefined symbols omitted here]</i></div><div>:info:build ld: symbol(s) not found for architecture i386</div><div>:info:build clang: <font color="#ff2600" class="">error:</font> linker command failed with exit code 1 (use -v to see invocation)</div><div>:info:build [828/1188] /usr/bin/clang -Igio/tests/gdbus-server-auth.p -Igio/tests -I../glib-2.72.3-i386/gio/tests -I. -I../glib-2.72.3-i386 -Iglib -I../glib-2.72.3-i386/glib -Igmodule -I../glib-2.72.3-i386/gmodule -Igobject -I../glib-2.72.3-i386/gobject -Igio -I../glib-2.72.3-i386/gio -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include -fcolor-diagnostics -std=gnu99 -O2 -g -D_GNU_SOURCE -fno-strict-aliasing -DG_ENABLE_DEBUG -Wimplicit-fallthrough -Wunused -Wno-unused-parameter -Wno-pedantic -Wno-format-zero-length -Wno-variadic-macros -Werror=format=2 -Werror=init-self -Werror=missing-include-dirs -Werror=pointer-arith -Wstrict-prototypes -Wno-bad-function-cast -Wno-declaration-after-statement -Werror=implicit-function-declaration -Werror=missing-prototypes -pipe -Os -fstrict-aliasing -Wno-deprecated-declarations -arch i386 '-DG_LOG_DOMAIN="GLib-GIO"' '-DGLIB_MKENUMS="gobject/glib-mkenums"' '-DGLIB_COMPILE_SCHEMAS="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/build-i386/gio/glib-compile-schemas"' -UG_DISABLE_ASSERT -MD -MQ gio/tests/gdbus-server-auth.p/gdbus-server-auth.c.o -MF gio/tests/gdbus-server-auth.p/gdbus-server-auth.c.o.d -o gio/tests/gdbus-server-auth.p/gdbus-server-auth.c.o -c ../glib-2.72.3-i386/gio/tests/gdbus-server-auth.c</div><div>:info:build ninja: build stopped: subcommand failed.</div><div>:info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/build-i386" && /opt/local/bin/ninja -j2 --verbose -v </div><div>:info:build Exit code: 1</div><div>:error:build Failed to build glib2: command execution failed</div><div>:debug:build Error code: NONE</div><div>:debug:build Backtrace: command execution failed</div><div>:debug:build while executing</div><div>:debug:build "$procedure $targetname"</div><div>:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/main.log for details.</div><div class=""><br class=""></div></div></body></html>