Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Mar 2015 22:52:24 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Craig Rodrigues <rodrigc@FreeBSD.org>
Cc:        FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   Re: Failed to build usr.bin/clang/clang with gcc 4.9
Message-ID:  <09AB8734-8EE3-4772-84C6-49D9D4B6105B@FreeBSD.org>
In-Reply-To: <CAG=rPVcPevjbD7puaVaHs3YBJaH3cb4Zdk-Z53QveB2cHkfowg@mail.gmail.com>
References:  <CAG=rPVcPevjbD7puaVaHs3YBJaH3cb4Zdk-Z53QveB2cHkfowg@mail.gmail.com>

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

--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 <rodrigc@FreeBSD.org> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?09AB8734-8EE3-4772-84C6-49D9D4B6105B>