Bug 281110 - devel/spirv-llvm-translator does not build with llvm15-lite-15.0.7_10 (missing library)
Summary: devel/spirv-llvm-translator does not build with llvm15-lite-15.0.7_10 (missin...
Status: Closed DUPLICATE of bug 271821
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jan Beich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-28 08:12 UTC by jakub_lach
Modified: 2024-08-28 12:49 UTC (History)
0 users

See Also:
jbeich: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jakub_lach 2024-08-28 08:12:50 UTC
-- Found zstd: /usr/local/lib/libzstd.so
CMake Error at /usr/local/llvm15/lib/cmake/llvm/LLVMExports.cmake:1167 (message)
  The imported target "LLVMDemangle" references the file

     "/usr/local/llvm15/lib/libLLVMDemangle.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/llvm15/lib/cmake/llvm/LLVMExports.cmake"

  but not all the files it references.

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


-- Configuring incomplete, errors occurred!
*** Error code 1
Comment 1 Jan Beich freebsd_committer freebsd_triage 2024-08-28 12:04:12 UTC
According to ports af979dd126ff -lite was created for compiler-only but this port needs libraries. Unfortunately, libLLVM*.so is actually built (instead of being statically linked into Clang/LLD/etc binaries) but has broken CMake support.

I guess, switching LIB_DEPENDS to USES=llvm can help reject -lite flavors.

*** This bug has been marked as a duplicate of bug 271821 ***
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-08-28 12:47:35 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=72c4763b925f4147054427c9cb41492474df97ce

commit 72c4763b925f4147054427c9cb41492474df97ce
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-08-28 12:14:29 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-08-28 12:45:47 +0000

    devel/spirv-llvm-translator: reject llvm*-lite as dependencies

    CMake support is broken in 15 + 16 and disabled in >= 17.

    PR:             281110

 devel/spirv-llvm-translator/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-08-28 12:49:37 UTC
A commit in branch 2024Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a5d9ce1971ba09e3369cd215a88176cef0d543e6

commit a5d9ce1971ba09e3369cd215a88176cef0d543e6
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-08-28 12:14:29 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-08-28 12:47:57 +0000

    devel/spirv-llvm-translator: reject llvm*-lite as dependencies

    CMake support is broken in 15 + 16 and disabled in >= 17.

    PR:             281110
    (cherry picked from commit 72c4763b925f4147054427c9cb41492474df97ce)

 devel/spirv-llvm-translator/Makefile | 1 +
 1 file changed, 1 insertion(+)