Failed to build usr.bin/clang/clang with gcc 4.9
Dimitry Andric
dim at FreeBSD.org
Sun Mar 29 20:52:38 UTC 2015
On 29 Mar 2015, at 22:39, Craig Rodrigues <rodrigc at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20150329/5abe290a/attachment.sig>
More information about the freebsd-toolchain
mailing list