From owner-svn-src-all@FreeBSD.ORG Wed Oct 24 21:10:34 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D6CB9C85; Wed, 24 Oct 2012 21:10:34 +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 675F28FC17; Wed, 24 Oct 2012 21:10:34 +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 1TR8DX-0002p9-J5; Thu, 25 Oct 2012 01:10:24 +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:In-Reply-To:Subject:Cc:To:From; bh=gBYxjWD1isndI6WM/ygpjXzSDExbeTJARLfaL2glagU=; b=uQTHxcOZR3HN03b+6fK7ShKwPjpYVNW2FHONdAgD19BQ7uAo6cS1phMmes4l5/UTrQmJ/fXG36Uz55ajAoJVinTvnQam2EvKLJrIdAS+e9PQVEr0RfzRrEAcQooq2bpSPniArumg21PnC8uKAdoTsSndqCJClKzLf4vse5JMYr4=; Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1TR8C0-000OzE-Es; Wed, 24 Oct 2012 21:08:50 +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... In-Reply-To: <1TR43g-000Bu7-4L@internal.tormail.org> (Dimitry Andric's message of "Wed, 24 Oct 2012 18:44:23 +0200") Date: Wed, 24 Oct 2012 23:08:44 +0200 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> <50865DF3.7060302@FreeBSD.org> <1TR43g-000Bu7-4L@internal.tormail.org> MIME-Version: 1.0 Content-Type: text/plain X-TorMail-User: jbeich Message-Id: <1TR8C0-000OzE-Es@internal.tormail.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Marcel Moolenaar , src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2012 21:10:34 -0000 Dimitry Andric writes: > On 2012-10-23 11:05, Dimitry Andric wrote: > >> On 2012-10-22 16:58, Jan Beich wrote: >>> Dimitry Andric writes: >>>> On 2012-10-22 09:00, Jan Beich wrote: >> ... >>>>> 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. >> 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? As of r242014, atf-run builds fine with -O3 and libc++ for me. Thanks. > > I will also MFC the fix to stable/9 later on.