Skip to content

Building from source problems.

6 messages · Rolf Turner, Steve Lianoglou, Simon Urbanek

#
On 30/10/2009, at 10:25 AM, Simon Urbanek wrote:
<snip>
When I do that I get:
So I need to (re-?) install gcc-4.2.  How?

	<snip>
Checking on what I've got (following your instructions) I
	found that I have version 2.5 of Xcode.

	That appears to be the latest version of Xcode that runs on
	Tiger.  The web page indicates that Xcode 2.5 dates from
	November 2007 which was about when I first installed Xcode.
	So re-installing Xcode 2.5 won't do any good.

	(On Friday I mistakenly tried installing Xcode 3.1.3 or something
	like that, but of course that won't/doesn't/didn't work on Tiger.)

	So how do I get gcc-4.2 for my OS? (Mac OS X 10.4.11).  Is this
	possible?

		cheers,

			Rolf

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
#
Hi,
On Sun, Nov 1, 2009 at 2:46 PM, Rolf Turner <r.turner at auckland.ac.nz> wrote:

            
It might do some good, because it's possible that something got hosed ...
The thing is, I'm not sure that you can. The "best" way to get the
'correct" gcc compilers for your system is through the latest XCode
available for your OS version. And, to be honest, I'm not sure that
XCode 2.5 even has gcc 4.2, for some reason I think it only has 3.3 or
4.0.x ... of course I can be mistaken.

Is it possible 4.2 came on your system from somewhere else? Did you
try to install from the HPC compilers before?

I have a Tiger machine sitting next to me at home, but it has XCode
2.0. I'm d/ling 2.5 to check and see if it comes with gcc-4.2 just in
case ... I'll post back with those results when it's done d/ling and
installing (I guess I should update it anyway ...).

-steve
#
On 2/11/2009, at 9:48 AM, Steve Lianoglou wrote:

            
The way the Fates treat me, it will do no good with probability =  
1!!! :-)

	<snip>
I don't ***have*** 4.2 at all, as far as I can tell.  Simon
	Urbanek told me that I ***needed*** to use 4.2 in order to get
	things to build properly from source. He indicated that I should
	make the system ***use*** 4.2 by doing

		sudo gcc_select 4.2

	but as I said, this just tells me that 4.2 ain't there.
Thanks.  I look forward to your report with baited breath.
	(Like the cat that ate cheese and then sat by the mousehole ....) :-)

		cheers,

			Rolf
######################################################################
Attention: 
This e-mail message is privileged and confidential. If you are not the 
intended recipient please delete the message and notify the sender. 
Any views or opinions presented are solely those of the author.

This e-mail has been scanned and cleared by MailMarshal 
www.marshalsoftware.com
######################################################################
#
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
#
On 2/11/2009, at 11:26 AM, Steve Lianoglou wrote:
<snip>
By all means!  Go for it!
Ack-chewally I have now installed, from CRAN, the 2.10.0 binary  
designed
	for Tiger, which Simon Urbanek built especially for me, and which
	eschews the "mtune=core2" flag.  With this binary I can now build
	spatstat from source without hiccups.  (Thank you Simon!)

	So I guess I don't really have *any* problems as it stands.

	I'd just kind of like to get *everything* working, seamlessly.
	But I'm getting the impression that this will require upgrading
	my OS from Tiger to the latest.  I have emailed our IT people
	to investigate whether this is a possibility.  Have not yet heard
	back from them ....
This was actually suggested to me by someone else, offlist,
	with less detail.  I didn't have the nerve to try.
Just grepping in

		/Library/Frameworks/R.framework/Versions/2.10/Resources/bin/libtool

	gives the line that you found.
I guess that Simon has set things somehow so that this flag doesn't
	get used (???) under the Tiger OS, since, as I said above, the
	build from source now works for me.  So the comment-out and re-define
	trick is not necessary.  I could re-install R using the ``non-special''
	binary (with which I was getting the problem) and see if your trick  
works
	with that, but that would seem to be only of academic interest at this
	stage.  It might be an interesting learning experience for me, but I
	really should be getting on with proper work --- as should the rest of
	you whom I've been pestering about this stuff, I guess! :-)
Any suggestion from you is almost certain to be far less
	bone-headed than anything I might do on my own.

	Sorry for muddling about on this.  I have trouble keeping my
	head clear as to what I need to do (as opposed to should or
	could do, or want to do).

	Bottom line:  I seem to be OK now, for the time being at least.
	To keep on being OK, I probably need to upgrade my OS.

	Thanks to everyone for their help and for putting up with my
	often confused and sometimes grumpy questions.

		cheers,

			Rolf

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
#
*sigh* Rolf, I'm giving up - your'e misquoting me and not reading my e- 
mails (if you did you'd know you don't have to bother download Xcode  
for example..). Please install release R 2.10.0 for Tiger and send me  
a private e-mail if you have issues.
For others - please do NOT follow all the attempts in this thread -  
they're all not necessary unless you want to make life hard on  
yourself (like Rolf does ;)).
Simon
On Nov 1, 2009, at 6:03 PM, Rolf Turner wrote: