Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jun 2023 15:52:21 GMT
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 32a8753e3fef - main - devel/spirv-llvm-translator: unbreak build with clang 16
Message-ID:  <202306251552.35PFqLov073501@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich:

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

commit 32a8753e3fefb32536e2595f56b55c596658c6e7
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-06-25 13:40:21 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-06-25 15:52:08 +0000

    devel/spirv-llvm-translator: unbreak build with clang 16
    
    In file included from lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
    In file included from lib/SPIRV/LLVMToSPIRVDbgTran.h:42:
    In file included from lib/SPIRV/libSPIRV/SPIRVModule.h:44:
    In file included from lib/SPIRV/libSPIRV/SPIRVEntry.h:44:
    In file included from lib/SPIRV/libSPIRV/SPIRVEnum.h:44:
    In file included from lib/SPIRV/libSPIRV/SPIRVOpCode.h:45:
    lib/SPIRV/libSPIRV/spirv_internal.hpp:182:5: error: integer value 16777216 is outside the valid range of values [0, 16777215] for the enumeration type 'LoopControlMask' [-Wenum-constexpr-conversion]
        static_cast<LoopControlMask>(ILoopControlLoopCountINTELMask);
        ^
    
    Reported by:    pkg-fallout
    Regressed by:   https://github.com/llvm/llvm-project/commit/b36453530418
    See also:       https://github.com/KhronosGroup/SPIRV-LLVM-Translator/commit/1d5694629aad
---
 devel/spirv-llvm-translator/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/devel/spirv-llvm-translator/Makefile b/devel/spirv-llvm-translator/Makefile
index f8baa03e2839..bc7915041550 100644
--- a/devel/spirv-llvm-translator/Makefile
+++ b/devel/spirv-llvm-translator/Makefile
@@ -32,6 +32,7 @@ GH_TUPLE_llvm15=KhronosGroup:SPIRV-Headers:1.5.4.raytracing.fixed-168-g5a12186:h
 GH_TUPLE_llvm14=KhronosGroup:SPIRV-Headers:1.5.4.raytracing.fixed-124-g20b02de:headers/projects/SPIRV-Headers
 GH_TUPLE_llvm13=KhronosGroup:SPIRV-Headers:1.5.4.raytracing.fixed-83-gddf3230:headers/projects/SPIRV-Headers
 DISTINFO_FILE=	${.CURDIR}/distinfo.${FLAVOR}
+CXXFLAGS+=	${${FLAVOR:S/llvm//} < 16 && ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160:?-Wno-enum-constexpr-conversion:}
 CMAKE_ON=	BUILD_SHARED_LIBS LLVM_BUILD_TOOLS LLVM_TOOL_SPIRV_HEADERS_BUILD
 CMAKE_ARGS=	-DLLVM_DIR:PATH="${LOCALBASE}/${FLAVOR}"
 CMAKE_INSTALL_PREFIX=		${PREFIX}/${FLAVOR}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306251552.35PFqLov073501>