From: grozin@gentoo.org
To: gentoo-science@lists.gentoo.org
Subject: [gentoo-science] -std=c++11
Date: Mon, 6 Feb 2017 03:17:42 +0700 (+07) [thread overview]
Message-ID: <alpine.LRH.2.20.1702060042220.62380@star.inp.nsk.su> (raw)
[-- Attachment #1: Type: text/plain, Size: 1812 bytes --]
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<char>’ and ‘std::ofstream {aka
std::basic_ofstream<char>}’)
/var/tmp/portage/sci-physics/reduze-2.1/work/reduze-2.1/reduze/functions.h:258:46:
error: cannot bind ‘std::basic_ostream<char>’ lvalue to
‘std::basic_ostream<char>&&’
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
next reply other threads:[~2017-02-05 20:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-05 20:17 grozin [this message]
2017-02-05 20:23 ` [gentoo-science] -std=c++11 David Seifert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LRH.2.20.1702060042220.62380@star.inp.nsk.su \
--to=grozin@gentoo.org \
--cc=gentoo-science@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox