Hi all,
On Fri, 21 Mar 2014 19:39:39 +0100 Johan Engelen <jbc.engelen@...2592...> wrote:
Hi all, I'd like people to check what compiler errors are reported for trunk on their system (Windows I can do myself), with these flags:
-Wall -Wformat -Werror=format-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Werror=switch -Werror=return-type -Werror -Wno-error=pointer-sign -Wno-error=unused-parameter -Wno-error=unused-but-set-variable -Wno-error=strict-overflow -Wno-error=write-strings -Wno-error=format -Wno-error=format-extra-args
Please no comments about whether you like these flags or not, just what build *errors* you get. (don't send me the warnings please!)
(On Windows, with these flags we are down to 3 errorring files, and I'm working on them)
reviving an old thread, here are the results with cmake and ninja on Mageia Linux x86-64 5 ( gcc-4.8.2-5.mga5 ):
< QUOTE > [1/809] Building CXX object src/2geom/CMakeFiles/2geom_LIB.dir/ellipse.cpp.o FAILED: /home/shlomif/bin/c++ -DHAVE_CAIRO_PDF=1 -DHAVE_CONFIG_H -DHAVE_TR1_UNORDERED_SET -DORBIT2=1 -DPOTRACE="potrace" -D_FORTIFY_SOURCE=2 -Wall -Wformat -Werror=format-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Werror=switch -Werror=return-type -Werror -Wno-error=pointer-sign -Wno-error=unused-parameter -Wno-error=unused-but-set-variable -Wno-error=strict-overflow -Wno-error=write-strings -Wno-error=format -Wno-error=format-extra-args -O3 -DNDEBUG -Isrc/2geom -I/home/shlomif/Download/unpack/graphics/inkscape/inkscape/src/2geom -I/home/shlomif/Download/unpack/graphics/inkscape/inkscape/src/bind/javainc -I/home/shlomif/Download/unpack/graphics/inkscape/inkscape/src/bind/javainc/linux -I/home/shlomif/Download/unpack/graphics/inkscape/inkscape -I/home/shlomif/Download/unpack/graphics/inkscape/inkscape/src -Iinclude -isystem /usr/include/gsl -isystem /usr/include/gc -isystem /usr/include/gtk-2.0 -isystem /usr/include/gdkmm-2.4 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/lib64/gtk-2.0/include -isystem /usr/lib64/gdkmm-2.4/include -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/glibmm-2.4 -isystem /usr/lib64/glibmm-2.4/include -isystem /usr/include/gtkmm-2.4 -isystem /usr/lib64/gtkmm-2.4/include -isystem /usr/include/atk-1.0 -isystem /usr/include/atkmm-1.6 -isystem /usr/include/pango-1.0 -isystem /usr/include/pangomm-1.4 -isystem /usr/lib64/pangomm-1.4/include -isystem /usr/include/cairo -isystem /usr/include/cairomm-1.0 -isystem /usr/lib64/cairomm-1.0/include -isystem /usr/include/giomm-2.4 -isystem /usr/include/sigc++-2.0 -isystem /usr/lib64/sigc++-2.0/include -isystem /usr/include/freetype2 -isystem /usr/include/gtkspell-2.0 -isystem /usr/include/libxml2 -isystem /usr/include/ImageMagick-6 -MMD -MT src/2geom/CMakeFiles/2geom_LIB.dir/ellipse.cpp.o -MF "src/2geom/CMakeFiles/2geom_LIB.dir/ellipse.cpp.o.d" -o src/2geom/CMakeFiles/2geom_LIB.dir/ellipse.cpp.o -c /home/shlomif/Download/unpack/graphics/inkscape/inkscape/src/2geom/ellipse.cpp In file included from /home/shlomif/Download/unpack/graphics/inkscape/inkscape/src/2geom/numeric/fitting-model.h:42:0, from /home/shlomif/Download/unpack/graphics/inkscape/inkscape/src/2geom/svg-elliptical-arc.h:48, from /home/shlomif/Download/unpack/graphics/inkscape/inkscape/src/2geom/ellipse.cpp:35: /home/shlomif/Download/unpack/graphics/inkscape/inkscape/src/2geom/poly.h: In member function ‘Geom::Poly Geom::Poly::operator+(const Geom::Poly&) const’: /home/shlomif/Download/unpack/graphics/inkscape/inkscape/src/2geom/poly.h:58:24: error: unused variable ‘out_size’ [-Werror=unused-variable] const unsigned out_size = std::max(size(), p.size()); ^ cc1plus: all warnings being treated as errors ninja: build stopped: subcommand failed.
< END QUOTE >
-----------------------
I have built inkscape using this command:
< QUOTE > cmake -G Ninja -DCMAKE_INSTALL_PREFIX="$HOME/apps/graphics/inkscape-trunk" -DENABLE_LCMS=OFF -DCMAKE_CXX_FLAGS="-Wall -Wformat -Werror=format-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Werror=switch -Werror=return-type -Werror -Wno-error=pointer-sign -Wno-error=unused-parameter -Wno-error=unused-but-set-variable -Wno-error=strict-overflow -Wno-error=write-strings -Wno-error=format -Wno-error=format-extra-args" -DENABLE_POPPLER=OFF -DENABLE_POPPLER_CAIRO=OFF ../inkscape/
< END QUOTE>
After applying this patch (without which cmake would not work):
< QUOTE >
=== modified file 'src/2geom/CMakeLists.txt' --- src/2geom/CMakeLists.txt 2012-02-19 19:56:03 +0000 +++ src/2geom/CMakeLists.txt 2014-02-20 18:40:52 +0000 @@ -21,6 +21,7 @@ nearest-point.cpp numeric/matrix.cpp path-intersection.cpp + path-sink.cpp path.cpp pathvector.cpp piecewise.cpp @@ -43,7 +44,6 @@ solve-bezier-parametric.cpp svg-elliptical-arc.cpp svg-path-parser.cpp - svg-path.cpp sweep.cpp toposweep.cpp transforms.cpp @@ -115,7 +115,6 @@ solver.h svg-elliptical-arc.h svg-path-parser.h - svg-path.h sweep.h toposweep.h transforms.h
=== modified file 'src/CMakeLists.txt' --- src/CMakeLists.txt 2014-03-29 00:57:47 +0000 +++ src/CMakeLists.txt 2014-04-04 18:30:58 +0000 @@ -485,7 +485,6 @@ add_subdirectory(debug) add_subdirectory(dialogs) add_subdirectory(display) -add_subdirectory(dom) add_subdirectory(extension) add_subdirectory(filters) add_subdirectory(helper)
< END QUOTE >
Regards,
Shlomi Fish
Thanks a lot, Johan
Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel