Re: Failed to build usr.bin/clang/clang with gcc 4.9

2015-03-30 Thread Craig Rodrigues
On Sun, Mar 29, 2015 at 1:52 PM, Dimitry Andric d...@freebsd.org wrote:


 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.


I am not using make -s.  If you  look at the log file, the full make
invocation I used
is captured at the top of the log file.  I used NO_CLEAN and NO_KERNELCLEAN.

I wiped out the object tree, and tried again.  I managed to successfully
buildworld, as long as I skipped building all the boot directories.

Here is the new log file:

https://people.freebsd.org/~rodrigc/gcc/buildworld.2015_03_29_2.log.txt

There are many warnings which need to be cleaned up over time.  I
saw this one which looked a bit weird:

/usr/local/bin/x86_64-freebsd-ld: error in
/usr/obj/opt2/branches/head/lib32/usr/lib32/crt1.o(.eh_frame);
no .eh_frame_hdr table will be created.

--
Craig
___
freebsd-toolchain@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to freebsd-toolchain-unsubscr...@freebsd.org


Re: Failed to build usr.bin/clang/clang with gcc 4.9

2015-03-29 Thread Dimitry Andric
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


Failed to build usr.bin/clang/clang with gcc 4.9

2015-03-29 Thread Craig Rodrigues
Hi,


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


Any ideas?

--
Craig
___
freebsd-toolchain@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to freebsd-toolchain-unsubscr...@freebsd.org