From owner-freebsd-ppc@FreeBSD.ORG Thu Nov 13 18:17:15 2014 Return-Path: Delivered-To: ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4AD63300; Thu, 13 Nov 2014 18:17:15 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E0FBE8F; Thu, 13 Nov 2014 18:17:14 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id sADIH9kr015137 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 13 Nov 2014 20:17:09 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua sADIH9kr015137 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id sADIH9ht015136; Thu, 13 Nov 2014 20:17:09 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 13 Nov 2014 20:17:09 +0200 From: Konstantin Belousov To: Dimitry Andric Subject: Re: llvm build error on ppc Message-ID: <20141113181709.GA17068@kib.kiev.ua> References: <20141113171308.GZ17068@kib.kiev.ua> <049B5242-4D28-4F72-B33E-3728B731C1FB@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <049B5242-4D28-4F72-B33E-3728B731C1FB@FreeBSD.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home Cc: toolchain@freebsd.org, ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2014 18:17:15 -0000 On Thu, Nov 13, 2014 at 07:11:45PM +0100, Dimitry Andric wrote: > On 13 Nov 2014, at 18:13, Konstantin Belousov 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/llv= m/lib/CodeGen/SelectionDAG/SelectionDAG.cpp: In member function 'void llvm:= :SDDbgInfo::erase(const llvm::SDNode*)': > > /scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llv= m/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:632: error: a function-definiti= on is not allowed here before ':' token > > /scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llv= m/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:634: error: could not convert '= ((llvm::DenseMapBase, llvm::DenseMapInfo >, const ll= vm::SDNode*, llvm::SmallVector, llvm::DenseMapInfo >*)(&((llvm::SDDbgInfo*)this)->llvm::SDDbgInfo::DbgValM= ap))->llvm::DenseMapBase::erase [with Der= ivedT =3D llvm::DenseMap, llvm::DenseMapInfo >, KeyT =3D const llvm= ::SDNode*, ValueT =3D llvm::SmallVector, KeyInfoT = =3D llvm::DenseMapInfo](llvm::DenseMapIterator, llvm::DenseMapInfo<= const llvm::SDNode*>, false>(((const llvm::DenseMapIterator > lue*, 2u>, llvm::DenseMapInfo, false>&)((const llv= m::DenseMapIterator, llvm::DenseMapInfo, false>*)(& I)))))' to 'boo= l' > > /scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llv= m/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:635: error: expected primary-ex= pression before '}' token > > /scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llv= m/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:635: error: expected `)' before= '}' token > > /scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llv= m/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:635: error: expected primary-ex= pression before '}' token > > /scratch/tmp/kib/src/lib/clang/libllvmselectiondag/../../../contrib/llv= m/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:635: error: expected `;' before= '}' token > > --- SelectionDAG.o --- > > *** [SelectionDAG.o] Error code 1 >=20 > Hi Kostik, >=20 > 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. Is ppc the only architecture where we do build clang, but with gcc ? Since the failure only occured on ppc/pcc64, and not on e.g. arm.