• devel/spirv-llvm-translator fails to build?

    From Jonathan Chen@jonc@chen.org.nz to muc.lists.freebsd.ports on Fri May 8 23:24:59 2026
    From Newsgroup: muc.lists.freebsd.ports

    Hi,

    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:

    * The file was deleted, renamed, or moved to another location.

    * An install or uninstall procedure did not complete successfully.

    * The installation package was faulty and contained

    "/usr/local/llvm19/lib/cmake/llvm/LLVMExports.cmake"

    but not all the files it references.

    Call Stack (most recent call first):
    /usr/local/llvm19/lib/cmake/llvm/LLVMConfig.cmake:348 (include)
    CMakeLists.txt:82 (find_package)


    -- Configuring incomplete, errors occurred!

    Is this possibly related to: https://cgit.freebsd.org/ports/commit/?id=2a7c0561200c6cf9d0c0252cd4a7ab446eca8e4a
    which removed MIPS from devel/llvm19?

    Cheers.
    --
    Jonathan Chen <jonc@chen.org.nz>



    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From John Kennedy@warlock@phouka.net to muc.lists.freebsd.ports on Fri May 8 14:01:30 2026
    From Newsgroup: muc.lists.freebsd.ports

    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


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Mark Millard@marklmi@yahoo.com to muc.lists.freebsd.ports on Fri May 8 14:52:43 2026
    From Newsgroup: muc.lists.freebsd.ports

    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


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2