From owner-freebsd-ports@FreeBSD.ORG Sun Mar 8 16:42:17 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D3DD7CAB for ; Sun, 8 Mar 2015 16:42:17 +0000 (UTC) Received: from quine.pinyon.org (quine.pinyon.org [65.101.5.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A921D23A for ; Sun, 8 Mar 2015 16:42:17 +0000 (UTC) Received: by quine.pinyon.org (Postfix, from userid 122) id 2F99E160275; Sun, 8 Mar 2015 09:42:16 -0700 (MST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on quine.pinyon.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Received: from feyerabend.n1.pinyon.org (feyerabend.n1.pinyon.org [10.0.10.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by quine.pinyon.org (Postfix) with ESMTPSA id C4B1016014C for ; Sun, 8 Mar 2015 09:42:13 -0700 (MST) Message-ID: <54FC7BE5.7010106@pinyon.org> Date: Sun, 08 Mar 2015 09:42:13 -0700 From: "Russell L. Carter" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Single worst bug for ports: lang/gcc* doesn't support c++11 References: <54FB8656.8060502@rawbw.com> <54FBDDE0.6090806@pinyon.org> <54FBEE00.6060501@rawbw.com> In-Reply-To: <54FBEE00.6060501@rawbw.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Mar 2015 16:42:17 -0000 On 03/07/15 23:36, Yuri wrote: > On 03/07/2015 21:28, Russell L. Carter wrote: >> >> I would like to understand better the problem here, because I use c++11 >> features heavily with lang/gcc49 on a daily basis with zero problems. > > No, gcc-4.9.3 fails in the same way. Specific missing feature: > std::snprintf > > error: 'snprintf' is not a member of 'std' Ok, I can confirm missing std::to_string in lang/g++49, fixed with -D_GLIBCXX_USE_C99. In /usr/local/lib/gcc49/include/c++/bits/basic_string.h std::to_string() and company are convenience wrappers for the c conversion functions, and according to: https://gcc.gnu.org/ml/libstdc++/2013-10/msg00246.html this would seem like a bug in the process the gnu c and c++ people use to manage "newlib" development versioning. Lots of other folk (netbsd, cygwin, arm) are complaining too. I can understand the porting aggravation but I'm not sure that there are no bugs lurking in any of that code protected by the #ifdef, so just eliding it doesn't seem zero-risk. Russell > Yuri > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"