"Will fail if we switch base to 22 and ports stay 19"

I don't think that would be a good idea, various ports use the default ports-llvm version for parts of the toolchain that are missing from base so they probably ought to match

--
 Sent from a phone, apologies for poor formatting.

On 27 May 2026 19:52:15 Rafael Sadowski <[email protected]> wrote:

On Wed May 27, 2026 at 08:13:50PM +0200, Rafael Sadowski wrote:
On Wed May 27, 2026 at 04:36:40PM +0200, Christian Weisgerber wrote:
> http://build-failures.rhaalovely.net/amd64-clang/2026-05-26/
>
> $ awk '/->/ { a[$NF]++ } END { for(i in a) printf "%3d %s\n", a[i], i }' \
>     summary.log | sort -nr
> 133 audio/openal

I think that is currently our best solution/pattern for the
"CMAKE_CXX_COMPILER_CLANG_SCAN_DEPS-NOTFOUND" error class:

MODULES +=      lang/clang
MODCLANG_COMPILER_LINKS = No
CONFIGURE_ARGS+=        
-DCMAKE_CXX_COMPILER_CLANG_SCAN_DEPS=${LOCALBASE}/bin/clang-scan-deps-${MODCLANG_VERSION}


Correction: the CONFIGURE_ARGS will be overwritten again by
Modules/Compiler/Clang-FindBinUtils.cmake because
MODCLANG_COMPILER_LINKS is set to "No" and the cmake module will force
the compiler version.

Meaning:

Will fail if we switch base to 22 and ports stay 19:

MODULES +=      lang/clang
MODCLANG_COMPILER_LINKS = No
CONFIGURE_ARGS+=        
-DCMAKE_CXX_COMPILER_CLANG_SCAN_DEPS=${LOCALBASE}/bin/clang-scan-deps-${MODCLANG_VERSION}

This should work for the migration now:

MODULES +=      lang/clang
MODCLANG_COMPILER_LINKS = No
MODCLANG_VERSION =      22
CONFIGURE_ARGS+=        
-DCMAKE_CXX_COMPILER_CLANG_SCAN_DEPS=${LOCALBASE}/bin/clang-scan-deps-${MODCLANG_VERSION}

# XXX remove after base has llvm/22
BUILD_DEPENDS = devel/llvm/19

Tested with openal and it fallback to 19 for now and if
MODCLANG_COMPILER_LINKS = Yes (tested) or llvm22 is in base (untested)
it should pickup 22.

Reply via email to