[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#963064: faust ftbfs with LLVM 10



Package: src:faust
Version: 2.20.2~ds0-1
Severity: important
Tags: sid bullseye patch

faust ftbfs with LLVM 10, not detecting LLVM 10. Fixed with the attached patch.

--- faust-2.20.2~ds0.orig/build/CMakeLists.txt
+++ faust-2.20.2~ds0/build/CMakeLists.txt
@@ -80,7 +80,7 @@ if (INCLUDE_LLVM )
                llvm_cmake()
        endif()

-       string (REGEX REPLACE "([0-9])\\.([0-9]).*" "LLVM_\\1\\2" LLVM_VERSION
${LLVM_PACKAGE_VERSION})
+       string (REGEX REPLACE "([0-9][0-9]*)\\.([0-9][0-9]*).*" "LLVM_\\1\\2"
LLVM_VERSION ${LLVM_PACKAGE_VERSION})

        # the declarations below are redundant but necessary to cope with
different cmake behaviors on different platforms
        set (TMP ${SRCDIR}/generator/llvm)

However it later shows more build errors with LLVM, so maybe it's better to
explicitly build with a fixed LLVM version?


Reply to: