[Rd] Rconfig.h & unsupported architectures

Dirk Eddelbuettel edd at debian.org
Thu Jul 26 01:46:16 CEST 2012


On 25 July 2012 at 15:56, Hadley Wickham wrote:
| 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?

A quick grep for the string shows it pop up in pcre:

edd at max:~/src/debian/R/R-2.15.1/src$ grep "Unsupported arch" */*/*
extra/pcre/pcre_jit_compile.c:#error Unsupported architecture
edd at max:~/src/debian/R/R-2.15.1/src$ 

and it is the same in R-devel. Can you substitute a pre-built pcre library?

Dirk

 
| Thanks!
| 
| Hadley
| 
| 
| -- 
| Assistant Professor / Dobelman Family Junior Chair
| Department of Statistics / Rice University
| http://had.co.nz/
| 
| ______________________________________________
| R-devel at r-project.org mailing list
| https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com  



More information about the R-devel mailing list