check-polly and check-lldb failing

Attached are logs of the check commands executed while building llvm-git (archlinux AUR package)

Both are failing.

check-lldb (44.5 KB)

check-polly (4.51 KB)

The problem

CommandLine Error: Option 'polly-allow-error-blocks' registered more than once!

is typically caused by loading Polly multiple times into the address
space, e.g. once as static and once more as a shared object using the
`-load` mechanism. Your CMake configuration would be necessary to
reproduce the problem.

Michael

Moin,

as far as I understand it is just the git clone since there seems no change in the git cloned files:

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=llvm-git

basically it clones and calls:

build() {

export CFLAGS+=" ${CPPFLAGS}"

export CXXFLAGS+=" ${CPPFLAGS}"

cmake \

-B _build \

-S “$srcdir”/llvm-project/llvm \

-G Ninja \

-D CMAKE_BUILD_TYPE=Release \

-D CMAKE_INSTALL_PREFIX=/usr \

-D LLVM_BINUTILS_INCDIR=/usr/include \

-D LLVM_APPEND_VC_REV=ON \

-D LLVM_VERSION_SUFFIX=“” \

-D LLVM_HOST_TRIPLE=$CHOST \

-D LLVM_ENABLE_RTTI=ON \

-D LLVM_ENABLE_FFI=ON \

-D FFI_INCLUDE_DIR:PATH=“$(pkg-config --variable=includedir libffi)” \

-D LLVM_BUILD_LLVM_DYLIB=ON \

-D LLVM_LINK_LLVM_DYLIB=ON \

-D LLVM_INSTALL_UTILS=ON \

-D LLVM_BUILD_DOCS=ON \

-D LLVM_ENABLE_DOXYGEN=OFF \

-D LLVM_ENABLE_SPHINX=ON \

-D SPHINX_OUTPUT_HTML:BOOL=OFF \

-D SPHINX_WARNINGS_AS_ERRORS=OFF \

-D POLLY_ENABLE_GPGPU_CODEGEN=ON \

-D LLDB_USE_SYSTEM_SIX=1 \

-D LLVM_ENABLE_PROJECTS=“polly;lldb;lld;compiler-rt;clang-tools-extra;clang” \

-Wno-dev

ninja -C _build $NINJAFLAGS

ninja -C _build $NINJAFLAGS ocaml_doc

}

The check-polly failure should be fixed by
https://github.com/llvm/llvm-project/commit/cdbc86dd225063beb9fc8f6ba1f09afc18435331.

Michael