Been playing with an opteron box (hp dl145g2) the past few days. I built Perl 5.8.8 on it today from source. You can't just go flying through the 'sh Configure' like you can with x86. You have to specify /usr/lib64 as an additional library path (important!), and I added the optimization flags '-march=opteron -mcpu=opteron -mtune=opteron -fpic -pipe -fomit-frame-pointer'. Most of those are just for fun, but -fpic seems to be important, as Dynaloader broke and whined about needing it when building mod_perl2.
So far quite a bit of fun - damn fast cpu - but Centos 4.4 doesn't have the correct sata driver fix in the kernel (you need at least 2.6.10), and my own kernel builds have been failing. I've given up on Centos (it was fun while it lasted) and gone back to Gentoo. A longer install initially, but at least I know that it won't leave me stranded in a dead end trying to get everything working. Ah the joys of Linux - at least my macbook hasn't been giving me any grief :)
You can't just go flying through the 'sh Configure' like you can with x86.
It's notable (and frustrating) that none of the Linux vendors who sell and support x86_64, and ship Perl on it, have sent any patches upstream for Configure, so that we can incorporate whatever change they feel is the most appropriate to solve these problems. They're the experts on Linux on x86_64, not us.
Re:oh, and...
Phred on 2006-11-13T03:59:42
Will do Jarkko, thanks for the feedback. I didn't have to do too much different, but I've cut my teeth on a few x86_64 headaches before, so some of it may seem obvious to me. I remember it was a lot harder the first time I used 64bit.Re:oh, and...
jhi on 2006-11-13T05:10:31
Well, *64-bit* as such has of course worked with Perl for, oh, more than six years now:-)