[comp.lang.perl] How to compile perl on DECStations

ted@evi.com (Ted Stefanik) (03/26/91)

Not too long ago, I posted the results of my compiling Perl 4.0 beta for the
DECStation under ULTRIX.  I came up with the same problems that two recent
posters (Sam Bassett and Glenn M. Lewis) have asked for help with.

Even though I got Perl to work just fine by hacking, two people were kind
enough to tell me how to make Perl correctly:

1) Read the README file.  For ULTRIX MIPS, if you use -O, you must do other
   things.  To quote from README:

      Ultrix on MIPS machines may need -DLANGUAGE_C.
      Ultrix 4.0 on MIPS machines may need -Olimit 2820 or so.
      Ultrix 3.[01] on MIPS needs to undefine WAITPID--the system call
                                                       is busted.
      MIPS machines may need to undef d_volatile.
      MIPS machines may need to turn off -O on perly.c and tperly.c.
      Some MIPS machines may need to undefine CASTNEGFLOAT.

   The problem that Sam, Glenn, and I ran into was that MIPS cc messes
   up on the "volatile" keyword found in cmd.[ch] and perl.[ch].

   Take README's suggestions to heart:
      Define -DLANGUAGE_C
      Use -Olimit 2900
      Change config.sh after running Config:
               d_volatile='undef'
               d_waitpid='undef' (for Ultrix 3.0 and Ultrix 3.1 only)
      Disable optimization of perly.c and tperly.c
      (My machine doesn't need CASTNEGFLOAT undefined).

   (I was reminded of this by John Martin of Applied Dynamics International.
    Thanks!)
    
2) Use the DECStation/MIPS GCC from Michael Meissner of the Open Software
   Foundation.  As he pointed out in a recent posting:

      > Another way to 'solve' this problem is to use my patches to GCC (which
      > provide full debug support and better omit frame pointer code).  In
      > normal circumstances, GCC produces slightly slower code than the MIPS
      > compiler, but it seems to not have the nasty optimizer bugs that PERL
      > has found in some of the MIPS compiler revisions.  Of course the fact
      > that I use PERL as a regression suite for new revisions of GCC with
      > full optimization (-O, -fomit-frame-pointer, -fstrength-reduce, and
      > -finline-functions) has nothing to do with it :-)
      > 
      > At present, 1.37.1 patches are available for anonymous FTP on
      > foobar.colorado.edu, and the 1.39 patches should be there shortly.
      > Send me mail if you want to be on my beta list.
      > --
      > Michael Meissner        email: meissner@osf.org

   True to the advertisement, a MIPS gcc can be found in:
      foobar.colorado.edu:/pub/Gnu-For-Pmax/gcc-osf-1.39.3.tar.Z

*************************************************************************
*   Ted Stefanik           (Electronic Component Information Systems)   *
*   Expert Views                                                        *
*   100 Fifth Avenue       ted@evi.com                                  *
*   Waltham, MA  02154     ted%evi.com@uu.psi.com                       *
*   (617) 890-0333         uupsi!blt!ted                                *
*************************************************************************