From simon.urbanek at r-project.org  Thu Jan 17 17:07:04 2013
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Thu, 17 Jan 2013 11:07:04 -0500
Subject: [Rd] rpvm arch check
In-Reply-To: <CAGgMibL-JM9Sey-ukPZOC7wLO92yHL0d9sapJb1RkKDSWPym+w@mail.gmail.com>
References: <CAGgMibL9HqfjN1LMA9S_7oEck9kmD4ccEdbP3XZ8-B+EHGg8mg@mail.gmail.com>
	<00064623-6B78-4C0E-84B0-EFD2053B1B19@r-project.org>
	<CAGgMibL-JM9Sey-ukPZOC7wLO92yHL0d9sapJb1RkKDSWPym+w@mail.gmail.com>
Message-ID: <ED7032DB-ADC3-4BF2-8991-71B1BCAF4CAB@r-project.org>

On Jan 17, 2013, at 10:52 AM, Michael Li wrote:

> OK. I will upload the updated version to CRAN and see if there is any problem with the checking. 
> 
> One additional question, if a user decides to build the library from source he may still encounter the problem. Is there a way (though configure.in  file maybe) to detect the architecture of the external library (libpvm.a) and use the correct architecture automatically when compiling rpvm code?
> 

That is automatic - multi-lib compilers will only pick libraries for the architecture that is currently being compiled.

If you are using autoconf [properly], it will detect the libraries for the architecture being compiled at the time. There is really nothing you as an author need to do as long as you are aware of the multi-arch setup of R.

It seems that rpvm has been removed from CRAN so I cannot comment on the rpvm package in particular.

Cheers,
Simon


> Thanks, 
> 
> Michael
> 
> 
> On Tue, Jan 15, 2013 at 8:53 PM, Simon Urbanek <simon.urbanek at r-project.org> wrote:
> On Jan 15, 2013, at 2:24 PM, Michael Li wrote:
> 
> > I've trying to fix the check error in rpvm package. Right now on my Mac, I use darwinport to install PVM and I can get rpvm to pass the check using 'R -arch x86_64 CMD check'. However the default 'R CMD check' uses i386 which fails since PVM is built for x86_64 only.
> >
> > So is there a way to ensure proper architecture is used that matches that of the external library like PVM? What does CRAN use when it checks packages?
> >
> 
> We use static builds which have all necessary architectures (so users don't need to install them and can use any architecture).
> 
> Cheers,
> Simon
> 
> 



[Rd] rpvm arch check
Simon Urbanek