[R-pkg-devel] Setting up R-devel in Linux Mint 17.1 64-bit

MAURICIO ZAMBRANO BIGIARINI mauricio.zambrano at ufrontera.cl
Mon Jul 20 23:05:05 CEST 2015


Dear list,

I'm trying to set up the development version of R (R-devel ) for
testing some packages before submitting them to CRAN. I'm using Linux
Mint 17.1 64-bit, which is an Ubuntu-based distro.

I followed the advice of Dirk on
https://stat.ethz.ch/pipermail/r-sig-debian/2012-August/001935.html


Everything seems to run fine until .configure:

R is now configured for x86_64-unknown-linux-gnu

  Source directory:          .
  Installation directory:    /usr/local/lib/R-devel

  C compiler:                ccache gcc -std=gnu99  -g -O2
  Fortran 77 compiler:       gfortran  -g -O2

  C++ compiler:              ccache g++  -g -O2
  C++11 compiler:            ccache g++  -std=c++11 -g -O2
  Fortran 90/95 compiler:    gfortran -g -O2
  Obj-C compiler:

  Interfaces supported:      X11, tcltk
  External libraries:        readline, BLAS(generic), LAPACK(generic), curl
  Additional capabilities:   PNG, JPEG, TIFF, NLS, cairo, ICU
  Options enabled:           shared R library, R profiling

  Capabilities skipped:
  Options not enabled:       shared BLAS, memory profiling

  Recommended packages:      no


However, when running make, I got an error saying:

"/usr/bin/ld: ../appl/dchdc.o: relocation R_X86_64_32 against
`.rodata' can not be used when making a shared object; recompile with
-fPIC"


I would highly appreciate any advice on how to solve this issue (or
what should I  recompile with -fPIC and how).


The full output of make was:


 $ make
make[1]: Entering directory `/home/hzambran/SVN/R-devel/trunk/doc/manual'
make[1]: Nothing to be done for `front-matter'.
make[1]: Nothing to be done for `html-non-svn'.
make[1]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/doc/manual'
SVN-REVISION is unchanged
make[1]: Entering directory `/home/hzambran/SVN/R-devel/trunk/m4'
make[1]: Nothing to be done for `R'.
make[1]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/m4'
make[1]: Entering directory `/home/hzambran/SVN/R-devel/trunk/tools'
make[1]: Nothing to be done for `R'.
make[1]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/tools'
make[1]: Entering directory `/home/hzambran/SVN/R-devel/trunk/doc'
make[2]: Entering directory `/home/hzambran/SVN/R-devel/trunk/doc/html'
make[2]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/doc/html'
make[2]: Entering directory `/home/hzambran/SVN/R-devel/trunk/doc/manual'
make[2]: Nothing to be done for `R'.
make[2]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/doc/manual'
make[1]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/doc'
make[1]: Entering directory `/home/hzambran/SVN/R-devel/trunk/etc'
make[1]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/etc'
make[1]: Entering directory `/home/hzambran/SVN/R-devel/trunk/share'
make[1]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/share'
make[1]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src'
make[2]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/scripts'
make[3]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/scripts'
make[3]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/scripts'
make[2]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/scripts'
make[2]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/include'
Rmath.h is unchanged
make[3]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/include/R_ext'
make[3]: Nothing to be done for `R'.
make[3]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/include/R_ext'
make[2]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/include'
make[2]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/extra'
make[3]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/extra/tre'
make[4]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/extra/tre'
make[4]: `Makedeps' is up to date.
make[4]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/extra/tre'
make[4]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/extra/tre'
make[4]: `libtre.a' is up to date.
make[4]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/extra/tre'
make[3]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/extra/tre'
make[2]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/extra'
make[2]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/appl'
make[3]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/appl'
make[3]: `libappl.a' is up to date.
make[3]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/appl'
make[2]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/appl'
make[2]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/nmath'
make[3]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/nmath'
make[3]: `libnmath.a' is up to date.
make[3]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/nmath'
make[2]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/nmath'
make[2]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/unix'
make[3]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/unix'
make[3]: `libunix.a' is up to date.
make[3]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/unix'
make[3]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/unix'
ccache gcc -std=gnu99 -I. -I../../src/include -I../../src/include
-I/usr/local/include -DHAVE_CONFIG_H   -fopenmp -fpic  -g -O2
-L/usr/local/lib -DR_HOME='"/home/hzambran/SVN/R-devel/trunk"' \
 -o Rscript ./Rscript.c
make[3]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/unix'
make[2]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/unix'
make[2]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/main'
make[3]: Entering directory `/home/hzambran/SVN/R-devel/trunk/src/main'
ccache gcc -std=gnu99 -shared -fopenmp -L/usr/local/lib  -o libR.so
CommandLineArgs.o Rdynload.o Renviron.o RNG.o agrep.o apply.o
arithmetic.o array.o attrib.o bind.o builtin.o character.o coerce.o
colors.o complex.o connections.o context.o cum.o dcf.o datetime.o
debug.o deparse.o devices.o dotcode.o dounzip.o dstruct.o duplicate.o
edit.o engine.o envir.o errors.o eval.o format.o gevents.o gram.o
gram-ex.o graphics.o grep.o identical.o inlined.o inspect.o internet.o
iosupport.o lapack.o list.o localecharset.o logic.o main.o mapply.o
match.o memory.o names.o objects.o options.o paste.o platform.o plot.o
plot3d.o plotmath.o print.o printarray.o printvector.o printutils.o
qsort.o random.o raw.o registration.o relop.o rlocale.o saveload.o
scan.o seq.o serialize.o sort.o source.o split.o sprintf.o startup.o
subassign.o subscript.o subset.o summary.o sysutils.o times.o unique.o
util.o version.o g_alab_her.o g_cntrlify.o g_fontdb.o g_her_glyph.o
xxxpr.o   `ls ../unix/*.o ../appl/*.o ../nmath/*.o`
../extra/tre/libtre.a    -lblas -lgfortran -lm -lquadmath   -lreadline
 -lpcre -llzma -lbz2 -lz -lrt -ldl -lm -licuuc -licui18n
/usr/bin/ld: ../appl/dchdc.o: relocation R_X86_64_32 against `.rodata'
can not be used when making a shared object; recompile with -fPIC
../appl/dchdc.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[3]: *** [libR.so] Error 1
make[3]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/main'
make[2]: *** [R] Error 2
make[2]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src/main'
make[1]: *** [R] Error 1
make[1]: Leaving directory `/home/hzambran/SVN/R-devel/trunk/src'
make: *** [R] Error 1


Kind regards,

Mauricio Zambrano-Bigiarini, PhD

=====================================
Dept. of Civil Engineering
Faculty of Engineering and Sciences
Universidad de La Frontera
PO Box 54-D, Temuco, Chile
=====================================
mailto     : mauricio.zambrano at ufrontera.cl
work-phone : +56 45 259 2812
http://ingenieriacivil.ufro.cl/
=====================================
"When the pupil is ready, the master arrives."
(Zen proverb)
=====================================
Linux user #454569 -- Linux Mint user



More information about the R-package-devel mailing list