* On 2025-05-19 at 12:24 BST, Dmytro Kazankov wrote:
"--compiler gcc" and "--prefer-pkgsrc yes" result in using the compiler from pkgsrc. If the package does not specify additional requirements, then the compiler with the minimum version will be used. Version 6.5 is the minimum version currently processed by gcc.mk, so it is used. Version 12.3, which Brian uses, is built-in from pkgsrc's point of view, so it is not used.
Not true, PREFER_* is for builtin.mk, it has no effect on compiler selection.
The problem is more likely to be GCCBASE not being set correctly, the _GCC_VERSION detection being wrong, or one of either USE_NATIVE_GCC or USE_PKGSRC_GCC being incorrectly set.
-- Jonathan Perkin pkgsrc.smartos.org Open Source Complete Cloud www.tritondatacenter.com