[R] R CMD SHLIB gives error: bad value (generic) for -mtune= switch
McKay Curtis
s.mckay.curtis at gmail.com
Sun Nov 4 00:09:31 CET 2007
Hello,
I am trying to compile C code using the R CMD SHLIB command. I get this error:
> R CMD SHLIB gibbs.c
making gibbs.d from gibbs.c
gibbs.c:0: error: bad value (generic) for -mtune= switch
make: [gibbs.d] Error 1 (ignored)
cat: gibbs.d: No such file or directory
make: [makeMakedeps] Error 1 (ignored)
gcc-sjlj -std=gnu99 -IC:/PROGRA~1/R/R-26~1.0/include -Wall -O3
-c gibbs.c -o gibbs.o
gibbs.c:1: error: bad value (generic) for -mtune= switch
make: *** [gibbs.o] Error 1
where gibbs.c contains
#include <R.h>
#include <Rmath.h>
#include "gibbsiso.h"
void gibbsiso(int *nmc){
Rprintf("Hello!");
}
and gibbsiso.h contains
void gibbsiso(int *);
I have installed or am using the following
* Rtools.exe 2.6.0
* R version 2.6.0 (2007-10-03)
* Windows Vista
* Toshiba Laptop, Intel Centrino Duo, T2250 @1.73 GHz w/ 1GB of RAM
My path variable is
c:\Rtools\bin;c:\Rtools\perl\bin;c:\Rtools\MinGW\bin;c:\Rtools\MinGW\libexec\gcc\mingw32\3.4.5;C:\Program
Files\MiKTeX 2.5\miktex\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program
Files\Common Files\Ulead Systems\MPEG;C:\Program
Files\R\R-26~1.0;C:\Program Files\R\R-26~1.0\bin;C:\Program
Files\gs\gs8.54\bin;
I would appreciate any insight into this error.
Thanks for your time!
McKay Curtis
(Stats grad student at NCSU)
More information about the R-help
mailing list