[FLASH-USERS] gmake of FLASH3.0 under Solaris 5

Klaus Weide klaus at flash.uchicago.edu
Tue Mar 11 10:46:15 EDT 2008


On Tue, 11 Mar 2008, Geoff Bicknell wrote:

> I have been having problems gmaking a FLASH executable under Solaris 5.10. 
> The computer is a SUN 4 dual cpu machine with AMD Opteron processors.
>
> After a number of F90 modules have been successfully compiled I get the 
> message:
>
> if [ -s "nameValueLL_data.mod" -a "nameValueLL_data.mod" -nt 
> "namevaluell_data.mod" ];then ln -f nameValueLL_data.mod 
> namevaluell_data.mod;fi
> /bin/sh: test: unknown operator -nt
>
> The problem seems to be that in the Bourne shell in Solaris 5.10 the test 
> program does not recognise the -nt option.

This comes from Makefile.Depends (automatically generated by 
setup_depends.py), which contains lines like these:

namevaluell_data.mod: nameValueLL_data.mod ;if [ -s "$<" -a "$<" -nt "$@" ];then ln -f $< $@;fi

(This is part of some trickery that tries to ensure that no more and no
fewer than the necessary files are regenerated when gmake is run, 
including .mod files.)

The simplest way to force gmake to use a certain shell is putting a line
like

   SHELL=/bin/bash

in a Makefile. The best place for this would probably be in

   sites/your.sitename/Makefile.h .


Klaus Weide
FLASH Center



More information about the flash-users mailing list