+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake stage-install BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/R-ragg-1.2.7/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake stage-install BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/R-ragg-1.2.7/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Installing for R-ragg-1.2.7
=> Generating pre-install file lists
=> Creating installation directories
* installing *source* package 'ragg' ...
** package 'ragg' successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/opt/pkg/include/freetype2 -I/opt/pkg/include -I/opt/pkg/include/libpng16
Using PKG_LIBS=-L/opt/pkg/lib -lfreetype -lpng16 -ltiff -Wl,-R/opt/pkg/lib -ljpeg -ljpeg
** libs
using C++ compiler: 'g++ (GCC) 13.2.0'
g++ -std=gnu++17 -I"/opt/pkg/lib/R/include" -DNDEBUG -I./agg/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include -I/opt/pkg/include/libpng16 -I'/opt/pkg/lib/R/library/systemfonts/include' -I'/opt/pkg/lib/R/library/textshaping/include' -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses    -fPIC  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses  -c agg/src/agg_curves.cpp -o agg/src/agg_curves.o
g++ -std=gnu++17 -I"/opt/pkg/lib/R/include" -DNDEBUG -I./agg/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include -I/opt/pkg/include/libpng16 -I'/opt/pkg/lib/R/library/systemfonts/include' -I'/opt/pkg/lib/R/library/textshaping/include' -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses    -fPIC  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses  -c agg/src/agg_font_freetype.cpp -o agg/src/agg_font_freetype.o
g++ -std=gnu++17 -I"/opt/pkg/lib/R/include" -DNDEBUG -I./agg/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include -I/opt/pkg/include/libpng16 -I'/opt/pkg/lib/R/library/systemfonts/include' -I'/opt/pkg/lib/R/library/textshaping/include' -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses    -fPIC  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses  -c agg/src/agg_image_filters.cpp -o agg/src/agg_image_filters.o
g++ -std=gnu++17 -I"/opt/pkg/lib/R/include" -DNDEBUG -I./agg/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include -I/opt/pkg/include/libpng16 -I'/opt/pkg/lib/R/library/systemfonts/include' -I'/opt/pkg/lib/R/library/textshaping/include' -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses    -fPIC  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses  -c agg/src/agg_trans_affine.cpp -o agg/src/agg_trans_affine.o
g++ -std=gnu++17 -I"/opt/pkg/lib/R/include" -DNDEBUG -I./agg/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include -I/opt/pkg/include/libpng16 -I'/opt/pkg/lib/R/library/systemfonts/include' -I'/opt/pkg/lib/R/library/textshaping/include' -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses    -fPIC  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses  -c agg/src/agg_vcgen_dash.cpp -o agg/src/agg_vcgen_dash.o
g++ -std=gnu++17 -I"/opt/pkg/lib/R/include" -DNDEBUG -I./agg/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include -I/opt/pkg/include/libpng16 -I'/opt/pkg/lib/R/library/systemfonts/include' -I'/opt/pkg/lib/R/library/textshaping/include' -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses    -fPIC  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses  -c agg/src/agg_vcgen_stroke.cpp -o agg/src/agg_vcgen_stroke.o
ar rcs agg/libstatagg.a agg/src/agg_curves.o agg/src/agg_font_freetype.o  agg/src/agg_image_filters.o agg/src/agg_trans_affine.o  agg/src/agg_vcgen_dash.o agg/src/agg_vcgen_stroke.o
g++ -std=gnu++17 -I"/opt/pkg/lib/R/include" -DNDEBUG -I./agg/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include -I/opt/pkg/include/libpng16 -I'/opt/pkg/lib/R/library/systemfonts/include' -I'/opt/pkg/lib/R/library/textshaping/include' -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses    -fPIC  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/ncurses  -c capture_dev.cpp -o capture_dev.o
In file included from /home/pbulk/build/graphics/R-ragg/work/.buildlink/lib/R/include/Rinternals.h:47,
                 from ragg.h:10,
                 from capture_dev.cpp:1:
/home/pbulk/build/graphics/R-ragg/work/.buildlink/lib/R/include/R_ext/Error.h:41:16: error: '_Noreturn' does not name a type
   41 | # define NORET _Noreturn
      |                ^~~~~~~~~
/home/pbulk/build/graphics/R-ragg/work/.buildlink/lib/R/include/R_ext/Error.h:51:1: note: in expansion of macro 'NORET'
   51 | NORET void Rf_error(const char *, ...);
      | ^~~~~
/home/pbulk/build/graphics/R-ragg/work/.buildlink/lib/R/include/R_ext/Error.h:41:16: error: '_Noreturn' does not name a type
   41 | # define NORET _Noreturn
      |                ^~~~~~~~~
/home/pbulk/build/graphics/R-ragg/work/.buildlink/lib/R/include/R_ext/Error.h:52:1: note: in expansion of macro 'NORET'
   52 | NORET void UNIMPLEMENTED(const char *);
      | ^~~~~
/home/pbulk/build/graphics/R-ragg/work/.buildlink/lib/R/include/R_ext/Error.h:41:16: error: '_Noreturn' does not name a type
   41 | # define NORET _Noreturn
      |                ^~~~~~~~~
/home/pbulk/build/graphics/R-ragg/work/.buildlink/lib/R/include/R_ext/Error.h:53:1: note: in expansion of macro 'NORET'
   53 | NORET void WrongArgCount(const char *);
      | ^~~~~
/home/pbulk/build/graphics/R-ragg/work/.buildlink/lib/R/include/R_ext/Error.h:41:16: error: '_Noreturn' does not name a type
   41 | # define NORET _Noreturn
      |                ^~~~~~~~~
/home/pbulk/build/graphics/R-ragg/work/.buildlink/lib/R/include/Rinternals.h:287:1: note: in expansion of macro 'NORET'
  287 | NORET SEXP * (VECTOR_PTR)(SEXP x);
      | ^~~~~
/home/pbulk/build/graphics/R-ragg/work/.buildlink/lib/R/include/R_ext/Error.h:41:16: error: '_Noreturn' does not name a type
   41 | # define NORET _Noreturn
      |                ^~~~~~~~~
/home/pbulk/build/graphics/R-ragg/work/.buildlink/lib/R/include/Rinternals.h:655:1: note: in expansion of macro 'NORET'
  655 | NORET void R_ContinueUnwind(SEXP cont);
      | ^~~~~
/home/pbulk/build/graphics/R-ragg/work/.buildlink/lib/R/include/R_ext/Error.h:41:16: error: '_Noreturn' does not name a type
   41 | # define NORET _Noreturn
      |                ^~~~~~~~~
/home/pbulk/build/graphics/R-ragg/work/.buildlink/lib/R/include/Rinternals.h:681:1: note: in expansion of macro 'NORET'
  681 | NORET void Rf_errorcall(SEXP, const char *, ...);
      | ^~~~~
init_device.h: In function 'void agg_metric_info(int, pGEcontext, double*, double*, double*, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:13:3: note: in expansion of macro 'END_CPP'
   13 |   END_CPP
      |   ^~~~~~~
ragg.h:27:3: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:13:3: note: in expansion of macro 'END_CPP'
   13 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:13:3: note: in expansion of macro 'END_CPP'
   13 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'void agg_clip(double, double, double, double, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:24:3: note: in expansion of macro 'END_CPP'
   24 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:24:3: note: in expansion of macro 'END_CPP'
   24 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'void agg_new_page(pGEcontext, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:35:3: note: in expansion of macro 'END_CPP'
   35 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:35:3: note: in expansion of macro 'END_CPP'
   35 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'void agg_close(pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:47:3: note: in expansion of macro 'END_CPP'
   47 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:47:3: note: in expansion of macro 'END_CPP'
   47 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'void agg_line(double, double, double, double, pGEcontext, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:59:3: note: in expansion of macro 'END_CPP'
   59 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:59:3: note: in expansion of macro 'END_CPP'
   59 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'void agg_polyline(int, double*, double*, pGEcontext, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:72:3: note: in expansion of macro 'END_CPP'
   72 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:72:3: note: in expansion of macro 'END_CPP'
   72 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'void agg_polygon(int, double*, double*, pGEcontext, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:89:3: note: in expansion of macro 'END_CPP'
   89 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:89:3: note: in expansion of macro 'END_CPP'
   89 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'void agg_path(double*, double*, int, int*, Rboolean, pGEcontext, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:106:3: note: in expansion of macro 'END_CPP'
  106 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:106:3: note: in expansion of macro 'END_CPP'
  106 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'double agg_strwidth(const char*, pGEcontext, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:118:3: note: in expansion of macro 'END_CPP'
  118 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:118:3: note: in expansion of macro 'END_CPP'
  118 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'void agg_rect(double, double, double, double, pGEcontext, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:133:3: note: in expansion of macro 'END_CPP'
  133 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:133:3: note: in expansion of macro 'END_CPP'
  133 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'void agg_circle(double, double, double, pGEcontext, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:149:3: note: in expansion of macro 'END_CPP'
  149 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:149:3: note: in expansion of macro 'END_CPP'
  149 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'void agg_text(double, double, const char*, double, double, pGEcontext, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:162:3: note: in expansion of macro 'END_CPP'
  162 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:162:3: note: in expansion of macro 'END_CPP'
  162 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'void agg_raster(unsigned int*, int, int, double, double, double, double, double, Rboolean, pGEcontext, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:186:3: note: in expansion of macro 'END_CPP'
  186 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:186:3: note: in expansion of macro 'END_CPP'
  186 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'SEXPREC* agg_capture(pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:197:3: note: in expansion of macro 'END_CPP'
  197 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:197:3: note: in expansion of macro 'END_CPP'
  197 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'SEXPREC* agg_setPattern(SEXP, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:206:3: note: in expansion of macro 'END_CPP'
  206 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:206:3: note: in expansion of macro 'END_CPP'
  206 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'void agg_releasePattern(SEXP, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:217:3: note: in expansion of macro 'END_CPP'
  217 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:217:3: note: in expansion of macro 'END_CPP'
  217 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'SEXPREC* agg_setClipPath(SEXP, SEXP, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:226:3: note: in expansion of macro 'END_CPP'
  226 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:226:3: note: in expansion of macro 'END_CPP'
  226 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'void agg_releaseClipPath(SEXP, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:236:3: note: in expansion of macro 'END_CPP'
  236 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:236:3: note: in expansion of macro 'END_CPP'
  236 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'SEXPREC* agg_setMask(SEXP, SEXP, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:245:3: note: in expansion of macro 'END_CPP'
  245 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:245:3: note: in expansion of macro 'END_CPP'
  245 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'void agg_releaseMask(SEXP, pDevDesc)':
ragg.h:27:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
init_device.h:255:3: note: in expansion of macro 'END_CPP'
  255 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
init_device.h:255:3: note: in expansion of macro 'END_CPP'
  255 |   END_CPP
      |   ^~~~~~~
In file included from capture_dev.cpp:2:
init_device.h: In function 'void makeDevice(T*, const char*)':
init_device.h:395:7: error: there are no arguments to 'Rf_error' that depend on a template parameter, so a declaration of 'Rf_error' must be available [-fpermissive]
  395 |       Rf_error("agg device failed to open");
      |       ^~~~~~~~
capture_dev.cpp: In function 'SEXPREC* agg_capture_c(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)':
ragg.h:27:3: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ^~~~~~~~
capture_dev.cpp:21:3: note: in expansion of macro 'END_CPP'
   21 |   END_CPP
      |   ^~~~~~~
ragg.h:30:3: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ^~~~~~~~
capture_dev.cpp:21:3: note: in expansion of macro 'END_CPP'
   21 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]':
capture_dev.cpp:20:36:   required from here
init_device.h:395:15: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
  395 |       Rf_error("agg device failed to open");
      |       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |       ferror
init_device.h: In instantiation of 'void agg_close(pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]':
init_device.h:311:15:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:47:3: note: in expansion of macro 'END_CPP'
   47 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:47:3: note: in expansion of macro 'END_CPP'
   47 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'void agg_clip(double, double, double, double, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]':
init_device.h:312:14:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:24:3: note: in expansion of macro 'END_CPP'
   24 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:24:3: note: in expansion of macro 'END_CPP'
   24 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'void agg_new_page(pGEcontext, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pGEcontext = R_GE_gcontext*; pDevDesc = _DevDesc*]':
init_device.h:314:17:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:35:3: note: in expansion of macro 'END_CPP'
   35 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:35:3: note: in expansion of macro 'END_CPP'
   35 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'void agg_line(double, double, double, double, pGEcontext, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pGEcontext = R_GE_gcontext*; pDevDesc = _DevDesc*]':
init_device.h:315:14:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:59:3: note: in expansion of macro 'END_CPP'
   59 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:59:3: note: in expansion of macro 'END_CPP'
   59 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'void agg_text(double, double, const char*, double, double, pGEcontext, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pGEcontext = R_GE_gcontext*; pDevDesc = _DevDesc*]':
init_device.h:316:14:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:162:3: note: in expansion of macro 'END_CPP'
  162 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:162:3: note: in expansion of macro 'END_CPP'
  162 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'double agg_strwidth(const char*, pGEcontext, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pGEcontext = R_GE_gcontext*; pDevDesc = _DevDesc*]':
init_device.h:317:18:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:118:3: note: in expansion of macro 'END_CPP'
  118 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:118:3: note: in expansion of macro 'END_CPP'
  118 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'void agg_rect(double, double, double, double, pGEcontext, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pGEcontext = R_GE_gcontext*; pDevDesc = _DevDesc*]':
init_device.h:318:14:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:133:3: note: in expansion of macro 'END_CPP'
  133 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:133:3: note: in expansion of macro 'END_CPP'
  133 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'void agg_circle(double, double, double, pGEcontext, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pGEcontext = R_GE_gcontext*; pDevDesc = _DevDesc*]':
init_device.h:319:16:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:149:3: note: in expansion of macro 'END_CPP'
  149 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:149:3: note: in expansion of macro 'END_CPP'
  149 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'void agg_polygon(int, double*, double*, pGEcontext, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pGEcontext = R_GE_gcontext*; pDevDesc = _DevDesc*]':
init_device.h:320:17:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:89:3: note: in expansion of macro 'END_CPP'
   89 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:89:3: note: in expansion of macro 'END_CPP'
   89 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'void agg_polyline(int, double*, double*, pGEcontext, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pGEcontext = R_GE_gcontext*; pDevDesc = _DevDesc*]':
init_device.h:321:18:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:72:3: note: in expansion of macro 'END_CPP'
   72 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:72:3: note: in expansion of macro 'END_CPP'
   72 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'void agg_path(double*, double*, int, int*, Rboolean, pGEcontext, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pGEcontext = R_GE_gcontext*; pDevDesc = _DevDesc*]':
init_device.h:322:14:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:106:3: note: in expansion of macro 'END_CPP'
  106 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:106:3: note: in expansion of macro 'END_CPP'
  106 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'void agg_metric_info(int, pGEcontext, double*, double*, double*, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pGEcontext = R_GE_gcontext*; pDevDesc = _DevDesc*]':
init_device.h:324:20:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:13:3: note: in expansion of macro 'END_CPP'
   13 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:13:3: note: in expansion of macro 'END_CPP'
   13 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'SEXPREC* agg_capture(pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; SEXP = SEXPREC*; pDevDesc = _DevDesc*]':
init_device.h:326:15:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:197:3: note: in expansion of macro 'END_CPP'
  197 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:197:3: note: in expansion of macro 'END_CPP'
  197 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'void agg_raster(unsigned int*, int, int, double, double, double, double, double, Rboolean, pGEcontext, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pGEcontext = R_GE_gcontext*; pDevDesc = _DevDesc*]':
init_device.h:330:16:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:186:3: note: in expansion of macro 'END_CPP'
  186 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:186:3: note: in expansion of macro 'END_CPP'
  186 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'SEXPREC* agg_setPattern(SEXP, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; SEXP = SEXPREC*; pDevDesc = _DevDesc*]':
init_device.h:332:25:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:206:3: note: in expansion of macro 'END_CPP'
  206 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:206:3: note: in expansion of macro 'END_CPP'
  206 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'void agg_releasePattern(SEXP, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; SEXP = SEXPREC*; pDevDesc = _DevDesc*]':
init_device.h:333:25:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:217:3: note: in expansion of macro 'END_CPP'
  217 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:217:3: note: in expansion of macro 'END_CPP'
  217 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'SEXPREC* agg_setClipPath(SEXP, SEXP, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; SEXP = SEXPREC*; pDevDesc = _DevDesc*]':
init_device.h:334:25:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:226:3: note: in expansion of macro 'END_CPP'
  226 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:226:3: note: in expansion of macro 'END_CPP'
  226 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'void agg_releaseClipPath(SEXP, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; SEXP = SEXPREC*; pDevDesc = _DevDesc*]':
init_device.h:335:25:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:236:3: note: in expansion of macro 'END_CPP'
  236 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:236:3: note: in expansion of macro 'END_CPP'
  236 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'SEXPREC* agg_setMask(SEXP, SEXP, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; SEXP = SEXPREC*; pDevDesc = _DevDesc*]':
init_device.h:336:25:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:245:3: note: in expansion of macro 'END_CPP'
  245 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:245:3: note: in expansion of macro 'END_CPP'
  245 |   END_CPP
      |   ^~~~~~~
init_device.h: In instantiation of 'void agg_releaseMask(SEXP, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; SEXP = SEXPREC*; pDevDesc = _DevDesc*]':
init_device.h:337:25:   required from 'DevDesc* agg_device_new(T*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >; pDevDesc = _DevDesc*]'
init_device.h:393:37:   required from 'void makeDevice(T*, const char*) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]'
capture_dev.cpp:20:36:   required from here
ragg.h:27:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   27 |   Rf_error("Memory allocation error. You are likely trying to create too large an image"); \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:255:3: note: in expansion of macro 'END_CPP'
  255 |   END_CPP
      |   ^~~~~~~
ragg.h:30:11: error: 'Rf_error' was not declared in this scope; did you mean 'ferror'?
   30 |   Rf_error("C++ exception: %s", e.what());                                     \
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init_device.h:255:3: note: in expansion of macro 'END_CPP'
  255 |   END_CPP
      |   ^~~~~~~
init_device.h: In function 'SEXPREC* agg_capture(pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]':
init_device.h:198:1: warning: control reaches end of non-void function [-Wreturn-type]
  198 | }
      | ^
init_device.h: In function 'double agg_strwidth(const char*, pGEcontext, pDevDesc) [with T = AggDeviceCapture<agg::pixfmt_alpha_blend_rgba<agg::blender_rgba_pre<agg::rgba8T<agg::linear>, agg::order_rgba>, agg::row_accessor<unsigned char> > >]':
init_device.h:119:1: warning: control reaches end of non-void function [-Wreturn-type]
  119 | }
      | ^
*** Error code 1

Stop.
make: stopped in /home/pbulk/build/graphics/R-ragg/work/ragg/src
ERROR: compilation failed for package 'ragg'
* removing '/home/pbulk/build/graphics/R-ragg/work/.destdir/opt/pkg/lib/R/library/ragg'
*** Error code 1

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/R-ragg
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/R-ragg