[MacPorts] #72364: meson does not respect MacPorts build_arch
MacPorts
noreply at macports.org
Fri Apr 18 20:37:41 UTC 2025
#72364: meson does not respect MacPorts build_arch
--------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: ppc64 | Port: meson
--------------------------+--------------------
Arch value is not passed to `meson`. Instead, it makes some guesswork, and
fails, when the build is for ppc64:
{{{
---> Building albafetch
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_albafetch/albafetch/work
/albafetch-430291185a85a018bea5832e6dac5ccbad1c3f6f" && /usr/bin/make -j2
-w all
make: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_albafetch/albafetch/work
/albafetch-430291185a85a018bea5832e6dac5ccbad1c3f6f'
meson setup build
The Meson build system
Version: 1.7.2
Source dir:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_albafetch/albafetch/work
/albafetch-430291185a85a018bea5832e6dac5ccbad1c3f6f
Build dir:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_albafetch/albafetch/work
/albafetch-430291185a85a018bea5832e6dac5ccbad1c3f6f/build
Build type: native build
Project name: albafetch
Project version: 4.1
C compiler for the host machine: cc (gcc 4.0.1 "powerpc-apple-
darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493)")
C linker for the host machine: cc ld64 85.2.1
Host machine cpu family: ppc
Host machine cpu: power macintosh
Run-time dependency appleframeworks found: YES (Foundation, IOKit)
meson.build:49: WARNING: add_languages is missing native:, assuming
languages are wanted for both host and build.
. . .
[62/64] Linking target albafetch
FAILED: albafetch
gcc -o albafetch albafetch.p/src_queue.c.o albafetch.p/src_utils.c.o
albafetch.p/src_info_battery.c.o albafetch.p/src_info_bios.c.o
albafetch.p/src_info_colors.c.o albafetch.p/src_info_cpu.c.o
albafetch.p/src_info_date.c.o albafetch.p/src_info_desktop.c.o
albafetch.p/src_info_gpu.c.o albafetch.p/src_info_gtk_theme.c.o
albafetch.p/src_info_icon_theme.c.o albafetch.p/src_info_cursor_theme.c.o
albafetch.p/src_info_host.c.o albafetch.p/src_info_hostname.c.o
albafetch.p/src_info_kernel.c.o albafetch.p/src_info_light_colors.c.o
albafetch.p/src_info_local_ip.c.o albafetch.p/src_info_login_shell.c.o
albafetch.p/src_info_memory.c.o albafetch.p/src_info_os.c.o
albafetch.p/src_info_packages.c.o albafetch.p/src_info_public_ip.c.o
albafetch.p/src_info_pwd.c.o albafetch.p/src_info_shell.c.o
albafetch.p/src_info_term.c.o albafetch.p/src_info_uptime.c.o
albafetch.p/src_info_user.c.o albafetch.p/src_macos_infos.c.o
albafetch.p/src_bsdwrap.c.o albafetch.p/src_macos_gpu_string.m.o
albafetch.p/src_main.c.o -Wl,-dead_strip_dylibs
-Wl,-headerpad_max_install_names -lMacportsLegacySupport -framework
Foundation -framework IOKit
ld warning: in /opt/local/lib/libMacportsLegacySupport.dylib, file is not
of required architecture
Undefined symbols:
"_getline", referenced from:
_file_to_logo in src_utils.c.o
_file_to_logo in src_utils.c.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
}}}
This is just an example. With `glib2` I also got errors.
A hack around would be to use a cross file.
The bug should be fixed in PG (if not in `meson` itself), not per-port, of
course.
--
Ticket URL: <https://trac.macports.org/ticket/72364>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list