Subject: Compiling Mopac93 on an SGI Summary

From: [email-masked] (Michael Shephard)
Date: Wed, 19 Jul 95 17:32:22 PDT

****************
Original Post
****************
I am having difficulty in compiling Mopac93 (Release 2 obtained
>from QCPE) for an SGI machine (R4400 Indigo Irix 5.2)

Well, actually it compiles OK without error but the mopac.exe
produced doesn't work very well at all.

Is there am SGI version of the source, or is the sun source supplied
the "generic unix version", or possibly there is an SGI version of the
makefile?

****************

The replies I recieved can be basically summarized as:
"We had no problem in compiling Mopac93 for an SGI although
the supplied job submission script, mopac.csh, is a dud."
followed by an offer of help.

Thanks to:
Georg Ostertag
Satyam
Steve Bowlus
Walter E. Reiher III

However, Steve Bowlus and Walter E. Reiher III noted that it may
be the flags supplied to the compiler that may be causing the problems
and on examining extracts of their makefiles, this proved to be the case.

The key compiler option missing from the Mopac93R2 makefile was the
"-static" flag.

The modifications to the makefile (as given by Walter E. Reiher III)
are:

Note that the "SPARC" flags have been modified so
they are now "SGI" flags. It would be more elegant
to add a seperate SGI section to the makefile so
it can both 'make sgi' and 'make sparc'.

************************
Modified Makefile flags
(a "-mips2" flag can be added to SPARCFFLAGS
depending on the SGI machine mopac is
being compiled for)
************************

SPARCFC           = f77
SPARCFFLAGS       = -O -static -Olimit 1350
SPARCCPP          = do_cpp_sgi.csh
SPARCEXE          = ../mopac.exe
SPARCEXTRAS     = blas.o

**********************
do_cpp_sgi.csh script
(place in the mopac_sun_source directory)
**********************

#!/bin/csh -f
#
#       DO_CPP_SGI.csh
#       Run the C preprocessor on SGI
#
#  WER
#  Tue Feb 22 13:45:50 PST 1994
#
#
f77 -P $1 
mv `basename $1 .f`.i $2

****************************

--
_________________________________________________________________________
| Michael Shephard.                  |      [email-masked]      |
| University of New South Wales.     |  [email-masked]  |
| Australia                          |                                  |