[R] Seeing Build Commands when running R CMD INSTALL pkg

2015-07-15 Thread Navraj Singh
Hello,

I was trying to build a package from source (specifically the 'rzmq'
package) on the following platform:

Mac OS X 10.8.5 (Mountain Lion)
R: version 3.2.1
rzmq: version 0.7.7 (obtained from the github repo for this package)

The reason I want to build this from source is that there is no binary
available from CRAN for this version of rzmq for Mountain Lion (it is only
available for Maverick).

I'm using R CMD INSTALL ... to build the package. However, I get some
errors. For now, I would just like to be able to see the exact raw commands
being sent to the compiler (gcc in my case), because I think the commands
aren't being set up correctly. Is there a way to do this?

Thank you!

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] Seeing Build Commands when running R CMD INSTALL pkg

2015-07-15 Thread Duncan Murdoch
On 15/07/2015 1:25 PM, Navraj Singh wrote:
 Hello,
 
 I was trying to build a package from source (specifically the 'rzmq'
 package) on the following platform:
 
 Mac OS X 10.8.5 (Mountain Lion)
 R: version 3.2.1
 rzmq: version 0.7.7 (obtained from the github repo for this package)
 
 The reason I want to build this from source is that there is no binary
 available from CRAN for this version of rzmq for Mountain Lion (it is only
 available for Maverick).
 
 I'm using R CMD INSTALL ... to build the package. However, I get some
 errors. For now, I would just like to be able to see the exact raw commands
 being sent to the compiler (gcc in my case), because I think the commands
 aren't being set up correctly. Is there a way to do this?

Normally you will see those commands.  For example, if I try R CMD
INSTALL rgl_0.95.1252.tar.gz on a Mac I see


* installing to library
‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library’
* installing *source* package ‘rgl’ ...
checking for gcc... clang
checking whether the C compiler works... yes
 ... many lines of configure code deleted ...
config.status: creating src/Makevars
** libs
clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG
-I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H
-I/opt/X11/include/libpng15 -I/usr/X11/include -DDarwin -DNO_GL_PREFIX
-I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl
-I/opt/X11/include/freetype2 -Iext -I/usr/local/include
-I/usr/local/include/freetype2 -I/opt/X11/include   -Wall -mtune=core2
-g -O2  -fPIC  -Wall -mtune=core2 -g -O2  -c ABCLineSet.cpp -o ABCLineSet.o

and so on.

Duncan Murdoch

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.