Skip to content
Prev 6513 / 15075 Next

Building from source problems.

On Sun, Nov 1, 2009 at 4:00 PM, Rolf Turner <r.turner at auckland.ac.nz> wrote:
After rereading the thread here (sorry if it feels like your talking
to a wall), I'm guessing it won't, actually ... but it can't hurt.
OH!
Well, XCode 2.5 is still downloading here ... I pay enough for this
dang cable modem, but it's slower than slow.

In the mean time, do you mind if we take one or two stabs in the dark?

So, if I'm not mistaken, it seems your only problem now is compiling a
package from source, and you're getting some "mtune=core2" problem,
right?

THIS IS PROBABLY A BAD IDEA, BUT ...

If we can't get your compiler to support these optimizations (maybe
because we can't get gcc-4.2 on there), then how about we just don't
use those optimizations when compiling? I'm not sure if that will
cause problems, but perhaps we can try?

Can you find where this is defined in your install? Doing:

$ cd /Library/Frameworks/R.framework/Versions/2.10
$ grep -r mtune=core2 .

for me brings up one file:

./Resources/bin/libtool:LTCFLAGS="-mtune=core2 -g -O2"

Does it for you?

I wonder what happens if you just comment that line out and insert below it:

LTCFLAGS="-g -O2"

Would all of your woes go away?

As I said, it's probably a bad idea, but if you're brave, it might be
worth a try.

(I've been sitting on this email for a while now, because I don't want
to make boneheaded suggestions in public, but my xcode d/l is @ 75%
and I didn't want to leave you hanging for the rest of the day).

-steve