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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On 29 Mar 2015, at 22:39, Craig Rodrigues <rodrigc@FreeBSD.org> wrote: > > 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: > > /usr/obj/opt2/branches/head/usr.bin/clang/clang/../../../lib/clang/libclangcodegen/libclang > codegen.a(ModuleBuilder.o): In function `(anonymous > namespace)::CodeGeneratorImpl::HandleTranslationUnit(clang::ASTContext&)': > ModuleBuilder.cpp:(.text+0x113): undefined reference to > `clang::CodeGen::CodeGenModule::clear()' > > There are many more errors like that in my full build log here: > > 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 ... ===> lib/libwrap (all) ===> lib/libxo (all) ===> lib/liby (all) ===> lib/atf (all) ===> lib/atf/libatf-c (all) ===> lib/atf/libatf-c++ (all) ===> lib/clang (all) ===> lib/clang/libclanganalysis (all) ===> lib/clang/libclangarcmigrate (all) ===> lib/clang/libclangast (all) ===> lib/clang/libclangbasic (all) ===> lib/clang/libclangcodegen (all) ===> lib/clang/libclangdriver (all) ===> lib/clang/libclangedit (all) ===> 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.27 iEYEARECAAYFAlUYZhAACgkQsF6jCi4glqPYqgCgiYvgWICwfeCqv/mMO7DUCUzM yWcAoLHPHUSQGqIZ665uziYfPyHdKk5y =pYh8 -----END PGP SIGNATURE-----home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?09AB8734-8EE3-4772-84C6-49D9D4B6105B>
