[3dprinter-general] Bug#895214: slic3r-prusa FTBFS on mips/mipsel:

Adrian Bunk bunk at debian.org
Sun Apr 8 12:36:15 UTC 2018


Source: slic3r-prusa
Version: 1.39.1+dfsg-2
Severity: serious
Tags: patch

https://buildd.debian.org/status/package.php?p=slic3r-prusa&suite=sid

...
[ 76%] Building CXX object xs/CMakeFiles/libslic3r.dir/src/libslic3r/PlaceholderParser.cpp.o
cd /<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/obj-mipsel-linux-gnu/xs && /usr/bin/c++  -DBOOST_LOG_DYN_LINK -DSLIC3R_GUI -DSLIC3R_PRUS -DTBB_USE_CAPTURED_EXCEPTION=0 -DUNICODE -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D_UNICODE -D__WXGTK__ -DwxUSE_UNICODE -I/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src -I/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src/libslic3r -I/usr/lib/mipsel-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -I/usr/include/eigen3  -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG   -fPIC -std=c++11 -Wall -fext-numeric-literals -std=gnu++11 -o CMakeFiles/libslic3r.dir/src/libslic3r/PlaceholderParser.cpp.o -c /<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src/libslic3r/PlaceholderParser.cpp
/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src/libslic3r/PlaceholderParser.cpp: In function 'std::__cxx11::string Slic3r::process_macro(const string&, Slic3r::client::MyContext&)':
/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src/libslic3r/PlaceholderParser.cpp:1145:10: warning: unused variable 'res' [-Wunused-variable]
     bool res = phrase_parse(iter, end, macro_processor_instance(&context), space, output);
          ^~~
/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src/libslic3r/PlaceholderParser.cpp: In instantiation of 'Slic3r::client::macro_processor<Iterator>::macro_processor() [with Iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >]':
/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src/libslic3r/PlaceholderParser.cpp:1139:33:   required from here
/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src/libslic3r/PlaceholderParser.cpp:881:39: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
                 (       eps(_a==true) > text_block(_r1) [_val=_1]
                         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src/libslic3r/PlaceholderParser.cpp: In instantiation of 'static void Slic3r::client::expr<Iterator>::ternary_op(Slic3r::client::expr<Iterator>&, Slic3r::client::expr<Iterator>&, Slic3r::client::expr<Iterator>&) [with Iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >]':
/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src/libslic3r/PlaceholderParser.cpp:947:103:   required from 'Slic3r::client::macro_processor<Iterator>::macro_processor() [with Iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >]'
/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src/libslic3r/PlaceholderParser.cpp:1139:33:   required from here
/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src/libslic3r/PlaceholderParser.cpp:469:18: warning: unused variable 'value' [-Wunused-variable]
             bool value = false;
                  ^~~~~
/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src/libslic3r/PlaceholderParser.cpp: In instantiation of 'static void Slic3r::client::expr<Iterator>::regex_op(Slic3r::client::expr<Iterator>&, boost::iterator_range<IteratorT>&, char) [with Iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >]':
/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src/libslic3r/PlaceholderParser.cpp:449:106:   required from 'static void Slic3r::client::expr<Iterator>::regex_matches(Slic3r::client::expr<Iterator>&, boost::iterator_range<IteratorT>&) [with Iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >]'
/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src/libslic3r/PlaceholderParser.cpp:965:72:   required from 'Slic3r::client::macro_processor<Iterator>::macro_processor() [with Iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >]'
/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src/libslic3r/PlaceholderParser.cpp:1139:33:   required from here
/<<BUILDDIR>>/slic3r-prusa-1.39.1+dfsg/xs/src/libslic3r/PlaceholderParser.cpp:427:32: warning: unused variable 'mask' [-Wunused-variable]
             const std::string *mask     = nullptr;
                                ^~~~
virtual memory exhausted: Cannot allocate memory
xs/CMakeFiles/libslic3r.dir/build.make:1169: recipe for target 'xs/CMakeFiles/libslic3r.dir/src/libslic3r/PlaceholderParser.cpp.o' failed
make[3]: *** [xs/CMakeFiles/libslic3r.dir/src/libslic3r/PlaceholderParser.cpp.o] Error 1


Fix:

--- debian/rules.old	2018-04-03 05:39:30.057140450 +0000
+++ debian/rules	2018-04-03 05:40:48.460469366 +0000
@@ -2,6 +2,12 @@
 
 include /usr/share/dpkg/default.mk
 
+# less debug info to avoid running
+# out of address space
+ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel))
+  export DEB_CXXFLAGS_MAINT_APPEND += -g1
+endif
+
 %:
 	dh $@ --buildsystem=cmake --parallel
 



More information about the 3dprinter-general mailing list