Coder Social home page Coder Social logo

rwcs's People

Contributors

asgr avatar rtobar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

rohanvaradaraj

rwcs's Issues

cannot compile with R 4.3.2 under Fedora 38

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’

  • removing ‘/usr/lib64/R/library/Rwcs’
    Warning message:
    In i.p(...) :
    installation of package ‘/tmp/RtmpWIwxEN/file145de8be1f9/Rwcs_1.7.0.tar.gz’ had non-zero exit status

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

Rinternals_4.2.3.h.gz
Rinternals_4.3.2.h.gz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.