Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 755842 - media-gfx/openscad-2019.05-r3 :/.../Point_2.h: error: is_nothrow_swappable_v is not a member of std
Summary: media-gfx/openscad-2019.05-r3 :/.../Point_2.h: error: is_nothrow_swappable_v ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernd
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-11-20 16:49 UTC by Toralf Förster
Modified: 2020-12-07 08:56 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.70 KB, text/plain)
2020-11-20 16:49 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,314.19 KB, text/plain)
2020-11-20 16:49 UTC, Toralf Förster
Details
environment (environment,75.52 KB, text/plain)
2020-11-20 16:49 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,21.11 KB, application/x-bzip)
2020-11-20 16:49 UTC, Toralf Förster
Details
media-gfx:openscad-2019.05-r3:20201120-163435.log (media-gfx:openscad-2019.05-r3:20201120-163435.log,813.54 KB, text/plain)
2020-11-20 16:49 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,30.45 KB, application/x-bzip)
2020-11-20 16:49 UTC, Toralf Förster
Details
build log with changed .pro file (openscad-2019-05-r3-build.log,827.45 KB, text/x-log)
2020-11-21 09:45 UTC, setun.90
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-11-20 16:49:20 UTC
                 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"
Comment 1 Toralf Förster gentoo-dev 2020-11-20 16:49:21 UTC
Created attachment 673936 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-11-20 16:49:23 UTC
Created attachment 673939 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-11-20 16:49:25 UTC
Created attachment 673942 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-11-20 16:49:27 UTC
Created attachment 673945 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-11-20 16:49:29 UTC
Created attachment 673948 [details]
media-gfx:openscad-2019.05-r3:20201120-163435.log
Comment 6 Toralf Förster gentoo-dev 2020-11-20 16:49:31 UTC
Created attachment 673951 [details]
temp.tbz2
Comment 7 setun.90 2020-11-21 09:45:35 UTC
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.
Comment 8 syne 2020-11-22 23:05:04 UTC
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.
Comment 9 Bernd 2020-11-23 21:46:32 UTC
Opened upstream issue, see https://github.com/openscad/openscad/issue/3497
Comment 11 Larry the Git Cow gentoo-dev 2020-11-25 07:50:27 UTC
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(-)
Comment 12 Bernd 2020-11-27 09:33:57 UTC
See also https://github.com/CGAL/cgal/issues/5211
Comment 13 Larry the Git Cow gentoo-dev 2020-12-07 08:56:35 UTC
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(+)