Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2012 02:58:50 +1200
From:      Jan Beich <jbeich@tormail.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, Marcel Moolenaar <marcel@FreeBSD.org>, src-committers@freebsd.org
Subject:   Re: svn commit: r241823 - in head: . etc etc/atf etc/mtree lib lib/atf lib/atf/libatf-c lib/atf/libatf-c++ libexec libexec/atf libexec/atf/atf-check share share/atf share/doc share/doc/atf share/exampl...
Message-ID:  <1TQJtx-000C9z-I6@internal.tormail.org>
References:  <201210220118.q9M1Ifh5098857__14926.3614825488$1350868751$gmane$org@svn.freebsd.org> <1TQC0L-000AZG-Q5@internal.tormail.org> <1TQFrW-0008DN-S8@internal.tormail.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Dimitry Andric <dim@FreeBSD.org> writes:

> On 2012-10-22 09:00, Jan Beich wrote:
> ...
>
>> atf-run fails to link when using -stdlib=libc++. It works if I remove
>> `throw' from check_stream(). Any clue?
>>
>> test-program.o: In function `(anonymous
>> namespace)::check_stream(std::__1::basic_ostream<char,
>> std::__1::char_traits<char> >&)':
>> /usr/src/usr.bin/atf/atf-run/../../../contrib/atf/atf-run/test-program.cpp:76:
>> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1TQJtx-000C9z-I6>