From owner-freebsd-stable@FreeBSD.ORG Sun Feb 9 00:13:19 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 373F6ADB for ; Sun, 9 Feb 2014 00:13:19 +0000 (UTC) Received: from mail-qa0-f47.google.com (mail-qa0-f47.google.com [209.85.216.47]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E23C61C03 for ; Sun, 9 Feb 2014 00:13:18 +0000 (UTC) Received: by mail-qa0-f47.google.com with SMTP id j5so7597926qaq.34 for ; Sat, 08 Feb 2014 16:13:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=TkItOJ1UxRw6FRXFdgpH2m658xh5VcenVk77nQ+KmXo=; b=fLS3JZ5yLr5dto2IkxHGVueGjlOL55hO7bmfCUxsI7zTNe1Y3EVdB0nWWcmAhS5myK NejffCYlC52EPkiuBFGsRgt33dDX7k/fPn9wcvpxjns07gKfBSzhNTH3+Ket4Cf9s+Nj tzIf/LX1akKp3eyNv/TIC79nG7ZxTx/hUNsgMs+NJDLbs21XRSEliLIOt4JXrlzdnJA0 7+YgU0MPbXLaVvLxulcvupEVJpmyj5xyaavIlh6cL200W/CkWigwlAD2TJKuMLCItA11 afXNiOo9c1xXQ7kw17mTiUWUexNUXpbOPJ3N0T4LPe3gEC9+sSzEqf2C7N6192yGFmST dPig== X-Gm-Message-State: ALoCoQktug0uWvQaqbXqO74jG24jci8KrbmwVrR7Kd/d90lqHqEdbL0moDnGZAkGaDszCUFuR2pi X-Received: by 10.140.102.69 with SMTP id v63mr33212738qge.5.1391904792599; Sat, 08 Feb 2014 16:13:12 -0800 (PST) Received: from [192.168.1.3] (pool-96-225-163-50.nrflva.fios.verizon.net. [96.225.163.50]) by mx.google.com with ESMTPSA id h12sm16697203qge.0.2014.02.08.16.13.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 08 Feb 2014 16:13:11 -0800 (PST) Message-ID: <52F6C7D9.20501@ohlste.in> Date: Sat, 08 Feb 2014 19:12:09 -0500 From: Jim Ohlstein User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Roger Leigh Subject: Re: 10.0 toolchain broken for C++11 code References: <20140208233255.GA6282@amys.codelibre.net> In-Reply-To: <20140208233255.GA6282@amys.codelibre.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: David Chisnall , freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Feb 2014 00:13:19 -0000 Hello, On 2/8/14, 6:32 PM, Roger Leigh wrote: > Hi folks, > > I'm new to using FreeBSD. I'm the author of the schroot(1) tool, and I've > been porting it to FreeBSD using the new 10.0-RELEASE on amd64 and powerpc. > The plan is to make it support jails and ZFS snapshots on FreeBSD systems. > However, I've hit a blocker in that after fixing a few Linux-isms I've > I've found that I can't actually link my code. > > This is a minimal testcase: > > % cat test.cpp > #include > > int main() > { > const std::type_info& t = typeid(nullptr); > } > > % CC -std=c++11 -o test test.cpp > /tmp/test-OoDHHT.o: In function `main': > test.cpp:(.text+0xd): undefined reference to `_ZTIDn' > CC: error: linker command failed with exit code 1 (use -v to see invocation) > > See also: > standards/185663 > https://github.com/pathscale/libcxxrt/issues/16 The fix was committed to head (260553) on 1/11/14 and was supposed to be MFC'd in one week. See http://svnweb.freebsd.org/base?view=revision&revision=260553. I don't see that it's happened as of r261643. I have cc'd David Chisnall. Perhaps he can address it. > > Being unfamiliar with FreeBSD my question is really, what sort of timescale > is typical for fixing this type of issue? At least for my code, the > toolchain is basically unusable until this is fixed, and I don't think > there's a workaround for it. If it gets fixed in -STABLE, is it possible > to selectively cherry-pick this somehow, or would I need to switch to > -STABLE wholesale? Is there an expected date for 10.1 to be released? Probably a little while. 10.0-RELEASE was just finalized last moonth. If there's going to be an 8.5-RELEASE it will probably be next. Otherwise, 9.3-RELASE will probably be next. -- Jim Ohlstein "Never argue with a fool, onlookers may not be able to tell the difference." - Mark Twain