tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Latest AIX Status: bootstrap fails with gcc 13



On Fri, Jan 16, 2026 at 12:16:29AM +0100, Louis Guillaume wrote:
> On 1/15/26 2:04 PM, Roland Illig wrote:
> > 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
> > 
> 
> Running without the `-dcpv' shows the error straight away, before printing
> anything. But with the flags I think there are some clues.
> 
> Seems this pattern "gcc-([0-9]+\.[0-9]+).*" is not matched because "gcc-13"
> doesn't have a "." in it and the result keeps the whole value when filling
> out _GCC_PKG_MAJOR_MINOR.
> 
> Is this the problem?
> 
>   # /opt/freeware/bin/gcc -dumpversion
>   13

Thanks for the bug report - please update pkgsrc/mk/ and try again!

Cheers,
 Thomas


Home | Main Index | Thread Index | Old Index