Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689804 - =media-gfx/slic3r-1.3.0-r1 - In file included from src/libslic3r/GCodeSender.cpp:2: src/libslic3r/GCodeSender.hpp:17:48: error: expected class-name before ‘{’ token
Summary: =media-gfx/slic3r-1.3.0-r1 - In file included from src/libslic3r/GCodeSender....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: 3D Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-13 23:30 UTC by vax456
Modified: 2019-11-07 22:12 UTC (History)
2 users (show)

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


Attachments
build.log (file_689804.txt,65.27 KB, text/plain)
2019-07-13 23:33 UTC, vax456
Details
boost-fix.patch (boost-fix.patch,338 bytes, patch)
2019-11-05 03:53 UTC, Chris Mansfield
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description vax456 2019-07-13 23:30:13 UTC
Using GCC 9.1.0 to compile slic3r results in this error:

x86_64-pc-linux-gnu-gcc -I/usr/lib64/perl5/5.30.0/x86_64-linux-thread-multi/CORE -fPIC -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xc++ -Isrc/libslic3r -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -DBOOST_ASIO_DISABLE_KQUEUE -Dexprtk_disable_rtl_io_file -Dexprtk_disable_return_statement -Dexprtk_disable_rtl_vecops -Dexprtk_disable_string_capabilities -Dexprtk_disable_enhanced_features -U__STRICT_ANSI__ -DBOOST_LIBS -DNDEBUG -O -Wno-undefined-var-template -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -march=znver1 -DSLIC3R_FHS=1 -DSLIC3R_WX_STABLE=1 -O2 -pipe -march=znver1 -o src/libslic3r/GCodeSender.o src/libslic3r/GCodeSender.cpp
In file included from src/libslic3r/GCodeSender.cpp:2:
src/libslic3r/GCodeSender.hpp:17:48: error: expected class-name before ‘{’ token
   17 | class GCodeSender : private boost::noncopyable {
      |                                                ^
cc1plus: warning: unrecognized command line option ‘-Wno-undefined-var-template’
error building src/libslic3r/GCodeSender.o from 'src/libslic3r/GCodeSender.cpp' at /usr/lib64/perl5/5.30.0/ExtUtils/CBuilder/Base.pm line 185.

I tried setting the compiler flags described here, but did not work.
https://github.com/prusa3d/PrusaSlicer/issues/1708


Reproducible: Always

Steps to Reproduce:
1. Compile slic3r with GCC 9.1.0
2.
3.
Actual Results:  
Get the above error.


Using boost 1.70.0.
Comment 1 vax456 2019-07-13 23:33:02 UTC
Created attachment 582806 [details]
build.log
Comment 2 vax456 2019-07-20 14:22:14 UTC
Can confirm that =media-gfx/slic3r-9999 is not affected by this issue.
Comment 3 Xepher 2019-08-23 04:53:52 UTC
Can confirm, both that I hit this bug (the one in the title about expected class-name), and that -9999 builds without issue.
Comment 4 Chris Mansfield 2019-11-05 03:53:37 UTC
Created attachment 595038 [details, diff]
boost-fix.patch

I ran into this issue while rebuilding slic3r-1.3.0-r1 after boost was updated. Applying this patch allowed to rebuild successfully.
Comment 5 Larry the Git Cow gentoo-dev 2019-11-07 22:12:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f614b0c825c26ee8e1900fa5e3cf8883d09cd274

commit f614b0c825c26ee8e1900fa5e3cf8883d09cd274
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2019-11-07 22:11:26 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2019-11-07 22:11:52 +0000

    media-gfx/slic3r: Add patch by Chris Mansfield for recent boost
    
    Closes: https://bugs.gentoo.org/689804
    Package-Manager: Portage-2.3.78, Repoman-2.3.17
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 media-gfx/slic3r/files/slic3r-1.3.0-boost.patch | 10 ++++++++++
 media-gfx/slic3r/slic3r-1.3.0-r1.ebuild         |  1 +
 2 files changed, 11 insertions(+)