Date: Thu, 13 Nov 2014 19:11:45 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Konstantin Belousov <kostikbel@gmail.com> Cc: toolchain@freebsd.org, ppc@freebsd.org Subject: Re: llvm build error on ppc Message-ID: <049B5242-4D28-4F72-B33E-3728B731C1FB@FreeBSD.org> In-Reply-To: <20141113171308.GZ17068@kib.kiev.ua> References: <20141113171308.GZ17068@kib.kiev.ua>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On 13 Nov 2014, at 18:13, Konstantin Belousov <kostikbel@gmail.com> wrote:FYI, > > I did make tinderbox today for HEAD at r274464, and got the following > both for ppc and ppc64 worlds. Other arches build successfully. > > ===> lib/clang/libllvmtablegen (all) > /scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp: In member function 'void llvm::SDDbgInfo::erase(const llvm::SDNode*)': > /scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:632: error: a function-definition is not allowed here before ':' token > /scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:634: error: could not convert '((llvm::DenseMapBase<llvm::DenseMap<const llvm::SDNode*, llvm::SmallVector<llvm::SDDbgValue*, 2u>, llvm::DenseMapInfo<const llvm::SDNode*> >, const llvm::SDNode*, llvm::SmallVector<llvm::SDDbgValue*, 2u>, llvm::DenseMapInfo<const llvm::SDNode*> >*)(&((llvm::SDDbgInfo*)this)->llvm::SDDbgInfo::DbgValMap))->llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT>::erase [with DerivedT = llvm::DenseMap<const llvm::SDNode*, llvm::SmallVector<llvm::SDDbgValue*, 2u>, llvm::DenseMapInfo<const llvm::SDNode*> >, KeyT = const llvm::SDNode*, ValueT = llvm::SmallVector<llvm::SDDbgValue*, 2u>, KeyInfoT = llvm::DenseMapInfo<const llvm::SDNode*>](llvm::DenseMapIterator<const llvm::SDNode*, llvm::SmallVector<llvm::SDDbgValue*, 2u>, llvm::DenseMapInfo<const llvm::SDNode*>, false>(((const llvm::DenseMapIterator<const llvm::SDNode*, llvm::SmallVector<llvm::SDDbgVa > lue*, 2u>, llvm::DenseMapInfo<const llvm::SDNode*>, false>&)((const llvm::DenseMapIterator<const llvm::SDNode*, llvm::SmallVector<llvm::SDDbgValue*, 2u>, llvm::DenseMapInfo<const llvm::SDNode*>, false>*)(& I)))))' to 'bool' > /scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:635: error: expected primary-expression before '}' token > /scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:635: error: expected `)' before '}' token > /scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:635: error: expected primary-expression before '}' token > /scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:635: error: expected `;' before '}' token > --- SelectionDAG.o --- > *** [SelectionDAG.o] Error code 1 Hi Kostik, Sorry about this. I imported an upstream fix for llvm, but since they switched to C++11, it introduces some constructs that g++ 4.2.1 does not support. Clang compiles these even if -std=c++11 is not specified on the command line, which is why I didn't notice the problem. I'm going to fix this as soon as possible. -Dimitry [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.26 iEYEARECAAYFAlRk9GYACgkQsF6jCi4glqPtXACg3yQa2//mLFWmw1Uq24U9hHLs WSEAoK19lFJw42UbOsIu4vBO+Zf+xKyR =aRLD -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?049B5242-4D28-4F72-B33E-3728B731C1FB>
