[R-SIG-Mac] R compile from sources: error in make with gcc-4.7

Simon Urbanek simon.urbanek at r-project.org
Sun Sep 16 03:16:18 CEST 2012


Simon,

On Sep 15, 2012, at 6:56 PM, Simon Zehnder wrote:

> That is correct! My fault! Simon, I didn't want to blame you with this one. 
> 
> It compiles know and it works perfectly on the console. I am still interested, why it does not compile with aqua. Can somebody explain me why? 
> 

Can you sent me the full output? I don't have the time to compile gcc from scratch right now and none of the usual suspects supports ObjC - that alone is a sign that no one really uses gcc on OS X (other than for ports) since Apple has abandoned it. My guess would be that the ObjC support is not as complete as in Apple's version - it's probably more geared toward GNUstep - but that's just a guess.

Cheers,
Simon



> Best regards
> 
> Simon
> 
> On Sep 14, 2012, at 4:38 PM, Berend Hasselman <bhh at xs4all.nl> wrote:
> 
>> 
>> On 14-09-2012, at 16:01, Simon Zehnder wrote:
>> 
>>> Running through the errors of my make output on http://pastebin.com/HXqLgH4b (without aqua) pulled my attention to the following error: 
>>> 
>>> In file included from ../../../../src/modules/lapack/vecLibg95c.c:5:0:
>>> /System/Library/Frameworks/vecLib.framework/Headers/vecLib.h:22:4: error: #error "<vecLib/vecLib.h> is deprecated.  Please #include <Accelerate/Accelerate.h> and link to Accelerate.framework."
>>> 
>>> This error is, I think from you Simon, already commented on http://permalink.gmane.org/gmane.comp.lang.r.mac/7293. So I followed your advice there and added the flag CPPFLAGS=-D ACCELERATE to my configure command:
>>> 
>>> 1. (Configure) The whole command is:
>>> 
>>> ../configure CC="gcc-4.7 -arch $arch" CXX="g++-4.7 -arch $arch" F77="gfortran-4.7 -arch $arch" FC="gfortran-4.7 -arch $arch" OBJC="gcc-4.7 -arch $arch" --x-includes=/usr/X11/include/ --x-libraries=/usr/X11/lib/ --with-blas='-framework libVec' --with-lapack --without-aqua CPPFLAGS="-D ACCELERATE"
>>> 
>>> All runs fine - no errors nor warnings.
>>> 
>>> 2. (Make) I run the make via:
>>> 
>>> make -j 8
>>> 
>>> and I get the following errors: http://pastebin.com/5UfaMK6r
>>> 
>>> It seems that the flag CPPFLAGS=-D ACCELERATE does not modify the compilers work. 
>>> 
>>> Any suggestions here?
>> 
>> Reading the reply by Simon tells me that your CPPFLAGS doesn't agree with Simon's fix. It should be  CPPFLAGS=-D__ACCELERATE__
>> 
>> Berend
>> 
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> 



More information about the R-SIG-Mac mailing list