[unix-pc.general] Using gcc on perl

randy@cctb.wa.com (Randy Orrison) (11/09/89)

In article <995@cgh.UUCP> paul@cgh.UUCP (Paul Homchick) writes:
| >...  Comment them out.  Perl will build.  Note it does not pass all it's tests.
| >---  Steve Simmons	scs@iti.org   Industrial Technology Institute
| 
| Aha! It's not just me.  Mine failed on test 3 and 4 of op.magic, and on
| tests 3 through 7 of op.mkdir.  This was with the standard 7300/3B1 cc. 
| When I tried gcc (1.35) I had all kinds of grief including "Virtual
| Memory exhausted", "cc1 caught signal 11", and a perl executable which
| dumped core with an "illegal instruction."  I think I am going to give
| my gcc a looooonnnnng rest.

Well, I used gcc 1.36 on perl and it worked just fine.  There were a
couple gotchas, though.  eval.c and toke.c both had to be compiled with
the standard cc; this is easy enough.  (Modify the makefile and add
these lines:

eval.o: eval.c
	cc -c -O $(LARGE) eval.c

toke.o: toke.c
	cc -c -O $(LARGE) toke.c

right before the perl.man lines.)  The other gotcha is reflected in the
makefile already:  you need to use -fpcc-struct-return so that the gcc
binaries will be able to pass structs to code compiled with the standard
compiler.  With these modifications, plus corrections to fix the pw_
stuff, perl passed all but one test, op.mkdir #3.  If you want the exact
mods to fix the pw_ stuff, let me know.

    -randy
-- 
Randy Orrison			Chemical Computer Thinking Battery
uunet!microsoft!cctb!randy			 randy@cctb.wa.com
"Paradise is exactly like where you are right now,
					 only much, much, better."