Summary: | media-gfx/slic3r-1.2.9-r2: fails to build with gcc-6.3.0 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mateusz Lenik <mlen> |
Component: | Current packages | Assignee: | 3D Printing Team <3dprint> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jstein, perl |
Priority: | Normal | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Mateusz Lenik
2017-06-20 17:48:45 UTC
Looks like this is because the default mode for C++ in GCC 6 is -std=gnu++14 instead of -std=gnu++98. Managed to get it to build locally by putting append-cxxflags -std=gnu++98 append-cppflags -std=gnu++98 append-cflags -std=gnu++98 in to src_configure and src_compile. I know this might be superfluous but it was a brute force test with a hammer. cxxflags alone didn't work. (In reply to Wes from comment #2) > Managed to get it to build locally by putting > > append-cxxflags -std=gnu++98 > append-cppflags -std=gnu++98 > append-cflags -std=gnu++98 > > in to src_configure and src_compile. I know this might be superfluous but > it was a brute force test with a hammer. cxxflags alone didn't work. Wes, exactly what does src_compile and src_configure look like after adding this? I seem to have the same problem using gcc-6.4.0 and would like to just get slic3r up and running even if it involves a solution like yours. I ported the code to be c++11 and newer compatible. Please test. Note also that 1.1.7 seems fine as-is. commit 774e1f608b1a4497ff097fac97d38b3722ee4e29 (HEAD -> master) Author: Ian Stakenvicius <axs@gentoo.org> Date: Wed Sep 27 11:46:18 2017 -0400 media-gfx/slic3r: make v1.2.9 code c++11 compatible for gcc6+ Bug: http://bugs.gentoo.org/622338 The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=583527c74d677920d06fdcbbd91931e090eed384 commit 583527c74d677920d06fdcbbd91931e090eed384 Author: Ian Stakenvicius <axs@gentoo.org> AuthorDate: 2017-09-27 15:46:18 +0000 Commit: Ian Stakenvicius <axs@gentoo.org> CommitDate: 2017-09-27 15:48:08 +0000 media-gfx/slic3r: make v1.2.9 code c++11 compatible for gcc6+ Bug: http://bugs.gentoo.org/622338 Package-Manager: Portage-2.3.8, Repoman-2.3.1 media-gfx/slic3r/files/slic3r-1.2.9-c++11.patch | 38 +++++++++++++++++++++++++ media-gfx/slic3r/slic3r-1.2.9-r2.ebuild | 3 +- 2 files changed, 40 insertions(+), 1 deletion(-)} What is the status now? Can we close it? (In reply to Jonas Stein from comment #6) > What is the status now? Can we close it? Assuming yes. |