Discussion:
64-bit
(too old to reply)
Paweł Matykiewicz
2005-10-11 17:15:23 UTC
Permalink
Does anyone has expirience with compiling XS in 64-bit mode under
Darwin 8.2.0 ( Mac os 10.4 )? [Is Darwin 8.2.0 a 64-bit OS ?]

We have 10 xnu-792.2.4.obj~3 CPUs.

Thanks
Regards

--
Pawel Matykiewicz
http://www.neuron.m4u.pl
Sherm Pendley
2005-10-11 18:51:56 UTC
Permalink
Post by Paweł Matykiewicz
Does anyone has expirience with compiling XS in 64-bit mode under
Darwin 8.2.0 ( Mac os 10.4 )? [Is Darwin 8.2.0 a 64-bit OS ?]
Not completely. The kernel supports 64-bit apps, but only libSystem
is 64-bit. "otool -L" shows that as the only library that libperl is
linked against though so a 64-bit Perl should be possible.

The high-level libraries (Cocoa, Carbon, QuickTime, etc.) are 32-bit.
So if you want your 64-bit app to have a GUI, you'll need to separate
it into two processes - a 64-bit backend and a 32-bit frontend - and
use some means of IPC to communicate between them.

For details:
<http://developer.apple.com/documentation/Darwin/Conceptual/
64bitPorting/intro/chapter_1_section_1.html>
Post by Paweł Matykiewicz
We have 10 xnu-792.2.4.obj~3 CPUs.
Send me one of 'em, I'll be happy to help out. ;-)

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
Paweł Matykiewicz
2005-10-11 20:11:44 UTC
Permalink
Sherm,

if You use "gcc -arch ppc64" then You can compile C in 64-bit mode (
sizeof ( int * ) == 8 ). But what about Perl 5.8.6 ? I couldn't find
any web-page that would explain this issue.

Thanks,
Regards

--
Pawel Matykiewicz
http://www.neuron.m4u.pl
Sherm Pendley
2005-10-11 20:18:10 UTC
Permalink
Post by Paweł Matykiewicz
if You use "gcc -arch ppc64" then You can compile C in 64-bit mode (
sizeof ( int * ) == 8 ). But what about Perl 5.8.6 ?
You'd have to build your own - the Perl supplied with the OS is 32-bit.

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
Nicholas Clark
2005-10-11 20:29:41 UTC
Permalink
Post by Sherm Pendley
Post by Paweł Matykiewicz
if You use "gcc -arch ppc64" then You can compile C in 64-bit mode (
sizeof ( int * ) == 8 ). But what about Perl 5.8.6 ?
You'd have to build your own - the Perl supplied with the OS is 32-bit.
Dominic Dunlop supplied some hints changes for 64 bit compilation in June
2005, which will be in 5.8.8, which I hope to release within a month.

I've not tried to get 5.8.7 (or 5.8.6) building 64 bit on OS X 10.4, but I
assume that as supplied it will not work (don't have access right now to 10.4)
You might manage getting 5.8.6 or 5.8.7 to build 64 bit from source by
replacing the supplied hints/darwin.sh with the current version at:

http://mirrors.develooper.com/perl/APC/perl-5.8.x/hints/darwin.sh

before running Configure. But if that doesn't work you'll need to wait for
5.8.8

Nicholas Clark
Paweł Matykiewicz
2005-10-20 03:22:14 UTC
Permalink
It was possible to compile 64-bit perl under MacOS X 10.4 Tiger with G5.

Whenever "sh Configure" will ask question about compiler one have to write:

"cc -arch ppc64" instead of "cc"

adding "-arch ppc64" as a flag not always works. Best way is to put
"hard-link" in OS so whenever "cc" or "gcc" is used "cc -arch ppc64"
or "gcc -arch ppc64" will be used.

Any errors I got during compiling were because part of modules were
compiled with 64-bit mode and others not.

Please send this mail to other mailing lists. Somehow Apple "Bioteam"
(iNquiry) is not interested in 64-bit perl.

Regards,

--
Pawel Matykiewicz
http://www.neuron.m4u.pl

Loading...