Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error in FillRectilinear.cpp if debug is disabled #1425

Closed
Tapchicoma opened this issue Jul 18, 2021 · 1 comment
Closed

Compilation error in FillRectilinear.cpp if debug is disabled #1425

Tapchicoma opened this issue Jul 18, 2021 · 1 comment
Labels
bug Something isn't working as intended fix is live in the last release Please download /build the last release and try to reproduce.

Comments

@Tapchicoma
Copy link

Describe the bug

I am trying to create Gentoo ebuild for SuperSlicer 2.3.56.7 release and see following compilation error:

[112/329] /usr/lib/distcc/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ALL_NO_LIB -DBOOST_ATOMIC_DYN_LINK -DBOOST_CHRONO_DYN_LINK -DBOOST_DATE_TIME_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_LOCALE_DYN_LINK -DBOOST_LOG_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DLIBNEST2D_GEOMETRIES_clipper -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/var/tmp/portage/media-gfx/superslicer-2.3.56.7/work/SuperSlicer-2.3.56.7/src -Isrc/platform -I/var/tmp/portage/media-gfx/superslicer-2.3.56.7/work/SuperSlicer-2.3.56.7/src/clipper -I/var/tmp/portage/media-gfx/superslicer-2.3.56.7/work/SuperSlicer-2.3.56.7/src/polypartition -I/var/tmp/portage/media-gfx/superslicer-2.3.56.7/work/SuperSlicer-2.3.56.7/src/libslic3r -Isrc/libslic3r -I/var/tmp/portage/media-gfx/superslicer-2.3.56.7/work/SuperSlicer-2.3.56.7/src/libnest2d/include -I/var/tmp/portage/media-gfx/superslicer-2.3.56.7/work/SuperSlicer-2.3.56.7/src/glu-libtess/include -isystem /usr/include/eigen3 -isystem /usr/include/miniz -isystem /usr/include/OpenEXR  -DNDEBUG -march=skylake -O2 -pipe -fomit-frame-pointer -ftree-vectorize -fext-numeric-literals -Wall -Wno-reorder -fPIC -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -pthread -DOPENVDB_ABI_VERSION_NUMBER=7 -std=gnu++17 -MD -MT src/libslic3r/CMakeFiles/libslic3r.dir/Fill/FillRectilinear.cpp.o -MF src/libslic3r/CMakeFiles/libslic3r.dir/Fill/FillRectilinear.cpp.o.d -o src/libslic3r/CMakeFiles/libslic3r.dir/Fill/FillRectilinear.cpp.o -c /var/tmp/portage/media-gfx/superslicer-2.3.56.7/work/SuperSlicer-2.3.56.7/src/libslic3r/Fill/FillRectilinear.cpp
FAILED: src/libslic3r/CMakeFiles/libslic3r.dir/Fill/FillRectilinear.cpp.o 
/usr/lib/distcc/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ALL_NO_LIB -DBOOST_ATOMIC_DYN_LINK -DBOOST_CHRONO_DYN_LINK -DBOOST_DATE_TIME_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_LOCALE_DYN_LINK -DBOOST_LOG_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DLIBNEST2D_GEOMETRIES_clipper -DLIBNEST2D_OPTIMIZER_nlopt -DLIBNEST2D_STATIC -DSLIC3R_GUI -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DUSE_TBB -DWXINTL_NO_GETTEXT_MACRO -D_UNICODE -DwxNO_UNSAFE_WXSTRING_CONV -DwxUSE_UNICODE -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/var/tmp/portage/media-gfx/superslicer-2.3.56.7/work/SuperSlicer-2.3.56.7/src -Isrc/platform -I/var/tmp/portage/media-gfx/superslicer-2.3.56.7/work/SuperSlicer-2.3.56.7/src/clipper -I/var/tmp/portage/media-gfx/superslicer-2.3.56.7/work/SuperSlicer-2.3.56.7/src/polypartition -I/var/tmp/portage/media-gfx/superslicer-2.3.56.7/work/SuperSlicer-2.3.56.7/src/libslic3r -Isrc/libslic3r -I/var/tmp/portage/media-gfx/superslicer-2.3.56.7/work/SuperSlicer-2.3.56.7/src/libnest2d/include -I/var/tmp/portage/media-gfx/superslicer-2.3.56.7/work/SuperSlicer-2.3.56.7/src/glu-libtess/include -isystem /usr/include/eigen3 -isystem /usr/include/miniz -isystem /usr/include/OpenEXR  -DNDEBUG -march=skylake -O2 -pipe -fomit-frame-pointer -ftree-vectorize -fext-numeric-literals -Wall -Wno-reorder -fPIC -Werror=return-type -Wno-ignored-attributes -Wno-unknown-pragmas -pthread -DOPENVDB_ABI_VERSION_NUMBER=7 -std=gnu++17 -MD -MT src/libslic3r/CMakeFiles/libslic3r.dir/Fill/FillRectilinear.cpp.o -MF src/libslic3r/CMakeFiles/libslic3r.dir/Fill/FillRectilinear.cpp.o.d -o src/libslic3r/CMakeFiles/libslic3r.dir/Fill/FillRectilinear.cpp.o -c /var/tmp/portage/media-gfx/superslicer-2.3.56.7/work/SuperSlicer-2.3.56.7/src/libslic3r/Fill/FillRectilinear.cpp
/var/tmp/portage/media-gfx/superslicer-2.3.56.7/work/SuperSlicer-2.3.56.7/src/libslic3r/Fill/FillRectilinear.cpp: In function ‘void Slic3r::slice_region_by_vertical_lines(const Slic3r::FillRectilinear*, std::vector<Slic3r::SegmentedIntersectionLine>&, const Slic3r::ExPolygonWithOffset&)’:
/var/tmp/portage/media-gfx/superslicer-2.3.56.7/work/SuperSlicer-2.3.56.7/src/libslic3r/Fill/FillRectilinear.cpp:994:27: error: variable ‘Slic3r::SVG svg’ has initializer but incomplete type
  994 |         ::Slic3r::SVG svg(debug_out_path("slice_region_by_vertical_lines-failed-%d.svg", iRun++), bbox);
      |                           ^~~~~~~~~~~~~

I beleive this line should be wrapped into #ifdef SLIC3R_DEBUG because SVG.h only included in this file only when SLIC3R_DEBUG is enabled (note I have a very limited C++ knowledge)

Build environment

  • Cmake flags:
-DSLIC3R_FHS=1
-DSLIC3R_GTK=3
-DSLIC3R_GUI=1
-DSLIC3R_PCH=0
-DSLIC3R_WX_STABLE=1
  • GCC version: 10.3.0

Desktop (please complete the following information):

  • OS: Linux
  • Version: 2.3.56.7
@supermerill
Copy link
Owner

right

@supermerill supermerill added the bug Something isn't working as intended label Jul 20, 2021
@supermerill supermerill added the fixed for the next version That means that you should be able to test it in the latest nightly build label Jul 31, 2021
supermerill pushed a commit that referenced this issue Jul 31, 2021
@supermerill supermerill added fix is live in the last release Please download /build the last release and try to reproduce. and removed fixed for the next version That means that you should be able to test it in the latest nightly build labels Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended fix is live in the last release Please download /build the last release and try to reproduce.
Projects
None yet
Development

No branches or pull requests

2 participants