[Rd] Win 64 package build - ERROR: loading failed for 'x64'

From: John Nolan <jpnolan_at_american.edu>
Date: Sat, 23 Jun 2012 21:54:38 -0400

I have developed an R package that works under Win32, but when I attempt to build it on Win64, I get ERROR: loading failed for 'x64'

More precisely, I developed and tested the package under Win32 and it works. But when I move to a 64 bit Windows 7 (Home Premium) system, and attempt to build both 32 bit and 64 bit packages, the 32 bit package seems to build, but the 64 bit build fails. 'rcmd build test' works fine, producing DLLs in both src-i386 and src-x64

But 'rcmd check test' and 'rcmd install test' both fail. When R attempts to load the 64 bit DLL. A pop-up window says

   R for Windows terminal front-end has stopped working, then I get the error message on the console

   ERROR: loading failed for 'x64'    

Below is the Makevar.win file (it selects a library based on 32 vs 64 bit). Also below is 00install.out and R.Version() output.

I'd appreciate any suggestions.

John

 ...........................................................................................................
 John P. Nolan
 Math/Stat Department
 227 Gray Hall, American University
 4400 Massachusetts Avenue, NW
 Washington, DC 20016-8050
 jpnolan_at_american.edu      
 voice: 202.885.3140          web: academic2.american.edu/~jpnolan
 ...........................................................................................................

----------------- Makevar.win ------------------------------------------
ifeq "$(WIN)" "64"
PKG_LIBS=../../../win64/test_win64.a -lgfortran else
PKG_LIBS=../../../win32/test_win32.a -lgfortran endif

PKG_CPPFLAGS=-I/JohnsWork/test/src/

> str(R.Version())
List of 14

 $ platform      : chr "x86_64-pc-mingw32"
 $ arch          : chr "x86_64"
 $ os            : chr "mingw32"
 $ system        : chr "x86_64, mingw32"
 $ status        : chr ""
 $ major         : chr "2"
 $ minor         : chr "15.0"
 $ year          : chr "2012"
 $ month         : chr "03"
 $ day           : chr "30"
 $ svn rev       : chr "58871"
 $ language      : chr "R"
 $ version.string: chr "R version 2.15.0 (2012-03-30)"
 $ nickname      : chr ""
 
______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sun 24 Jun 2012 - 01:59:27 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 24 Jun 2012 - 12:10:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive