develooper Front page | perl.perl5.porters | Postings from October 2003

Re: gcc -fast -mcpu=G3 -mtune=G3 go boom

Thread Previous | Thread Next
From:
Paul Schinder
Date:
October 15, 2003 07:42
Subject:
Re: gcc -fast -mcpu=G3 -mtune=G3 go boom
Message ID:
p06002000bbb300df6975@[10.0.1.54]
At 12:09 AM -0700 10/15/03, Michael G Schwern wrote:
>In case anyone's curious, the result of trying to build 5.8.1 on OS X
>10.2.8 on a G3 iBook with gcc -fast -mcpu=G3 -mtune=G3 is...
>
>cc -flat_namespace -L/sw/lib -L/usr/local/lib  -o miniperl \
>     miniperlmain.o opmini.o libperl.a -ldl -lm -lc
>./miniperl -w -Ilib -MExporter -e '<?>' || make minitest
>./miniperl -Ilib configpm configpm.tmp
>make: *** [lib/Config.pm] Bus error
>
>Boom.
>
>Anyone with a G4 or G5 try it?

Got as far as this on my Powerbook G4:

../../../miniperl "-I../../../lib" "-I../../../lib" 
/Users/schinder/src/perl-5.8.1/lib/ExtUtils/xsubpp  -typemap 
../../../lib/ExtUtils/typemap  C.xs > C.xsc && mv C.xsc C.c
gcc -c   -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp 
-fno-strict-aliasing -I/usr/local/include -fast -mcpu=G4 -mtune=G4 
-O1   -DVERSION=\"1.02\" -DXS_VERSION=\"1.02\"  "-I../../.."   C.c
Running Mkbootstrap for B::C ()
chmod 644 C.bs
rm -f ../../../lib/auto/B/C/C.bundle
LD_RUN_PATH="" gcc  -flat_namespace -bundle -undefined suppress 
-L/usr/local/lib -L/sw/lib -fast -mcpu=G4 -mtune=G4 C.o  -o 
../../../lib/auto/B/C/C.bundle
ld: C.o has local relocation entries in non-writable section (__TEXT,__text)
make[2]: *** [../../../lib/auto/B/C/C.bundle] Error 1
make[1]: *** [subdirs] Error 2
make: *** [lib/auto/B/B.bundle] Error 2

I guess the relocation errors are expected given what Apple says about -fast.

>
>
>--
>Michael G Schwern        schwern@pobox.com  http://www.pobox.com/~schwern/
>Do not try comedy at home!  Milk & Cheese are advanced experts!  Attempts at
>comedy can be dangerously unfunny!

-- 
---
Paul Schinder
schinder@pobox.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About