From simon.urbanek at r-project.org  Wed Oct 27 09:20:39 2010
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Wed, 27 Oct 2010 03:20:39 -0400
Subject: [Rd] windows 64-bit package build on 32-bit machine
In-Reply-To: <AANLkTikp4=PVXJ-5Edbr6NfoPn-gcwRZMAV+peqc4rOP@mail.gmail.com>
References: <AANLkTina2USCfqaxerb-Q3X_5kdq6zD45AJy9gekiYRJ@mail.gmail.com>
	<0CCBB231-E4E2-48FC-8E75-41EFA22AA57C@r-project.org>
	<AANLkTikp4=PVXJ-5Edbr6NfoPn-gcwRZMAV+peqc4rOP@mail.gmail.com>
Message-ID: <8937DC4A-56FA-4C24-86DF-CEC90A7A7A33@r-project.org>


On Oct 26, 2010, at 11:10 PM, Michael Spiegel wrote:

> Hmm.  So our package does not have no src/Makefile.win and only an
> empty configure.win.  We usually build a binary version with R CMD
> INSTALL --build.
> 
> R --arch x64 CMD INSTALL --build yields the message "The system cannot
> find the path specified."
> 

Well, it probably means you don't have x64 binaries in your R - that has nothing to do with cross-compilation. You should make sure that you have both i386 and x64 archs in your R to start with.

Also I would not expect R --arch x64 to work regardless since you can't run 64-bit binary of R on 32-bit Windows. The same applies on OS X - you can cross compile for ppc64 (i.e. install multi-arch if the package has no Makefile/configure) but you can't run ppc64 R on Intel Macs (and hence you cannot install packages with configure/Makefile).

Cheers,
Simon



> On Tue, Oct 26, 2010 at 10:41 PM, Simon Urbanek
> <simon.urbanek at r-project.org> wrote:
>> 
>> On Oct 26, 2010, at 9:04 PM, Michael Spiegel wrote:
>> 
>>> Hello,
>>> 
>>> Is it possible to build a 64-bit package on a 32-bit machine on
>>> windows? I can cross-compile for x86, x86_64, and ppc on a 32-bit OS X
>>> machine.  And it looks like I could build a 32-bit library on a 64-bit
>>> windows machine.  But it doesn't look possible to build a 64-bit
>>> library on a 32-bit windows machine?
>>> 
>> 
>> Why not? It works for me without problems ...
>> 
>> Cheers,
>> Simon
>> 
>> 
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 
> 



[Rd] windows 64-bit package build on 32-bit machine
Simon Urbanek