From owner-freebsd-toolchain@FreeBSD.ORG Sun Mar 29 20:52:38 2015 Return-Path: Delivered-To: freebsd-toolchain@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 6449A7CE; Sun, 29 Mar 2015 20:52:38 +0000 (UTC) Received: from tensor.andric.com (unknown [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 20EEC7F8; Sun, 29 Mar 2015 20:52:38 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::64fe:5f0d:c4ae:7330] (unknown [IPv6:2001:7b8:3a7:0:64fe:5f0d:c4ae:7330]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 7FBE75C2E; Sun, 29 Mar 2015 22:52:33 +0200 (CEST) Subject: Re: Failed to build usr.bin/clang/clang with gcc 4.9 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_C1BF6574-52E3-4773-A6AB-00DD8BC70F06"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b6 From: Dimitry Andric In-Reply-To: Date: Sun, 29 Mar 2015 22:52:24 +0200 Message-Id: <09AB8734-8EE3-4772-84C6-49D9D4B6105B@FreeBSD.org> References: To: Craig Rodrigues X-Mailer: Apple Mail (2.2070.6) Cc: FreeBSD Toolchain X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Mar 2015 20:52:38 -0000 --Apple-Mail=_C1BF6574-52E3-4773-A6AB-00DD8BC70F06 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 29 Mar 2015, at 22:39, Craig Rodrigues wrote: >=20 > When building with gcc 4.9, I am getting unresolved symbols at link > time when building usr.bin/clang/clang. Here is one error message: >=20 > = /usr/obj/opt2/branches/head/usr.bin/clang/clang/../../../lib/clang/libclan= gcodegen/libclang > codegen.a(ModuleBuilder.o): In function `(anonymous > = namespace)::CodeGeneratorImpl::HandleTranslationUnit(clang::ASTContext&)':= > ModuleBuilder.cpp:(.text+0x113): undefined reference to > `clang::CodeGen::CodeGenModule::clear()' >=20 > There are many more errors like that in my full build log here: >=20 > https://people.freebsd.org/~rodrigc/gcc/buildworld.2015_03_29.log.txt For some reason, many of your libraries aren't being built: >>> stage 4.2: building libraries ... =3D=3D=3D> lib/libwrap (all) =3D=3D=3D> lib/libxo (all) =3D=3D=3D> lib/liby (all) =3D=3D=3D> lib/atf (all) =3D=3D=3D> lib/atf/libatf-c (all) =3D=3D=3D> lib/atf/libatf-c++ (all) =3D=3D=3D> lib/clang (all) =3D=3D=3D> lib/clang/libclanganalysis (all) =3D=3D=3D> lib/clang/libclangarcmigrate (all) =3D=3D=3D> lib/clang/libclangast (all) =3D=3D=3D> lib/clang/libclangbasic (all) =3D=3D=3D> lib/clang/libclangcodegen (all) =3D=3D=3D> lib/clang/libclangdriver (all) =3D=3D=3D> lib/clang/libclangedit (all) =3D=3D=3D> lib/clang/libclangfrontend (all) And none of these prints any compilation command lines? Are you running with make -s, by any chance? If so, try removing it so we can see how the various source files are being compiled. Also, do any of the libclang*.a files under /usr/obj look sane? E.g., do they contain any object files, and if so, why are the symbols you showed missing? -Dimitry --Apple-Mail=_C1BF6574-52E3-4773-A6AB-00DD8BC70F06 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.27 iEYEARECAAYFAlUYZhAACgkQsF6jCi4glqPYqgCgiYvgWICwfeCqv/mMO7DUCUzM yWcAoLHPHUSQGqIZ665uziYfPyHdKk5y =pYh8 -----END PGP SIGNATURE----- --Apple-Mail=_C1BF6574-52E3-4773-A6AB-00DD8BC70F06--