Am 15.01.2026 um 17:47 schrieb Louis Guillaume:
Trying again to get pkgsrc going on AIX 7.2, pkgsrc-current.
===> running: (cd /opt/pkgsrc/pkgtools/libnbcompat &&
/opt/pkg/obj/bootstrap/bin/bmake MAKE_JOBS=1 PKG_COMPRESSION=none
PKGSRC_KEEP_BIN_PKGS=no MAKECONF=/opt/pkg/obj/bootstrap/mk.conf install)
bmake: "/opt/pkgsrc/mk/compiler/gcc.mk" line 1055: Comparison with '>'
requires both operands 'gcc-13' and '2' to be numeric
I'd like to know where the string "gcc-13" comes from. At this point in
bootstrap, the pkgsrc infrastructure is already in place, so you can run
these commands:
$ cd /opt/pkgsrc/pkgtools/libnbcompat
$ /opt/pkg/obj/bootstrap/bin/bmake \
MAKECONF=/opt/pkg/obj/bootstrap/mk.conf \
show-all-gcc
This will print the value of lots of make(1) variables related to GCC.
Maybe you get a hint from their values, especially for
_GCC_VERSION_STRING, _GCC_VERSION, _GCC_PKG.
If you are still unsure, you can run make(1) with the options "-dcpv" to
trace the conditions, the parsing and the variables.
You can compare the runtime values with the code in
/opt/pkgsrc/mk/compiler/gcc.mk to track the values through the
variables, it's really just variable assignments and conditions all the
way down.
Roland