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.
Created attachment 582806 [details] build.log
Can confirm that =media-gfx/slic3r-9999 is not affected by this issue.
Can confirm, both that I hit this bug (the one in the title about expected class-name), and that -9999 builds without issue.
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.
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(+)