On 5/8/26 14:01, John Kennedy wrote: > On Fri, May 08, 2026 at 11:24:59PM +1200, Jonathan Chen wrote: >> I'm seeing the following error when building devel/spirv-llvm-translator >> during the "configure" phase: >> >> CMake Error at /usr/local/llvm19/lib/cmake/llvm/LLVMExports.cmake:1728 >> (message) >> : >> The imported target "LLVMMipsCodeGen" references the file >> >> "/usr/local/llvm19/lib/libLLVMMipsCodeGen.a" >> >> but this file does not exist. Possible reasons include: > ... >> Is this possibly related to: >> https://cgit.freebsd.org/ports/commit/?id=2a7c0561200c6cf9d0c0252cd4a7ab446eca8e4a >> which removed MIPS from devel/llvm19? > > I noticed the same thing. I submitted a bug report: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295111 > >
I've added a note to that bugzilla. Summarizing/quoting here: The way I read that messaging, the files with some reference to LLVMMipsCodeGen and such are in the likes of: /usr/local/llvm*/lib/cmake/llvm/LLVMExports.cmake It looks to me like the files in the various: /usr/local/llvm*/lib/cmake/ directories should not be referencing Mips for FreeBSD OS contexts that no longer support Mips. For example: # grep -rl Mips /usr/local/llvm22/lib/cmake/llvm/ /usr/local/llvm22/lib/cmake/llvm/LLVMExports.cmake /usr/local/llvm22/lib/cmake/llvm/HandleLLVMOptions.cmake /usr/local/llvm22/lib/cmake/llvm/LLVMExports-release.cmake /usr/local/llvm22/lib/cmake/llvm/LLVMConfig.cmake # grep -rl LLVMMipsCodeGen /usr/local/llvm22/lib/cmake/llvm/ /usr/local/llvm22/lib/cmake/llvm/LLVMExports.cmake /usr/local/llvm22/lib/cmake/llvm/LLVMExports-release.cmake /usr/local/llvm22/lib/cmake/llvm/LLVMConfig.cmake . . . So: It looks to me like various devel/llvm* are telling cmake to reference Mips support in the llvm* at will --despite the removal. Note: I've not checked for risc64sf references. -- === Mark Millard marklmi at yahoo.com
