[Rd] Rconfig.h & unsupported architectures
Hadley Wickham
hadley at rice.edu
Thu Jul 26 00:56:44 CEST 2012
Hi all,
Recently, when compiling R packages containing C code, I've started
getting the following error:
* installing to library ‘/Users/hadley/R’
* installing *source* package ‘appdirs’ ...
** Creating default NAMESPACE file
** libs
*** arch - i386
gcc -arch i386 -std=gnu99
-I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/i386 -DNDEBUG
-I/usr/local/include -fPIC -g -O2 -c win-path.c -o win-path.o
In file included from /Library/Frameworks/R.framework/Resources/include/R.h:34,
from win-path.c:1:
/Library/Frameworks/R.framework/Resources/include/Rconfig.h:13:2:
error: #error "Unsupported architecture."
In file included from
/Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:27,
from /Library/Frameworks/R.framework/Resources/include/R.h:44,
from win-path.c:1:
/Library/Frameworks/R.framework/Resources/include/Rconfig.h:13:2:
error: #error "Unsupported architecture."
I'm on
> sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
And in case it helps:
gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2336.9.00)
Any ideas about what I might have done to break this?
Thanks!
Hadley
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
More information about the R-devel
mailing list