from src/cgalutils.h:3, from src/polyset-utils.cc:9: /usr/include/CGAL/Point_2.h:89:19: error: ‘is_nothrow_swappable_v’ is not a member of ‘std’; did you mean ‘is_nothrow_swappable’? 89 | noexcept(std::is_nothrow_swappable_v<Rep>) | ^~~~~~~~~~~~~~~~~~~~~~ | is_nothrow_swappable ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_gnome_systemd-libressl-20201110-201519 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.1 [2] x86_64-pc-linux-gnu-10.2.0 * clang version 11.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/11/bin /usr/lib/llvm/11 11.0.0 Available Python interpreters, in order of preference: [1] python3.7 [2] python3.9 (fallback) [3] python3.8 (fallback) [4] python2.7 (fallback) [5] pypy3 (fallback) Available Ruby profiles: [1] ruby25 (with Rubygems) [2] ruby26 (with Rubygems) [3] ruby27 (with Rubygems) * Available Rust versions: [1] rust-1.47.0 * The following VMs are available for generation-2: 1) JamVM JDK 2.0.0 [jamvm] *) AdoptOpenJDK 8.272_p10 [openjdk-bin-8] Available Java Virtual Machines: [1] jamvm [2] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.8.4 timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Fri Nov 20 04:05:38 PM UTC 2020 /var/db/repos/libressl Sat Nov 7 03:06:11 PM UTC 2020 emerge -qpvO media-gfx/openscad [ebuild N ] media-gfx/openscad-2019.05-r3 USE="-ccache -emacs"
Created attachment 673936 [details] emerge-info.txt
Created attachment 673939 [details] emerge-history.txt
Created attachment 673942 [details] environment
Created attachment 673945 [details] etc.portage.tbz2
Created attachment 673948 [details] media-gfx:openscad-2019.05-r3:20201120-163435.log
Created attachment 673951 [details] temp.tbz2
Created attachment 673993 [details] build log with changed .pro file Hit this same bug with practically the same config. Looking through the logs, the functions which are giving errors are in at least C++14 (and some are in C++17), but the project is compiling with C++11, as configured by qmake. On a hunch, I stepped through the ebuild: $ ebuild /var/db/repos/gentoo/media-gfx/openscad-2019.05-r3.ebuild unpack $ nano ${S}/openscad.pro changed openscad.pro:181 -CONFIG += c++11 +CONFIG += c++17 then $ ebuild /var/db/repos/gentoo/media-gfx/openscad-2019.05-r3.ebuild install And now it compiles with '-std=gnu++1z', but gives a different error about an 'incomplete type used in nested name specifier' (details in the build log). I don't see any issues upstream about this specifically.
Quickfix for now: It's the CGAL version. Recently they bumped it to 5.1: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66483bfa09b4bb6e68d54eea4917bd474d590195 Masking that version (downgrade to 4.11.3) solved the issue for me. Hope that helps.
Opened upstream issue, see https://github.com/openscad/openscad/issue/3497
https://github.com/openscad/openscad/issues/3497
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48861bbda2a93a12a71c88aee5774e925c1f938c commit 48861bbda2a93a12a71c88aee5774e925c1f938c Author: Bernd Waibel <waebbl@gmail.com> AuthorDate: 2020-11-23 21:36:43 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2020-11-25 07:50:18 +0000 media-gfx/openscad: fix build issue with cgal-5.1 For now use <sci-mathematics/cgal-5 due to a failure with current cgal-5.1. Issue reported upstream, see https://github.com/openscad/openscad/issues/3497 Closes: https://bugs.gentoo.org/755842 Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Bernd Waibel <waebbl@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/18380 Signed-off-by: Joonas Niilola <juippis@gentoo.org> media-gfx/openscad/openscad-2019.05-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
See also https://github.com/CGAL/cgal/issues/5211
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ca77f3783cb66686e621382fe9f49a6798159f9 commit 2ca77f3783cb66686e621382fe9f49a6798159f9 Author: Bernd Waibel <waebbl@gmail.com> AuthorDate: 2020-11-27 23:56:21 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2020-12-07 08:56:28 +0000 media-gfx/openscad: fix issue with cgal Fixes the issue of not building against cgal-5.1. Also installs locales into correct dir. Bug: https://bugs.gentoo.org/755842 Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Bernd Waibel <waebbl@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/18435 Signed-off-by: Joonas Niilola <juippis@gentoo.org> ...ad-2019.05-0003-change-C-standard-to-c-14.patch | 76 ++++++++++++++ media-gfx/openscad/openscad-2019.05-r4.ebuild | 115 +++++++++++++++++++++ 2 files changed, 191 insertions(+)