From owner-svn-src-head@FreeBSD.ORG Mon Oct 22 15:28:20 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 91754D4C; Mon, 22 Oct 2012 15:28:20 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from outgoing.tormail.org (outgoing.tormail.org [82.221.96.22]) by mx1.freebsd.org (Postfix) with ESMTP id 263AA8FC0C; Mon, 22 Oct 2012 15:28:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=internal.tormail.org) by outgoing.tormail.org with esmtp (Exim 4.72) (envelope-from ) id 1TQJvN-0001YW-EG; Mon, 22 Oct 2012 19:28:17 +0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tormail.org; s=tm; h=Message-Id:X-TorMail-User:Content-Type:MIME-Version:References:Date:Subject:Cc:To:From; bh=7gxCiK9qaCYxbJr7CrG6GpUDHQgZ5nklQ9stefs///M=; b=RxzR3rZK+BDT0nHNkvIFSgbjE/PHMyfZVpykz6fL5TI3etRhOt/xdVxMzJHit4vOh94LbCtEdSzigYbyv9Bd3XbJ6oMEvyla1VTvdlLmGaZ8SMHwiDigaX3YLGZ5J5xc2Dwq2XcEg8Wq6+QuLaPNncX57yOEfuMGXyV/HvRA6/E=; Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1TQJtx-000C9z-I6; Mon, 22 Oct 2012 15:26:51 +0000 From: Jan Beich To: Dimitry Andric 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... Date: Tue, 23 Oct 2012 02:58:50 +1200 References: <201210220118.q9M1Ifh5098857__14926.3614825488$1350868751$gmane$org@svn.freebsd.org> <1TQC0L-000AZG-Q5@internal.tormail.org> <1TQFrW-0008DN-S8@internal.tormail.org> MIME-Version: 1.0 Content-Type: text/plain X-TorMail-User: jbeich Message-Id: <1TQJtx-000C9z-I6@internal.tormail.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Marcel Moolenaar , src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2012 15:28:20 -0000 Dimitry Andric 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> std::__1::char_traits >&)': >> /usr/src/usr.bin/atf/atf-run/../../../contrib/atf/atf-run/test-program.cpp:76: >> undefined reference to `std::__1::basic_ios> std::__1::char_traits >::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.