[Rcpp-devel] libRInside.a and "base package"

Dan Murphy chiefmurphy at gmail.com
Tue Sep 4 08:44:02 CEST 2012


On Sun, Sep 2, 2012 at 7:09 AM, Dirk Eddelbuettel <edd at debian.org> wrote:
>
> Dan,
>
> Trying to help here but I'm not a windows user...
>
> On 2 September 2012 at 05:46, Dan Murphy wrote:
> | I am still trying to debug my Windows setup and I have a couple of questions.
> |
> | 1. In my download of the RInside package, I see the libRInside.a
> | library in the ~\RInside\lib\i386 folder which is found when I set
>
> Confirmed. I would have to look into the build recipe of why we only have one
> static library.
>
> | R_ARCH := --arch i386 in Makefile.win. However, there is no
> | corresponding x64 folder, so when I set R_ARCH := x64 the RCPPLIBS
> | variable gets the string "/libRInside.a". Could that be the reason the
> | samples do not make? Here is the error displayed at the console:
>
> Last time I was working on / overhauling / windows, I did use 32 and 64 bit
> and it just worked.  That said, right now I am at home where I only have a
> puny virtual win32 instance.
>
> Now, as I recall, both 'just worked'.
>
> | g++ -m64 -IC:/R/R-2.15.1/include -IC:/R/R-2.15.1/include/x64 -IC:/R/R-2.15.1/lib
> | rary/Rcpp/include -IC:/R/R-2.15.1/library/RInside/include -O2 -Wall -mtune=core2
> |  -Wall  -s  rinside_callbacks0.cpp  -LC:/R/R-2.15.1/bin/x64 -lR -LC:/R/R-2.15.1/
> | bin/x64 -lRblas -LC:/R/R-2.15.1/bin/x64 -lRlapack "/libRInside.a" C:/R/R-2.15.1/
> | library/Rcpp/lib/x64/libRcpp.a -o rinside_callbacks0
> | g++.exe: error: /libRInside.a: No such file or directory
> | make: *** [rinside_callbacks0] Error 1
> |
> | 2. With --arch i386, Makefile.win compiles all the samples in
> | examples\standard without error. As instructed, I copied all the dll
> | files from C:\R\R-2.15.1\bin\i386 to
> | C:\R\R-2.15.1\library\RInside\examples\standard. (I've done this
> | multiple times now.) When I run rinside_sample0 I get the error "Fatal
> | error: unable to open the base package". To help debug this, can you
> | tell me if this error is generated by RInside or Rcpp?
>
> I have seen that one before, it should not happen, but I believe it to be an
> incomplete "setup". I may have been able to overcome this by defining RHOME.

The fact that you have seen that one before gives me hope!

Today I downloaded the latest patched version of R-2.15.1 and built a
32 bit version of R from the source, mainly to A) make sure I could do
it again, and B) have a clean 32-bit version to work with.

In C:\R\R-2.15.1\library\RInside\examples\standard\Makefile.win I set
R_ARCH :=		--arch i386
and made no other changes. Then

make checkR -f makefile.win
yields
R is at C:/R/R-2.15.1

I copied the six dll's from C:\R\R-2.15.1\bin\i386 to
C:\R\R-2.15.1\library\RInside\examples\standard before running make
(just to be sure). Then

make -f makevars.win

ran without error, but

C:\R\R-2.15.1\library\RInside\examples\standard>rinside_sample0

gave the same  "Fatal error: unable to open the base package".

No one else has suggested any solution.

Thinking the error was probably thrown in Rcpp, I thought maybe I
should try building Rcpp from source, so I downloaded the latest
package and ran
R CMD INSTALL --build rcpp_0.9.13.tar.gz

but that did not eliminate the fatal error. I'm out of ideas.


>
> I just tried on the small, slow virtual instance, and I got linking errors
> with the i386 version of libRInside.a.  Sorry.
>
> I'll try to have a look next week at work on the more powerful win7 / 64bit desktop.
> In the meantime, maybe someone else can walk you through basic steps...
>
> Dirk
>
> --
> Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list