[R-sig-Debian] building R Devel --enable-R-shlib

Dirk Eddelbuettel edd at debian.org
Fri Feb 5 13:29:46 CET 2016


On 4 February 2016 at 22:56, Sebastian P. Luque wrote:
| Hello,
| 
| It has been a while since my last R Devel build, and now I'm running
| into an issue I'm not sure how to isolate.  After updating to the latest
| SVN sources, and using:
| 
| ---<--------------------cut here---------------start------------------->---
| tools/rsync-recommended
| R_PAPERSIZE=letter \
| R_BATCHSAVE="--no-save --no-restore" \
| R_BROWSER=xdg-open \
| LIBnn=lib \
| ./configure \
|     --enable-R-shlib \
|     --enable-strict-barrier \

I don't set that but it shouldn't bite ...

|     --with-blas \
|     --with-lapack \

... and I turn those off.

|     --with-readline \
|     --with-tcl-config=/usr/lib/tcl8.6/tclConfig.sh \
|     --with-tk-config=/usr/lib/tk8.6/tkConfig.sh
| make
| ---<--------------------cut here---------------end--------------------->---
| 
| the build shows several warnings about function dataptr:
| 
| ---<--------------------cut here---------------start------------------->---
| radixsort.c:1643:10: warning: implicit declaration of function ‘DATAPTR’ [-Wimplicit-function-declaration]
|      xd = DATAPTR(x);
|           ^
| radixsort.c:1643:8: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
|      xd = DATAPTR(x);
|         ^
| radixsort.c:1735:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
|   xd = DATAPTR(x);
| ---<--------------------cut here---------------end--------------------->---

This is pretty new code by Matt + Arun integrated by Michael. On the other
hand DATAPTR is pretty standard and defined in src/include/Rinternals.h --
which src/main/radixsort.c does not include.

Are you using gcc-5.2.* ?  It still works for me with gcc-4.9 on Ubuntu.

We could ping Michael (who integrated this) and Matt/Arun who wrote the radix
sort.

Dirk
 
| which eventually cause the build to fail completely with:
| 
| ---<--------------------cut here---------------start------------------->---
| ../../lib/libR.so: undefined reference to `DATAPTR'
| collect2: error: ld returned 1 exit status
| Makefile:144: recipe for target 'R.bin' failed
| make[3]: *** [R.bin] Error 1
| make[3]: Leaving directory '/usr/local/src/R/Devel/src/main'
| Makefile:134: recipe for target 'R' failed
| make[2]: *** [R] Error 2
| make[2]: Leaving directory '/usr/local/src/R/Devel/src/main'
| Makefile:28: recipe for target 'R' failed
| make[1]: *** [R] Error 1
| make[1]: Leaving directory '/usr/local/src/R/Devel/src'
| Makefile:60: recipe for target 'R' failed
| make: *** [R] Error 1
| ---<--------------------cut here---------------end--------------------->---
| 
| Any tips to pinpoint the problem?
| 
| Thanks,
| 
| -- 
| Seb
| 
| _______________________________________________
| R-SIG-Debian mailing list
| R-SIG-Debian at r-project.org
| https://stat.ethz.ch/mailman/listinfo/r-sig-debian
-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



More information about the R-SIG-Debian mailing list