From owner-svn-src-head@FreeBSD.ORG Mon Oct 22 12:52:10 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 3EC763C9; Mon, 22 Oct 2012 12:52:10 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id AFEE08FC08; Mon, 22 Oct 2012 12:52:09 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id wc20so3179712obb.13 for ; Mon, 22 Oct 2012 05:52: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=gonMv0TxS/FXMOoPI6Ee2IT+a0sQTs96FEUIcLkWTEY=; b=gUjtySr6yv9/t5nVBkWYBcRjvSpjt3+nWHOqU2O+LfzdXFeqt2VZzsh8++R9hmEmSN qaHju/GgbTCxcmsRtX0p5RX40zR4+Ao+7Wq7wgRhn4/Xb1QjRcFyebFvrRdrZhyFxKPe n+Atvku0qetbMyWyEcUO/ywohSGrLmHpmmN6J/ZinoQMLbITFdkARamn8l5v+b3pW+My iu4QChCCY+lrPDK+qHFGFb2J4g01JmwJumBaVlRFeBg/+oP3xl2F1NghUDZd62cT1+QV J43bsRZyv/rf14eaQIFcitruE3uXUucjsb9iyU0TdXalNfQXCL3EgqoAwaVtkNHMSJG3 twbg== MIME-Version: 1.0 Received: by 10.60.7.41 with SMTP id g9mr7815458oea.18.1350910328827; Mon, 22 Oct 2012 05:52:08 -0700 (PDT) Received: by 10.76.143.33 with HTTP; Mon, 22 Oct 2012 05:52:08 -0700 (PDT) In-Reply-To: <50852951.5000809@FreeBSD.org> References: <201210220118.q9M1Ifh5098857__14926.3614825488$1350868751$gmane$org@svn.freebsd.org> <1TQC0L-000AZG-Q5@internal.tormail.org> <50852951.5000809@FreeBSD.org> Date: Mon, 22 Oct 2012 05:52: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: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Marcel Moolenaar , src-committers@freebsd.org, Jan Beich 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 12:52:10 -0000 On Mon, Oct 22, 2012 at 4:09 AM, Dimitry Andric wrote: > 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? > > That said, I am planning on importing a new drop of libc++ soon, but I > would rather see this fixed sooner than later. So I will cherry-pick > a few fixes tonight. > > Meanwhile, here are the local diffs I have for making atf build. > > -Dimitry > > PS: As far as I can see, atf doesn't build at all with clang and > libstdc++, because there are many warnings caused by -Wsystem-headers... > Is there any incentive to fix these? I submitted the atf compile-time warnings patch on your behalf: http://code.google.com/p/kyua/issues/detail?id=42&thanks=42&ts=1350910277 . Thanks! -Garrett