Open tverbeke opened 3 years ago
I was able to overcome this, cf. commits here, but bumped on a new issue:
[...]
# Making Octave module [r_arch: all]
make[1]: Entering directory '/tmp/Rtmpx73VS6/Rbuild1e4ec64e2ad12/RcppOctave/src/modules'
*** Building octave module: utils.oct
/usr/bin/mkoctfile -v utils.cc
g++ -std=gnu++11 -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-5.2.0/octave/.. -I/usr/include/octave-5.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-rvRilm/octave-5.2.0=. -fstack-protector-strong -Wformat -Werror=format-security utils.cc -o /tmp/oct-4ZyVZ4.o
g++ -I/usr/include/octave-5.2.0/octave/.. -I/usr/include/octave-5.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-rvRilm/octave-5.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -shared -Wl,-Bsymbolic -Wl,-Bsymbolic-functions -Wl,-z,relro -o utils.oct /tmp/oct-4ZyVZ4.o -L/usr/lib/x86_64-linux-gnu -Wl,-Bsymbolic-functions -Wl,-z,relro
*** Building octave module: Rrng.oct
/usr/bin/mkoctfile -v -I/opt/architect/plugins/eu.openanalytics.architect.r.server.gtk.linux/R/include -Wl,--export-dynamic -L/usr/local/lib -L/opt/architect/plugins/eu.openanalytics.architect.r.server.gtk.linux/R/lib -lR -lpcre2-8 -llzma -lbz2 -lz -lrt -ldl -lm -licuuc -licui18n Rrng.cc
g++ -std=gnu++11 -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-5.2.0/octave/.. -I/usr/include/octave-5.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-rvRilm/octave-5.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -I/opt/architect/plugins/eu.openanalytics.architect.r.server.gtk.linux/R/include Rrng.cc -o /tmp/oct-aDqKJ6.o
g++ -I/usr/include/octave-5.2.0/octave/.. -I/usr/include/octave-5.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-rvRilm/octave-5.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -shared -Wl,-Bsymbolic -Wl,-Bsymbolic-functions -Wl,-z,relro -o Rrng.oct /tmp/oct-aDqKJ6.o -Wl,--export-dynamic -L/usr/local/lib -L/opt/architect/plugins/eu.openanalytics.architect.r.server.gtk.linux/R/lib -lR -lpcre2-8 -llzma -lbz2 -lz -lrt -ldl -lm -licuuc -licui18n -L/usr/lib/x86_64-linux-gnu -Wl,-Bsymbolic-functions -Wl,-z,relro
make[1]: Leaving directory '/tmp/Rtmpx73VS6/Rbuild1e4ec64e2ad12/RcppOctave/src/modules'
# Copying Octave modules to directory '/tmp/Rtmpx73VS6/Rinst1e4ec777a5b75/00LOCK-RcppOctave/00new/RcppOctave/modules'
g++ -std=gnu++11 -I"/opt/architect/plugins/eu.openanalytics.architect.r.server.gtk.linux/R/include" -DNDEBUG `"/opt/architect/plugins/eu.openanalytics.architect.r.server.gtk.linux/R/bin/Rscript" -e "Rcpp:::CxxFlags()"` -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/octave-5.2.0/octave/.. -I/usr/include/octave-5.2.0/octave -DOCT_POST_3_4_0=1 -I'/home/tverbeke/.architect/workspace/.metadata/.r/eplugin-local-eu.openanalytics.r.server/user-library/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c conversion.cpp -o conversion.o
conversion.cpp: In function ‘T Rcpp::as(SEXP) [with T = octave_value; SEXP = SEXPREC*]’:
conversion.cpp:471:50: error: invalid initialization of reference of type ‘const octave_value&’ from expression of type ‘octave_value_list’
471 | const octave_value& ol = as<octave_value_list>(x);
| ~~~~~~~~~~~~~~~~~~~~~^~~
make: *** [/opt/architect/plugins/eu.openanalytics.architect.r.server.gtk.linux/R/etc/Makeconf:181: conversion.o] Error 1
ERROR: compilation failed for package ‘RcppOctave’
* removing ‘/tmp/Rtmpx73VS6/Rinst1e4ec777a5b75/RcppOctave’
-----------------------------------
ERROR: package installation failed
Many thanks for your work on this project. Please find the log below when trying to build the package using R 4.0.3 on Ubuntu 20.04. Let me know if any additional information is required