Skip Menu |

This queue is for tickets about the Mac-Carbon CPAN distribution.

Report information
The Basics
Id: 5587
Status: resolved
Priority: 0/
Queue: Mac-Carbon

People
Owner: Nobody in particular
Requestors: siracusa [...] mindspring.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.64
Fixed in: 0.65



Subject: Build fails in 10.3.2 (7D24) and perl 5.8.3
In Mac OS X 10.3.2 (7D24) and perl 5.8.3, "make" fails with the following error: ... cc -c -I/Developer/Headers/FlatCarbon/ -I./MoreFilesSrc -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -mcpu=970 -mtune=970 -mpowerpc64 -mpowerpc-gpopt -fpascal-strings -O3 -DVERSION=\"1.03\" -DXS_VERSION=\"1.03\" "-I/usr/local/lib/perl5/5.8.3/darwin-2level/CORE" DirectoryCopy.c {standard input}:460:Parameter error: expression must be a multiple of 4 (parameter 2) make[1]: *** [DirectoryCopy.o] Error 1 make: *** [subdirs] Error 2
From: siracusa [...] mindspring.com
Here's a work-around: % cd /usr/local/src/CPAN/build/Mac-Carbon-0.64 % perl Makefile.PL % perl -pi~ -e 's/-mcpu=970 -mtune=970 -mpowerpc64 -mpowerpc-gpopt//' `find . -name Makefile` % make % make test (everything passes) Apparently it doesn't like the PPC 970 tuning flags that I used to compile perl itself.
Date: Sun, 7 Mar 2004 19:20:26 -0800
To: bug-Mac-Carbon [...] rt.cpan.org
From: Chris Nandor <pudge [...] pobox.com>
Subject: Re: [cpan #5587] Build fails in 10.3.2 (7D24) and perl 5.8.3
RT-Send-Cc:
Show quoted text
>Apparently it doesn't like the PPC 970 tuning flags that I used to compile >perl >itself.
I know nothing about this flag; is there a good resource where I can read up on it? Is there something I can do to fix it on my end that you know of? Thanks. -- Chris Nandor pudge@pobox.com http://pudge.net/ Open Source Development Network pudge@osdn.com http://osdn.com/
[pudge@pobox.com - Sun Mar 7 22:25:31 2004]: Show quoted text
> >Apparently it doesn't like the PPC 970 tuning flags that I used to compile > >perl >itself.
> > I know nothing about this flag; is there a good resource where I can read > up on it? Is there something I can do to fix it on my end that you know > of? Thanks.
Here's some info from Apple: http://developer.apple.com/technotes/tn/tn2086.html#G5options This is the first time I've run into (what looks like) alignment issues using these flags. For example, perl itself compiles fine with them and passes all tests. So have all the other CPAN modules I've installed. I'm not sure what it is about the Carbon APIs that pukes on them. Worst case, you can yank them out of the Makefiles yourself during the build process I guess... :) Or maybe just one of them is messing things up. I don't know because I just removed them all to get it to work.
[siracusa@mindspring.com - Sun Mar 7 23:02:55 2004]: Please try adding this to MoreFiles/Makefile.PL (at the end of the darwin conditional section, at line 20): $ARGS{'CCFLAGS'} =~ s/-mpowerpc64\b//; ... assuming that this is in CCFLAGS for you. I tried with and without this flag and it failed with it, worked without it. I am not sure what it is in Carbon that's causing it to puke, but I don't really feel like going too deep to figure it out. :-) So if this works, I'll add it. -- Chris Nandor pudge@pobox.com http://pudge.net/ Open Source Development Network pudge@osdn.com http://osdn.com/