Compilation error when using a version of 2geom newer than 2013

Bug #1862458 reported by Apteryx
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libdepixelize
New
Undecided
Unassigned

Bug Description

/tmp/guix-build-libdepixelize-0.0.0-1.187.drv-0/source/src/priv/splines-kopf2011.h:96:21: error: ‘class Geom::PathVector’ has no member named ‘reserve’; did you mean ‘reverse’?
     dest.pathVector.reserve(source.holes.size() + 1);
                     ^~~~~~~
                     reverse

The libdepixelize bundled with Inkscape has a simple fix: simply delete the offending line, as it is a remnant from a time PathVector was implemented using std::vector. See: https://gitlab.com/inkscape/inkscape/-/blob/master/src/3rdparty/libdepixelize/priv/splines-kopf2011.h#L96

Revision history for this message
Apteryx (maxco) wrote :
Download full text (63.2 KiB)

Unfortunately there are other build errors that are not addressed in the Inkscape version (it doesn't include the files which are failing to build):

```
/tmp/guix-build-libdepixelize-0.0.0-1.187.drv-0/source/src/priv/splines-kopf2011.h:96:21: error: ‘class Geom::PathVector’ has no member named ‘reserve’; did you mean ‘reverse’?
     dest.pathVector.reserve(source.holes.size() + 1);
                     ^~~~~~~
                     reverse
/tmp/guix-build-libdepixelize-0.0.0-1.187.drv-0/source/src/priv/splines-kopf2011.h: In instantiation of ‘Tracer::Splines::Splines(const Tracer::HomogeneousSplines<T>&, bool, int) [with T = double]’:
/tmp/guix-build-libdepixelize-0.0.0-1.187.drv-0/source/src/kopftracer2011.cpp:181:52: required from here
/tmp/guix-build-libdepixelize-0.0.0-1.187.drv-0/source/src/priv/splines-kopf2011.h:140:37: warning: unused parameter ‘nthreads’ [-Wunused-parameter]
                  bool optimize, int nthreads) :
                                     ^~~~~~~~
make[2]: *** [src/CMakeFiles/depixelize.dir/build.make:66: src/CMakeFiles/depixelize.dir/kopftracer2011.cpp.o] Error 1
make[2]: Leaving directory '/tmp/guix-build-libdepixelize-0.0.0-1.187.drv-0/build'
make[1]: *** [CMakeFiles/Makefile2:117: src/CMakeFiles/depixelize.dir/all] Error 2
make[1]: Leaving directory '/tmp/guix-build-libdepixelize-0.0.0-1.187.drv-0/build'
make: *** [Makefile:133: all] Error 2
command "make" "-j" "2" failed with status 2
note: keeping build directory `/tmp/guix-build-libdepixelize-0.0.0-1.187.drv-0'
builder for `/gnu/store/jd5439lxncfqw3ipggqz4rcw7paqap9n-libdepixelize-0.0.0-1.187.drv' failed with exit code 1
build of /gnu/store/jd5439lxncfqw3ipggqz4rcw7paqap9n-libdepixelize-0.0.0-1.187.drv failed
View build log at '/var/log/guix/drvs/jd/5439lxncfqw3ipggqz4rcw7paqap9n-libdepixelize-0.0.0-1.187.drv.bz2'.
guix build: error: build of `/gnu/store/jd5439lxncfqw3ipggqz4rcw7paqap9n-libdepixelize-0.0.0-1.187.drv' failed
maxim@apteryx ~/src/guix-core-updates [env]$ ./pre-inst-env guix build libdepixelize
;;; note: source file /home/maxim/src/guix-core-updates/gnu/packages/image.scm
;;; newer than compiled /home/maxim/src/guix-core-updates/gnu/packages/image.go
;;; note: source file /home/maxim/src/guix-core-updates/gnu/packages/image.scm
;;; newer than compiled /run/current-system/profile/lib/guile/2.2/site-ccache/gnu/packages/image.go
;;; note: source file /home/maxim/src/guix-core-updates/gnu/packages/gnome.scm
;;; newer than compiled /home/maxim/src/guix-core-updates/gnu/packages/gnome.go
;;; note: source file /home/maxim/src/guix-core-updates/gnu/packages/gnome.scm
;;; newer than compiled /run/current-system/profile/lib/guile/2.2/site-ccache/gnu/packages/gnome.go
;;; note: source file /home/maxim/src/guix-core-updates/gnu/packages/gtk.scm
;;; newer than compiled /home/maxim/src/guix-core-updates/gnu/packages/gtk.go
;;; note: source file /home/maxim/src/guix-core-updates/gnu/packages/gtk.scm
;;; newer than compiled /run/current-system/profile/lib/guile/2.2/site-ccache/gnu/packages/gtk.go
;;; note: source file /home/maxim/src/guix-core-updates/gnu/packages/textutils.scm
;;; newer than compiled /home/maxim/sr...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.