Current-Users archive

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

llmv build failure



I'm trying to build.sh [...] distribution w/ llvm enabled

(in /etc/mk.conf:)
""
MKLLVM=yes # *build* clang
""


... but the build fails here. My env is:
NetBSD katy 9.99.81 NetBSD 9.99.81 (GENERIC) #15: Sat Mar 13 10:37:49 PST 2021  root@katy:/usr/obj/sys/arch/amd64/compile/GENERIC amd64

Is there something basic about this I should know, or should I file a send-pr?


Cheers,

-bch

===========

[...]
dependall ===> external/apache2/llvm/lib
dependall ===> external/apache2/llvm/lib/libLLVMAnalysis
#   compile  libLLVMAnalysis/AliasAnalysis.o
/usr/src/obj/tooldir.NetBSD-9.99.81-amd64/bin/x86_64--netbsd-c++ -frandom-seed=3a92c12d -O2 -g -Werror -Wno-stringop-overflow -fPIE -g -g -std=c++14 -fno-rtti -fno-exceptions  -fno-strict-aliasing  -ffunction-sections -fdata-sections   --sysroot=/usr/src/obj/destdir.amd64 -I. -I/usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../dist/clang/include -I/usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../dist/llvm/include -I/usr/src/external/apache2/llvm/include/obj -I/usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../config  -I/usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../config  -c    /usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../dist/llvm/lib/Analysis/AliasAnalysis.cpp -o AliasAnalysis.o
In file included from /usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../dist/llvm/include/llvm/ADT/DenseMapInfo.h:16,
                 from /usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../dist/llvm/include/llvm/ADT/DenseMap.h:16,
                 from /usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../dist/llvm/include/llvm/Analysis/AliasAnalysis.h:40,
                 from /usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../dist/llvm/lib/Analysis/AliasAnalysis.cpp:26:
/usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../dist/llvm/include/llvm/ADT/ArrayRef.h: In instantiation of 'llvm::ArrayRef<T>::ArrayRef(const std::initializer_list<_Tp>&) [with T = const llvm::SCEV*]':
/usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../dist/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h:266:64:   required from here
/usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../dist/llvm/include/llvm/ADT/ArrayRef.h:101:37: error: initializing 'llvm::ArrayRef<const llvm::SCEV*>::Data' from 'std::initializer_list<const llvm::SCEV*>::begin' does not extend the lifetime of the underlying array [-Werror=init-list-lifetime]
  101 |     : Data(Vec.begin() == Vec.end() ? (T*)nullptr : Vec.begin()),
cc1plus: all warnings being treated as errors

*** Failed target:  AliasAnalysis.o
*** Failed command: /usr/src/obj/tooldir.NetBSD-9.99.81-amd64/bin/x86_64--netbsd-c++ -frandom-seed=3a92c12d -O2 -g -Werror -Wno-stringop-overflow -fPIE -g -g -std=c++14 -fno-rtti -fno-exceptions -fno-strict-aliasing -ffunction-sections -fdata-sections --sysroot=/usr/src/obj/destdir.amd64 -I. -I/usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../dist/clang/include -I/usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../dist/llvm/include -I/usr/src/external/apache2/llvm/include/obj -I/usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../config -I/usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../config -c /usr/src/external/apache2/llvm/lib/libLLVMAnalysis/../../dist/llvm/lib/Analysis/AliasAnalysis.cpp -o AliasAnalysis.o
*** Error code 1

Stop.
nbmake[9]: stopped in /usr/src/external/apache2/llvm/lib/libLLVMAnalysis
[...]


Home | Main Index | Thread Index | Old Index