[6425] in s-news-athena

home help back first fref pref prev next nref lref last post

adding FORTRAN code to S-PLUS

daemon@ATHENA.MIT.EDU (rhg@joplin.att.com)
Fri Feb 10 16:39:48 1995

Date: Fri, 10 Feb 95 15:24:51 EST
From: rhg@joplin.att.com
To: s-news@utstat.toronto.edu

We're attempting to add some Fortran 77 code into S-PLUS.  Using the
built-in makefiles, we've encountered some problems (full output below).
We get the message:

    Can't open: /statsci/newfun/lib/inddev.z (No such file or directory)

which is correct... there is no inddev.z in the newfun/lib directory.
When we comment that line out of /statsci/cmd/makehead, we get the
message:

    Object file format error in: /statsci/newfun/lib/grz.a(zinitz.o): cannot
        mix Elf and COFF objects.

We recently obtained S-PLUS 3.1 Release 1 to run on an SGI running
IRIX Release 5.2.  We've been using the 4/92 version of S on some Suns,
and inddev.z is in the newfun/lib directory.  Also included with S on
the Suns but not with S-PLUS on the SGI machine are newfun/lib/apply,
newfun/lib/graph, and newfun/lib/libedit.a

I'd appreciate any suggestions about the problem with the missing inddev.z.
Will we also need apply, graph and libedit.a?

Thanks.

Bob Groff
rhg@joplin.att.com
------------------

Make output reports:
____________

Barplot:
	f77 -s -Wl,-L/usr/lib,-L/usr/local/X11/R4/lib -o /home/mas/newal/src/chapter/x/Barplot interface.o barplot.x bardrw.o barset.o ${SHOME}/newfun/lib/inddev.z ${SHOME}/newfun/lib/grz.a ${SHOME}/newfun/lib/lang.a ${SHOME}/newfun/lib/psl.a
ld:
Can't open: /statsci/newfun/lib/inddev.z (No such file or directory)
*** Error code 1 (bu21)

make: fatal error.
Any files containing compile errors are in directory /tmp
*** Error code 1 (bu21)

make: fatal error.

------------
Barplot:
	echo "INCLUDE(u/cinter)CINTER(barplot,g)" >interface.C
	/bin/rm -f /tmp/interface.c >/dev/null 2>&1 || true
interface.C
	${SHOME}/cmd/m4 -DSHOME=${SHOME} -DBASEFILE=interface.C ${SHOME}/newfun/include/u/mach.m ${SHOME}/newfun/include/u/cdefs.m interface.C >/tmp/interface.c
	A=`pwd`; cd /tmp; cc -O2 -Olimit 2500   -I/usr/include/bsd -G 0 -cckr  ${CPP_FLAGS} -I/usr/include -I/usr/local/X11/R4/include -I${SHOME}/include -I$A -c interface.c
cfe: Warning 709: interface.c, line 46: Incompatible pointer type assignment
 	istat=signal(2	,((SIG_PF)1));
 	-----^
cfe: Warning 689: interface.c, line 96: Unacceptable operand of == or !=
 			if(istat != ((SIG_PF)1)) signal(2	, wakeup);
 			---------^
	mv /tmp/interface.o interface.o
	/bin/rm -f /tmp/interface.*
	/bin/rm -f /tmp/barplot.* >/dev/null 2>&1 || true
	${SHOME}/cmd/icomp <barplot.i >/tmp/barplot.i
	${SHOME}/cmd/m4 -DSHOME=${SHOME} -DBASEFILE=barplot.i ${SHOME}/newfun/include/intf.m /tmp/barplot.i >/tmp/barplot.s
	${SHOME}/cmd/m4 -DSHOME=${SHOME} -DBASEFILE=barplot.i ${SHOME}/newfun/include/u/mach.m ${SHOME}/newfun/include/ratfor.m /tmp/barplot.s >/tmp/barplot.r
	ratfor "-6&" </tmp/barplot.r >/tmp/barplot.f
	cd /tmp; f77 -c -Nq500 -Nn8191 -O2 -Olimit 2500   -G 0  barplot.f 2>&1 | sed "/local variable.*used/d"
	mv /tmp/barplot.o barplot.x
	/bin/rm -f /tmp/barplot.*
	/bin/rm -f /tmp/bardrw.* >/dev/null 2>&1 || true
	${SHOME}/cmd/m4 -DSHOME=${SHOME} -DBASEFILE=bardrw.r ${SHOME}/newfun/include/u/mach.m ${SHOME}/newfun/include/ratfor.m bardrw.r >/tmp/bardrw.r
	ratfor "-6&" </tmp/bardrw.r >/tmp/bardrw.f
	cd /tmp; f77 -O2 -Olimit 2500   -G 0  -c bardrw.f
	mv /tmp/bardrw.o bardrw.o
	/bin/rm -f /tmp/bardrw.*
	/bin/rm -f /tmp/barset.* >/dev/null 2>&1 || true
	${SHOME}/cmd/m4 -DSHOME=${SHOME} -DBASEFILE=barset.r ${SHOME}/newfun/include/u/mach.m ${SHOME}/newfun/include/ratfor.m barset.r >/tmp/barset.r
	ratfor "-6&" </tmp/barset.r >/tmp/barset.f
	cd /tmp; f77 -O2 -Olimit 2500   -G 0  -c barset.f
	mv /tmp/barset.o barset.o
	/bin/rm -f /tmp/barset.*
	f77 -s -Wl,-L/usr/lib,-L/usr/local/X11/R4/lib -o /home/mas/newal/src/chapter/x/Barplot interface.o barplot.x bardrw.o barset.o  ${SHOME}/newfun/lib/grz.a ${SHOME}/newfun/lib/lang.a ${SHOME}/newfun/lib/psl.a
ld:
Object file format error in: /statsci/newfun/lib/grz.a(zinitz.o): cannot mix Elf and COFF objects.
*** Error code 1 (bu21)

make: fatal error.
Any files containing compile errors are in directory /tmp
*** Error code 1 (bu21)

make: fatal error.
____________

home help back first fref pref prev next nref lref last post