From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 39E18139085 for ; Sun, 5 Feb 2017 20:17:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 43905E0DC0; Sun, 5 Feb 2017 20:17:48 +0000 (UTC) Received: from inpbox.inp.nsk.su (inpbox.inp.nsk.su [84.237.43.120]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA256 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EF8EFE0DC0 for ; Sun, 5 Feb 2017 20:17:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gentoo.org; s=mail; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date; bh=DIuYXdCQPsOx66OT4OzQZPxHtws1/VXnMY7UfPZdmYk=; b=RnU4RwB7N2v4M81yxijlQXvd+eKW3JK4Q9kG9lqq6oAdAbMoyDRQlOc9HScq6Ycj/87vIaBAkUH0Qn15aQwxBbSX3ppO8uHbk9hRhVpCKC0K3qPzOQb7PTAXtRAWd2tjEf64FAAewCQvnU2o04oL4rQ9sD8NXCgu0wCNpF8fibU=; Received: from star.inp.nsk.su ([192.168.167.21]) by inpbox.inp.nsk.su with esmtp (Exim 4.80) (envelope-from ) id 1caTFo-0004np-Rp for gentoo-science@lists.gentoo.org; Mon, 06 Feb 2017 03:17:44 +0700 Received: by star.inp.nsk.su (Postfix, from userid 1460) id 5554316A0C08; Mon, 6 Feb 2017 03:17:42 +0700 (+07) Received: from localhost (localhost [127.0.0.1]) by star.inp.nsk.su (Postfix) with ESMTP id 52B0616A0356 for ; Mon, 6 Feb 2017 03:17:42 +0700 (+07) Date: Mon, 6 Feb 2017 03:17:42 +0700 (+07) From: grozin@gentoo.org X-X-Sender: grozin@star.inp.nsk.su To: gentoo-science@lists.gentoo.org Subject: [gentoo-science] -std=c++11 Message-ID: User-Agent: Alpine 2.20 (LRH 67 2015-01-07) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-science@lists.gentoo.org Reply-to: gentoo-science@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="-1463806553-729569676-1486325862=:62380" X-Archives-Salt: 4a04e1c9-ccab-4216-a830-3bbf8ef33f19 X-Archives-Hash: c56f74e7a02e7e5ae9db9c585ecb0002 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463806553-729569676-1486325862=:62380 Content-Type: text/plain; format=flowed; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT Hello *, Sorry, I'm not a C++ expert, and I need some help. I'm trying to bump sci-mathematics/ginac and some of its revdeps. The current ginac is 1.7.2, and it needs -std=c++11 (or gnu++11). I added append-cxxflags -std=c++11 to src_configure; also added src_test which was missing previously. ginac compiles and passes tests, also ginsh works. Fine. The current sci-physics/nestedsums is 1.5.1, it depends on >=sci-mathematics/ginac-1.7 and needs -std=c++11. I've made the necessary changes to the ebuild, it compiles and seems to work (its testsuite is broken, cannot use it). Also fine. Then there's sci-physics/reduze. It is still 2.1, no new versions have appeared. It has to be recompiles after upgrading ginac. If I compile it without -std=c++11, I get a lot of syntax errors in .h files from ginac: /usr/include/ginac/ptr.h:37:13: error: expected ˇ;˘ at end of member declaration /usr/include/ginac/ptr.h:37:15: error: ˇnoexcept˘ does not name a type /usr/include/ginac/ptr.h:57:31: error: ˇ>>˘ should be ˇ> >˘ within a nested template argument list /usr/include/ginac/ptr.h:124:44: error: expected initializer before ˇnoexcept˘ etc. etc. If I compile it with -std=c++11, I get errors about operators from stdlib: /var/tmp/portage/sci-physics/reduze-2.1/work/reduze-2.1/reduze/files.cpp:726:27: error: no match for ˇoperator<<˘ (operand types are ˇstd::basic_ostream˘ and ˇstd::ofstream {aka std::basic_ofstream}˘) /var/tmp/portage/sci-physics/reduze-2.1/work/reduze-2.1/reduze/functions.h:258:46: error: cannot bind ˇstd::basic_ostream˘ lvalue to ˇstd::basic_ostream&&˘ etc. Does this mean that in order to compile it stdlib should be recompiled with -std=c++11? Will it break all the other C++ packages in the system? Many thanks in advance, Andrey ---1463806553-729569676-1486325862=:62380--