Skip to content

Error compiling R.2.8.1 with gcc 4.4 on Mac OS 10.5.6

3 messages · Michael Lawrence, Peter Dalgaard, Brian Ripley

#
Mike Lawrence wrote:
Ouch. As you probably realize, this is very Mac-specific, and the actual 
bug is in GCC and has nothing to do with R.

I don't think  there's any obvious way to fix this, but there might be a 
temporary workaround. I'd consider making the .d file by hand, so that 
make doesn't even try to build it. You can probably rather easily create 
one based on one of the other .d files in the same directory (.d files 
are usually overkill, it is probably not necessary to get it completely 
right.)

Next question is whether this GCC can handle .m files at all....

  
    
#
On Mon, 22 Dec 2008, Peter Dalgaard wrote:

            
It can: at least the released versions can provided the ObjC language is 
installed.  Most likely if making the .d file is an error then actual 
compilation will be too.

Note that this is a non-Apple build of a non-FSF version of a non-released 
version of gcc. I think the workaround is to use Apple compilers for 
Mac-specific code. So either use --with-aqua with Apple compilers, or 
--without-aqua with others.  From memory (I am not on my Mac right now), 
the latter will not build the quartz code at all: certainly 
src/library/grDevices/src/Makefile suggests so.

I'd suggest reporting Mac-specific problems on R-sig-mac, and problems 
with building R on experimental systems (including unreleased compilers) 
to the system's developers or perhaps R-devel.