On Wed, 29 Apr 2015, Eduardo Unda-Sanzana wrote:
> Hello,
>
> I'm trying to compile Tom Marsh's doppler routine. It goes fine until a
> hit a problem with dtask_libtool:
>
> gfortran -Wall -O -fno-second-underscore -fno-automatic -fno-range-check -I/star-2015A/include -c -o doppler.o src/doppler.f
> alink doppler.o -o /usr/local/doppler/doppler \
> -L/usr/local/doppler -ldoppler -L/star-2015A/lib `pgplot_link` -L/star-2015A/lib `ndf_link_adam` -L/usr/local/lib
> LIBTOOL=/star-2015A/bin/dtask_libtool
> /star-2015A/bin/dtask_libtool: 1: eval: base_compile+= gfortran: not found
> /star-2015A/bin/dtask_libtool: 1: eval: base_compile+= -g: not found
> /star-2015A/bin/dtask_libtool: 1: eval: base_compile+= -O2: not found
> /star-2015A/bin/dtask_libtool: 1: eval: base_compile+= -I/star-2015A/include: not found
> /star-2015A/bin/dtask_libtool: 1: eval: base_compile+= -c: not found
> /star-2015A/bin/dtask_libtool: 1: eval: CC_quoted+= gcc: not found
> /star-2015A/bin/dtask_libtool: 1: eval: CC_quoted+= gfortran: not found
> dtask_libtool: compile: you must specify a compilation command
> dtask_libtool: compile: Try `dtask_libtool --help --mode=compile' for more information.
> /star-2015A/bin/dtask_libtool: 1: eval: base_compile+= gfortran: not found
> /star-2015A/bin/dtask_libtool: 1: eval: base_compile+= -g: not found
> /star-2015A/bin/dtask_libtool: 1: eval: base_compile+= -O2: not found
> /star-2015A/bin/dtask_libtool: 1: eval: base_compile+= -I/star-2015A/include: not found
> /star-2015A/bin/dtask_libtool: 1: eval: base_compile+= -c: not found
> /star-2015A/bin/dtask_libtool: 1: eval: CC_quoted+= gcc: not found
> /star-2015A/bin/dtask_libtool: 1: eval: CC_quoted+= gfortran: not found
> dtask_libtool: compile: you must specify a compilation command
> dtask_libtool: compile: Try `dtask_libtool --help --mode=compile' for more information.
> /star-2015A/bin/dtask_libtool: 1: eval: CC_quoted+= gcc: not found
> /star-2015A/bin/dtask_libtool: 1: eval: CC_quoted+= gfortran: not found
> /star-2015A/bin/dtask_libtool: 5653: /star-2015A/bin/dtask_libtool: libtool_args+= -g: not found
> /star-2015A/bin/dtask_libtool: 6431: /star-2015A/bin/dtask_libtool: compile_command+= -g: not found
> /star-2015A/bin/dtask_libtool: 6432: /star-2015A/bin/dtask_libtool: finalize_command+= -g: not found
>
> and many other error lines until it gives up with:
>
> dtask_libtool: link: gfortran
> gfortran: fatal error: no input files
> compilation terminated.
> make: *** [doppler] Error 4
>
> Tom's software allows one to work with either gfortran or g95. This was
> my try with gfortran. Using g95 produces a somewhat different error, but
> it is also stopping at the same line involving dtask_libtool. Does
> somebody have any ideas of what to do?
Hi Eduardo,
seems that some bash extensions have made there way into the dtask_libtool
script.
Edit $STARLINK_DIR/bin/dtask_libtool and change the top-line that says
"#! /bin/sh"
to
"#!/bin/bash".
Should get you working.
Cheers,
Peter.
|