Re: [Rd] Rconfig.h & unsupported architectures

From: peter dalgaard <pdalgd_at_gmail.com>
Date: Sun, 29 Jul 2012 09:06:12 +0200

On Jul 29, 2012, at 01:59 , Simon Urbanek wrote:

>
> On Jul 27, 2012, at 5:06 PM, Hadley Wickham wrote:
>

>>> Actually, probably not the issue. You are getting it from one of R's headers
>>> so it may have gotten there while you configured R on your machine.
>> 
>> Which I didn't do, since I got a pre-built binary from CRAN.  I guess
>> I'll try re-installing and hope the problem goes away.
>> 

>
> What compilers/OS is this? The error comes from the multi-arch header stub so it dispatches depending on the architecture to the actual headers in the arch subdirectories, but the error means that your architecture is not installed/supported. This is rather odd, unless you're trying to use PPC on more recent OS X without Rosetta but even then ... If in doubt, sudo rm -rf /Library/Frameworks/R.framework and re-install R ...
>

It would appear to be the stock Lion compiler. I can compile biarch with that and a current R.

As /Library/Frameworks/R.framework/Resources/include/Rconfig.h in its entirety is the following, the only obvious way to reach the #error would be if __i386__ somehow got undefined. Or the file itself is corrupted, of course.

-pd

/* This is an automatically generated universal stub for architecture-dependent headers. */

#ifdef __i386__
#include "i386/Rconfig.h"
#elif defined __ppc__
#include "ppc/Rconfig.h"
#elif defined __ppc64__
#include "ppc64/Rconfig.h"
#elif defined __x86_64__
#include "x86_64/Rconfig.h"
#elif defined __arm__
#include "arm/Rconfig.h"
#else
#error "Unsupported architecture."
#endif



> Cheers,
> Simon
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes_at_cbs.dk  Priv: PDalgd_at_gmail.com

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sun 29 Jul 2012 - 07:08:45 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 Mon 30 Jul 2012 - 12:10:34 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