On 29 Mar 2015, at 22:39, Craig Rodrigues <rodr...@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
signature.asc
Description: Message signed with OpenPGP using GPGMail