[MacPorts] #69266: libpixman @0.42.2 does not build on PPC Mac OS X 10.4.11, Tiger, because /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld does not understand --version
MacPorts
noreply at macports.org
Tue Feb 20 12:31:38 UTC 2024
#69266: libpixman @0.42.2 does not build on PPC Mac OS X 10.4.11, Tiger, because
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld does not understand
--version
------------------------+-----------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.9.1
Resolution: | Keywords: tiger ppc
Port: libpixman |
------------------------+-----------------------
Comment (by ballapete):
I tried to `port -vs upgrade libpixman configure.compiler=macports-gcc-7`
and came up to here:
{{{
[33/113] /opt/local/bin/gcc-mp-7 -o pixman/libpixman-1.0.dylib
pixman/libpixman-1.0.dylib.p/pixman.c.o pixman/libpixman-1.0.dylib.p
/pixman-access.c.o pixman/libpixman-1.0.dylib.p/pixman-access-
accessors.c.o pixman/libpixman-1.0.dylib.p/pixman-bits-image.c.o
pixman/libpixman-1.0.dylib.p/pixman-combine32.c.o
pixman/libpixman-1.0.dylib.p/pixman-combine-float.c.o
pixman/libpixman-1.0.dylib.p/pixman-conical-gradient.c.o
pixman/libpixman-1.0.dylib.p/pixman-filter.c.o
pixman/libpixman-1.0.dylib.p/pixman-x86.c.o pixman/libpixman-1.0.dylib.p
/pixman-mips.c.o pixman/libpixman-1.0.dylib.p/pixman-arm.c.o
pixman/libpixman-1.0.dylib.p/pixman-ppc.c.o pixman/libpixman-1.0.dylib.p
/pixman-edge.c.o pixman/libpixman-1.0.dylib.p/pixman-edge-accessors.c.o
pixman/libpixman-1.0.dylib.p/pixman-fast-path.c.o
pixman/libpixman-1.0.dylib.p/pixman-glyph.c.o pixman/libpixman-1.0.dylib.p
/pixman-general.c.o pixman/libpixman-1.0.dylib.p/pixman-gradient-
walker.c.o pixman/libpixman-1.0.dylib.p/pixman-image.c.o
pixman/libpixman-1.0.dylib.p/pixman-implementation.c.o
pixman/libpixman-1.0.dylib.p/pixman-linear-gradient.c.o
pixman/libpixman-1.0.dylib.p/pixman-matrix.c.o
pixman/libpixman-1.0.dylib.p/pixman-noop.c.o pixman/libpixman-1.0.dylib.p
/pixman-radial-gradient.c.o pixman/libpixman-1.0.dylib.p/pixman-
region16.c.o pixman/libpixman-1.0.dylib.p/pixman-region32.c.o
pixman/libpixman-1.0.dylib.p/pixman-solid-fill.c.o
pixman/libpixman-1.0.dylib.p/pixman-timer.c.o pixman/libpixman-1.0.dylib.p
/pixman-trap.c.o pixman/libpixman-1.0.dylib.p/pixman-utils.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 @loader_path/libpixman-1.0.dylib -compatibility_version
39.0.0 -current_version 42.0.0 -Wl,-headerpad_max_install_names -arch ppc
-pipe -Os -arch ppc pixman/libpixman-vmx.a -lm
[34/113]
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/meson
--internal symbolextractor
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libpixman/libpixman/work/build
pixman/libpixman-1.0.dylib pixman/libpixman-1.0.dylib
pixman/libpixman-1.0.dylib.p/libpixman-1.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 ...]
[35/113] /opt/local/bin/gcc-mp-7 -Itest/libtestutils.a.p -Itest
-I../pixman-0.42.2/test -Ipixman -I../pixman-0.42.2/pixman
-I/opt/local/include -fdiagnostics-color=always -Wall -Winvalid-pch
-std=gnu99 -O2 -g -Wdeclaration-after-statement -fno-strict-aliasing
-fvisibility=hidden -Wundef -ftrapping-math -Wno-unused-local-typedefs
-DHAVE_CONFIG_H -pipe -Os -arch ppc -MD -MQ
test/libtestutils.a.p/utils.c.o -MF test/libtestutils.a.p/utils.c.o.d -o
test/libtestutils.a.p/utils.c.o -c ../pixman-0.42.2/test/utils.c
../pixman-0.42.2/test/utils.c: In function 'aligned_malloc':
../pixman-0.42.2/test/utils.c:1009:9: warning: implicit declaration of
function 'posix_memalign' [-Wimplicit-function-declaration]
if (posix_memalign (&result, align, size) != 0)
^~~~~~~~~~~~~~
[36/113] /opt/local/bin/gcc-mp-7 -Itest/libtestutils.a.p -Itest
-I../pixman-0.42.2/test -Ipixman -I../pixman-0.42.2/pixman
-I/opt/local/include -fdiagnostics-color=always -Wall -Winvalid-pch
-std=gnu99 -O2 -g -Wdeclaration-after-statement -fno-strict-aliasing
-fvisibility=hidden -Wundef -ftrapping-math -Wno-unused-local-typedefs
-DHAVE_CONFIG_H -pipe -Os -arch ppc -MD -MQ test/libtestutils.a.p/utils-
prng.c.o -MF test/libtestutils.a.p/utils-prng.c.o.d -o
test/libtestutils.a.p/utils-prng.c.o -c ../pixman-0.42.2/test/utils-prng.c
[37/113] rm -f test/libtestutils.a && ar csr test/libtestutils.a
test/libtestutils.a.p/utils.c.o test/libtestutils.a.p/utils-prng.c.o
[38/113] /opt/local/bin/gcc-mp-7 -Itest/oob-test.p -Itest
-I../pixman-0.42.2/test -Ipixman -I../pixman-0.42.2/pixman
-I/opt/local/include -fdiagnostics-color=always -Wall -Winvalid-pch
-std=gnu99 -O2 -g -Wdeclaration-after-statement -fno-strict-aliasing
-fvisibility=hidden -Wundef -ftrapping-math -Wno-unused-local-typedefs
-DHAVE_CONFIG_H -pipe -Os -arch ppc -MD -MQ test/oob-test.p/oob-test.c.o
-MF test/oob-test.p/oob-test.c.o.d -o test/oob-test.p/oob-test.c.o -c
../pixman-0.42.2/test/oob-test.c
[39/113] /opt/local/bin/gcc-mp-7 -o test/oob-test test/oob-test.p/oob-
test.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 -arch ppc -pipe -Os -arch ppc
test/libtestutils.a pixman/libpixman-1.0.dylib -lm
[40/113] /opt/local/bin/gcc-mp-7 -Itest/infinite-loop.p -Itest
-I../pixman-0.42.2/test -Ipixman -I../pixman-0.42.2/pixman
-I/opt/local/include -fdiagnostics-color=always -Wall -Winvalid-pch
-std=gnu99 -O2 -g -Wdeclaration-after-statement -fno-strict-aliasing
-fvisibility=hidden -Wundef -ftrapping-math -Wno-unused-local-typedefs
-DHAVE_CONFIG_H -pipe -Os -arch ppc -MD -MQ test/infinite-loop.p/infinite-
loop.c.o -MF test/infinite-loop.p/infinite-loop.c.o.d -o test/infinite-
loop.p/infinite-loop.c.o -c ../pixman-0.42.2/test/infinite-loop.c
[41/113] /opt/local/bin/gcc-mp-7 -o test/infinite-loop test/infinite-
loop.p/infinite-loop.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 -arch ppc -pipe -Os
-arch ppc test/libtestutils.a pixman/libpixman-1.0.dylib -lm
FAILED: test/infinite-loop
/opt/local/bin/gcc-mp-7 -o test/infinite-loop test/infinite-loop.p
/infinite-loop.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 -arch ppc -pipe -Os
-arch ppc test/libtestutils.a pixman/libpixman-1.0.dylib -lm
Undefined symbols:
"_posix_memalign", referenced from:
_aligned_malloc in libtestutils.a(utils.c.o)
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_libpixman/libpixman/work/build"
&& /opt/local/bin/ninja -j1 -v
Exit code: 1
}}}
`meson` or `ninja` need an update to use the proper `nm` command, but the
actual failure seems to be the OS which is so old that it does not provide
`_posix_memalign` – but isn't it also in `libgcc`?
--
Ticket URL: <https://trac.macports.org/ticket/69266#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list