Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_913E4922-BD3A-4C45-9FBC-77ED81725977
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 13 Nov 2014, at 18:13, Konstantin Belousov <kostikbel@gmail.com> =
wrote:FYI,
>=20
> I did make tinderbox today for HEAD at r274464, and got the following
> both for ppc and ppc64 worlds.  Other arches build successfully.
>=20
> =3D=3D=3D> lib/clang/libllvmtablegen (all)
> =
/scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llvm/l=
ib/CodeGen/SelectionDAG/SelectionDAG.cpp: In member function 'void =
llvm::SDDbgInfo::erase(const llvm::SDNode*)':
> =
/scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llvm/l=
ib/CodeGen/SelectionDAG/SelectionDAG.cpp:632: error: a =
function-definition is not allowed here before ':' token
> =
/scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llvm/l=
ib/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::DenseMa=
pBase<DerivedT, KeyT, ValueT, KeyInfoT>::erase [with DerivedT =3D =
llvm::DenseMap<const llvm::SDNode*, llvm::SmallVector<llvm::SDDbgValue*, =
2u>, llvm::DenseMapInfo<const llvm::SDNode*> >, KeyT =3D const =
llvm::SDNode*, ValueT =3D llvm::SmallVector<llvm::SDDbgValue*, 2u>, =
KeyInfoT =3D 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/l=
ib/CodeGen/SelectionDAG/SelectionDAG.cpp:635: error: expected =
primary-expression before '}' token
> =
/scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llvm/l=
ib/CodeGen/SelectionDAG/SelectionDAG.cpp:635: error: expected `)' before =
'}' token
> =
/scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llvm/l=
ib/CodeGen/SelectionDAG/SelectionDAG.cpp:635: error: expected =
primary-expression before '}' token
> =
/scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llvm/l=
ib/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=3Dc++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


--Apple-Mail=_913E4922-BD3A-4C45-9FBC-77ED81725977
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.26

iEYEARECAAYFAlRk9GYACgkQsF6jCi4glqPtXACg3yQa2//mLFWmw1Uq24U9hHLs
WSEAoK19lFJw42UbOsIu4vBO+Zf+xKyR
=aRLD
-----END PGP SIGNATURE-----

--Apple-Mail=_913E4922-BD3A-4C45-9FBC-77ED81725977--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?049B5242-4D28-4F72-B33E-3728B731C1FB>