Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941523 - media-gfx/openscad-2021.01-r5 fails to compile: Intersection_traits.h:124:15: internal compiler error: Segmentation fault
Summary: media-gfx/openscad-2021.01-r5 fails to compile: Intersection_traits.h:124:15:...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-10-14 09:23 UTC by Agostino Sarubbo
Modified: 2025-01-16 16:13 UTC (History)
4 users (show)

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


Attachments
build.log.xz (build.log.xz,31.25 KB, application/x-xz)
2024-10-14 09:23 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-10-14 09:23:08 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-gfx/openscad-2021.01-r5 fails to compile.
Discovered on: x86 (internal ref: tinderbox_x86)
System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0002
Comment 1 Agostino Sarubbo gentoo-dev 2024-10-14 09:23:09 UTC
Created attachment 905783 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2024-10-14 09:23:10 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/usr/include/CGAL/Intersection_traits.h:124:15: internal compiler error: Segmentation fault
/usr/include/CGAL/config.h:147:2: error: #error "CGAL requires C++ 17"
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-15 05:40:13 UTC
Thanks, sent upstream as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117146
Comment 4 Fernando B. Nascimento 2025-01-03 18:47:17 UTC
I beleave that media-gfx/openscad-2021.01-r5 is incompatible with sci-mathematics/cgal-6.0 or newer. Actually any openscad-2021.01.

#### Why:

Build log says (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117146 referenced in comment #3):

    /usr/include/CGAL/config.h:147:2: error: #error "CGAL requires C++ 17"

And the following line is present on https://github.com/openscad/openscad/releases/tag/openscad-2021.01

    Switch to C++14 and allow usage of header-only CGAL

I compiled openscad by masking cgal 6.0 and compiling cgal and openscad:

#### Commands and outputs:

# echo "=sci-mathematics/cgal-6.0" >> /etc/portage/package.mask/openscad-cgal
# emerge -1vq sci-mathematics/cgal && emerge -1vq openscad
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sci-mathematics/cgal-5.6::gentoo
>>> Installing (1 of 1) sci-mathematics/cgal-5.6::gentoo
>>> Completed (1 of 1) sci-mathematics/cgal-5.6::gentoo
>>> Jobs: 1 of 1 complete                                               Load avg: 0.68, 0.53, 0.38

!!! existing preserved libs found
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) media-gfx/openscad-2021.01-r5::gentoo
>>> Installing (1 of 1) media-gfx/openscad-2021.01-r5::gentoo
>>> Completed (1 of 1) media-gfx/openscad-2021.01-r5::gentoo
>>> Jobs: 1 of 1 complete                                               Load avg: 1.30, 1.57, 1.42

#### Sugested fix thatI don't know the correct way of doing:

ebuild depend on <sci-mathematics/cgal-6
Comment 5 wimpy 2025-01-13 18:32:28 UTC
Confirmed solution
After I did
emerge -1a =sci-mathematics/cgal-5.6.1
the
emerge -a media-gfx/openscad
completed successfully.
Thank you to Fernando B. Nascimento!