asgr / rwcs Goto Github PK
View Code? Open in Web Editor NEWInterface to C wcslib
Interface to C wcslib
The compilation of Rwcs crashes using either of
install_github("asgr/Rwcs")
or
install.packages('/home/cnaw/Rwcs_1.7.0.tar.gz',repos=NULL,type='source')
...
ar rU libwcs-PIC.a cel.o dis.o fitshdr.o lin.o log.o prj.o spc.o sph.o spx.o tab.o wcs.o wcsbth.o wcserr.o wcsfix.o wcshdr.o wcspih.o wcsprintf.o wcstrig.o wcsulex.o wcsunits.o wcsutil.o wcsutrn.o
ar: creating libwcs-PIC.a
make[1]: Leaving directory '/tmp/Rtmp72MZZJ/R.INSTALLb4e77cdac2f3/Rwcs/src/wcslib/C'
g++ -std=gnu++11 -shared -L/usr/lib64/R/lib -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -o Rwcs.so RcppExports.o Rwcs.o pnpoly.o mat_diff_sum.o dilate.o wcslib/C/libwcs-PIC.a -L/usr/lib64/R/lib -lR
/usr/include/R/Rinternals.h:1107:7: error: variable ‘CAR’ redeclared as function
1107 | SEXP (CAR)(SEXP e);
| ^
wcslib/C/prj.c:71:11: note: previously declared here
71 | const int CAR = 203;
| ^
lto1: fatal error: errors during merging of translation units
compilation terminated.
lto-wrapper: fatal error: g++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [/usr/share/R/make/shlib.mk:10: Rwcs.so] Error 1
ERROR: compilation failed for package ‘Rwcs’
I (re-) compiled Rwcs under R 4.2.3 and it completes normally. While there are differences between the Rinternals.h files of both versions of R none seem to involve CAR. Any suggestion on what could be the source of the problem?
Thanks!
Christopher Willmer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.