[R-pkg-devel] Configure dot win file preventing compilation for i386 on windows
On 13/02/2019 12:56 p.m., Travers Ching wrote:
Thanks Gabor and Duncan, that seems to be the issue. On Wed, Feb 13, 2019 at 9:53 AM Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
On 13/02/2019 12:45 p.m., Travers Ching wrote:
I have a package in which I thought would be helpful to have a configure.win file. However, when compiling (locally as well as through win-builder) I get the following message: "Warning: this package has a non-empty 'configure.win' file, so building only the main architecture" And then win builder CRAN check fails with an error. When I take out the configure.win file everything works (the configure.win file just had an echo statement in it for testing). I don't understand why i386 compilation does not proceed with the configure file? What is the issue or mistake I'm making?
It sounds as though you (and WinBuilder) are skipping the "--force-biarch" command line option in "R CMD install". I suspect the reason it isn't the default is that it's hard to get right for both architectures. I don't know how you would ask WinBuilder to use it for you.
To answer the final part of my answer: you put "Biarch: yes" in the DESCRIPTION file. See the "foreign" package for example. Duncan Murdoch