From owner-svn-src-head@FreeBSD.ORG Mon Oct 22 16:27:11 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 149AD72B; Mon, 22 Oct 2012 16:27:11 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9E8B08FC08; Mon, 22 Oct 2012 16:27:09 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id b5so2292095lbd.13 for ; Mon, 22 Oct 2012 09:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=IsD4KB2+ujIOSZ2rbMbVVekPCKDUeAg9MwGWem7e2wg=; b=Tz6pDHhY+nTa34z/TzXBlgmF32cEiR2SjsH4SfqVw2aMxQFI1TsRb54e8IfaNRPLT1 BFb6ucH1DnLiVSo3x8mOCXABLrBFSakmRK/EEBewgZ8TsGoOAx4++mXd3IJ0XwYaRM3i D1YVjkTiwyMEA/lbPX4xWA0GHPhRBD9h+jb4x5SzJZK/lvSOzS0CzA5YADxDtRehcMP9 BBYFOsy2LauTWmh89BZtGY9lwJBkaueG/7r86m1ej5uW8c8NjpkTvvne4NO2zpkxPv46 armMDUVH9z+FEEI8tAqRcr5oXyTu8gkLNarG/8jd08Mb0JLL9KQxn0+qdZZcrENqYkmk j6zA== MIME-Version: 1.0 Received: by 10.112.98.37 with SMTP id ef5mr3929276lbb.84.1350923228166; Mon, 22 Oct 2012 09:27:08 -0700 (PDT) Received: by 10.112.43.232 with HTTP; Mon, 22 Oct 2012 09:27:08 -0700 (PDT) In-Reply-To: <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> <1TQJtx-000C9z-I6@internal.tormail.org> Date: Mon, 22 Oct 2012 09:27:08 -0700 Message-ID: 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... From: Garrett Cooper To: Jan Beich Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Marcel Moolenaar , Dimitry Andric , 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 16:27:11 -0000 On Mon, Oct 22, 2012 at 7:58 AM, Jan Beich wrote: > 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. Ok. I was on the right track, even though my solution wasn't correct... Now that we know how to repro it, we can come up with a legitimate fix, but just to be sure we have all the details could you please send us your full environment (CC/CXX/CFLAGS/CXXFLAGS)? Thanks! -Garrett