On 2012-10-23 11:05, Dimitry Andric wrote:
On 2012-10-22 16:58, Jan Beich wrote:
Dimitry Andric <d...@freebsd.org> writes:
On 2012-10-22 09:00, Jan Beich wrote:
...
undefined reference to `std::__1::basic_ios<char,
std::__1::char_traits<char> >::clear(unsigned int)'
clang++: error: linker command failed with exit code 1 (use -v to
see invocation)
Strange, for me it compiles (with a bunch of warnings, which I have
fixed locally), and links just fine.  However, I always use -std=c++11,
which -std= flag are you using, if any?
Adding -std=c++11 doesn't help. Neither yours or Garrett's patches.
Instead, removing local -finline-functions (implied by -O3) does.
With clang, -O3 does not imply -finline-functions, but it may have some
influence on the threshold for inlining.

This error is still very strange though, and it might be a real bug in
the optimizer at -O3; at this level, it really seems to generate a call
to a function that is declared inline, with the __always_inline
attribute.

I have cherry-picked r165367 from the llvm trunk, which should fix this
issue, and committed it into our head r242007.

Can you please retry your buildworld with the -O3 flag after updating to
at least that revision?

I will also MFC the fix to stable/9 later on.
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to