Skip to content

vecLib and building R from source

5 messages · Simon Urbanek, stefano iacus, Kjell Konis

#
On 31 Aug 2005, at 20:33, Simon Urbanek wrote:
It's the GNU C compiler version 3.3.4.
This just means it doesn't support -framework.  This is actually the  
answer to my original question.  Apparently -framework is supported  
in stock gcc 4.x.
It might not be such a good idea to be too dependent on Apple's gcc.   
There are compilers from IBM and Intel that people may at some time  
be interested in using.


Kjell
#
On Sep 1, 2005, at 7:13 PM, Kjell Konis wrote:

            
You're free to, but then you should know what you're doing and find  
out the right flags for your compiler ;).

As of R-devel configure will automatically use vecLib if the compiler  
supports -framework and vecLib is present, so you don't need to  
supply any flags unless you have an esoteric compiler.

Cheers,
Simon
#
On 02/set/05, at 01:13, Kjell Konis wrote:

            
mmh, gcc 3.3.x from Apple supports -framework and it is documented in  
the gcc man pages. (If I remember well, this is also supported on  
some Win32 version of gcc)
in this case, you need to bypass configure by specifying --with- 
blas=path_to_your_blas_lib
  so gcc won't try to use the -framework flag.
This is of course the same you do on other unices.
You should also want to remove from the configure flags the options  
to build R as a framework and just set --enable-shlib

In the end, given that you are using gcc-dp (darwin ports?) you  
should also run make check after building R to assess the reliability  
of your build.

Please, let us know your progresses here, we can put notes on the R  
for OS X FAQ.
I understand your idea of a "pure" darwin (i.e.not necessarily aqua &  
core foundation based) build, but I strongly believe that a "out-of- 
the-box" configure and build on OS X must rely on apple's tools as  
well on open source tools as much as possible (and IBM compilers  
aren't for free at the moment)

stefano
#
'./configure --help' doesn't mention --enable-shlib.  Did you mean -- 
enable-R-shlib?
Will do.
I just checked and the IBM compilers do support -framework.  It looks  
like the moral is turning out to be if you want to build R on macosx  
you need a compiler that supports -framework.

Kjell
#
On 02/set/05, at 03:44, Kjell Konis wrote:

            
yes, I apologize

you should specify

--enable-R-framework=no  --enable-R-shlib
as I said, you can live without the -framework flag but you need to  
specify the path or other flags for your compiler,
see e.g. sec A.2.2 Linear algebra in R admin manual

stefano