redchillipadi / ebuild-overlay

Ebuild for various packages not currently in the Gentoo tree
6 stars 2 forks source link

dev-lang/ispc-1.12.0 fails to compile #10

Closed gerion0 closed 3 years ago

gerion0 commented 4 years ago

I got this error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
clangASTPath
    linked by target "ispc" in directory /var/tmp/portage/dev-lang/ispc-1.12.0/work/ispc-1.12.0
clangAnalysisPath
    linked by target "ispc" in directory /var/tmp/portage/dev-lang/ispc-1.12.0/work/ispc-1.12.0
clangBasicPath
    linked by target "ispc" in directory /var/tmp/portage/dev-lang/ispc-1.12.0/work/ispc-1.12.0
clangDriverPath
    linked by target "ispc" in directory /var/tmp/portage/dev-lang/ispc-1.12.0/work/ispc-1.12.0
clangEditPath
    linked by target "ispc" in directory /var/tmp/portage/dev-lang/ispc-1.12.0/work/ispc-1.12.0
clangFrontendPath
    linked by target "ispc" in directory /var/tmp/portage/dev-lang/ispc-1.12.0/work/ispc-1.12.0
clangLexPath
    linked by target "ispc" in directory /var/tmp/portage/dev-lang/ispc-1.12.0/work/ispc-1.12.0
clangParsePath
    linked by target "ispc" in directory /var/tmp/portage/dev-lang/ispc-1.12.0/work/ispc-1.12.0
clangSemaPath
    linked by target "ispc" in directory /var/tmp/portage/dev-lang/ispc-1.12.0/work/ispc-1.12.0
clangSerializationPath
    linked by target "ispc" in directory /var/tmp/portage/dev-lang/ispc-1.12.0/work/ispc-1.12.0

I have the clang libraries installed.

I tried to fix this myself, but failed. However, I have a few comments:

waebbl commented 4 years ago

Hello @gerion0, I had the issue too when trying to prepare an ebuild for 1.12.0. The reason are the changes in clang library packaging (c.f. https://archives.gentoo.org/gentoo-dev/message/6d3cf88d858fcf3fbb11818ce5d6ea42). These changes need some more fixes in the build system.

gerion0 commented 4 years ago

Hmm, then the quick fix (for 1.12) would be to force the Clang version to <=9.

redchillipadi commented 4 years ago

I have the same issue, and have found that the llvm eclass does not limit the version of llvm used in the build. I will look into this soon as I need ispc to compile for testing oidn with blender

redchillipadi commented 4 years ago

I have altered the ebuild to patch cmake/LLVMConfig.cmake so that it searches for the appropriate LLVM version. This fixes the issue for me

redchillipadi commented 3 years ago

I have no issues with 1.14.0 in the tree, closing this for now