[R] Profiling dynamically-loaded code

Eric van Gyzen vangyzen at stat.duke.edu
Tue Jul 20 20:24:03 CEST 2004


I'm trying to compile R with support for profiling dynamically-loaded C 
code.  I configured R with:

   export CFLAGS="-O0 -pg -pipe"
   export CXXFLAGS="-O0 -pg -pipe"
   export FFLAGS="-O0 -pg -pipe"

   ./configure --prefix=/tmp/Rprof --with-lapack="-llapack"
     --with-blas="-lblas" --with-bzlib --with-pcre
     --without-recommended-packages

When I try to compile it, I get:

   dumping R code in package 'methods'
   Saving namespace image ...
   Error in dyn.load(x, as.logical(local), as.logical(now)) :
       unable to load shared library
         "/tmp/R-1.9.1/library/methods/libs/methods.so":
     Service unavailable
   Execution halted
   *** Error code 1

   Stop in /tmp/R-1.9.1/src/library/methods.
   *** Error code 1

The 'file' command tells me that methods.so is:

   ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD),
     not stripped

What shall I try next?  Please forgive me if I missed some very obvious 
documentation on the web or in the mailing-list archives.

Thanks!

Eric

-- 
Eric van Gyzen                        Sr. Systems Programmer
http://www.stat.duke.edu/~vangyzen/   ISDS, Duke University




More information about the R-help mailing list