[R] compiling pnmath on an intel processor running mac OS 10.5

Luke Tierney luke at stat.uiowa.edu
Thu Jul 10 21:04:27 CEST 2008


You need a gcc version that supports OpenMP; I believe that means gcc
4.2 or later.

pnmath0 should work with older gcc versions.

luke

On Thu, 10 Jul 2008, Mike Lawrence wrote:

> Has anyone successfully compiled pnmath 
> (http://www.stat.uiowa.edu/~luke/R/experimental) for an intel processor 
> running mac OS 10.5? When I attempt to do so via the R package installer 
> (choosing "Local Source Package" and pointing to the pnmath_0.0-2.tar.gz 
> file), I get the following errors:
>
> * Installing *source* package 'pnmath' ...
> ** libs
> ** arch - i386
> gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk 
> -mmacosx-version-min=10.4 -std=gnu99 
> -I/Library/Frameworks/R.framework/Resources/include 
> -I/Library/Frameworks/R.framework/Resources/include/i386  -msse3   -fopenmp 
> -fPIC  -g -O2 -march=nocona -c bd0.c -o bd0.o
> cc1: error: unrecognized command line option "-fopenmp"
> make: *** [bd0.o] Error 1
> ** arch - ppc
> chmod: /Library/Frameworks/R.framework/Resources/library/pnmath/libs/i386/*: 
> No such file or directory
> gcc -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk 
> -mmacosx-version-min=10.4 -std=gnu99 
> -I/Library/Frameworks/R.framework/Resources/include 
> -I/Library/Frameworks/R.framework/Resources/include/ppc  -I/usr/local/include 
> -fopenmp -fPIC  -g -O2 -c bd0.c -o bd0.o
> cc1: error: unrecognized command line option "-fopenmp"
> make: *** [bd0.o] Error 1
> chmod: /Library/Frameworks/R.framework/Resources/library/pnmath/libs/ppc/*: 
> No such file or directory
> ERROR: compilation failed for package 'pnmath'
> ** Removing '/Library/Frameworks/R.framework/Resources/library/pnmath'
>
>
>
> --
> Mike Lawrence
> Graduate Student, Department of Psychology, Dalhousie University
>
> www.memetic.ca
>
> "The road to wisdom? Well, it's plain and simple to express:
> Err and err and err again, but less and less and less."
> 	- Piet Hein
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
Luke Tierney
Chair, Statistics and Actuarial Science
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
    Actuarial Science
241 Schaeffer Hall                  email:      luke at stat.uiowa.edu
Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu



More information about the R-help mailing list