[CIG-SEISMO] SPECFEM3D - SunOS

D-Durga-Prasad ddprasad at gmail.com
Mon Mar 28 03:25:03 PDT 2011


Hello ,

I did not read the mail properly. Now I copied the Makefile.in to the
 /data/SPECFEM3D/src/decompose_mesh_SCOTCH/Makefile.in

and the compiled. But now I ma getting same error for two different versions
of make (gmake as well as /usr/ccs/bin/make)

bash-3.00# make
(cd obj; mkdir -p dec)
(cd src/decompose_mesh_SCOTCH ; make)
make[1]: Entering directory `/data/SPECFEM3D/src/decompose_mesh_SCOTCH'
Makefile:95: *** missing separator.  Stop.
make[1]: Leaving directory `/data/SPECFEM3D/src/decompose_mesh_SCOTCH'
make: *** [xdecompose_mesh_SCOTCH] Error 2


bash-3.00# /usr/ccs/bin/make
(cd obj; mkdir -p dec)
(cd src/decompose_mesh_SCOTCH ; make)
make[1]: Entering directory `/data/SPECFEM3D/src/decompose_mesh_SCOTCH'
Makefile:95: *** missing separator.  Stop.
make[1]: Leaving directory `/data/SPECFEM3D/src/decompose_mesh_SCOTCH'
*** Error code 2
make: Fatal error: Command failed for target `xdecompose_mesh_SCOTCH'



On Mon, Mar 28, 2011 at 2:57 PM, D-Durga-Prasad <ddprasad at gmail.com> wrote:

> Hi,
> This is latest status. Makefile.in still has some errors it
>
> (Attachments not working today)
> Orginal Makefile.in
>
> if test "X1" = "X1"; then echo "Using bundled Scotch"; cd /src; make; else
> echo "Not using bundled Scotch"; fi
> Using bundled Scotch
> sh: /src: does not exist
> *** Error code 1
> make: Fatal error: Command failed for target `scotch'
>
> Config.log: FileName: Config2.log
>
> ///////////////////////
> Modified Makefile.in:=
> if test "X1" = "X1"; then echo "Using bundled Scotch"; cd ./src; make; else
> echo "Not using bundled Scotch"; fi
> Using bundled Scotch
>
>
> if test "X1" = "X1"; then echo "Using bundled Scotch"; cd ./src; make; else
> echo "Not using bundled Scotch"; fi
> Using bundled Scotch
> make: Fatal error: No arguments to build
> Current working directory /data/SPECFEM3D/src
> *** Error code 1
> make: Fatal error: Command failed for target `scotch'
>
> Config.log: FileName: Config1.log
> action-stmt, or a label.
>
> Thanking You.
>
> On Sun, Mar 27, 2011 at 7:59 PM, Walter Landry <walter at geodynamics.org>wrote:
>
>> D-Durga-Prasad <ddprasad at gmail.com> wrote:
>> > Hi,
>> > Please find the following details
>> >
>> > ./configure FC=f90 MPIFC=mpif95 CC=c99  --prefix=/usr/local (logname:
>> > config.log alias name c1.log)
>> >
>> > make:---
>> > (cd obj; mkdir -p dec)
>> > (cd src/decompose_mesh_SCOTCH ; make)
>> > make: Fatal error in reader: Makefile, line 101: Unexpected end of line
>> seen
>> > Current working directory /data/SPECFEM3D/src/decompose_mesh_SCOTCH
>> > make: *** [xdecompose_mesh_SCOTCH] Error 1
>>
>> It looks like you might be using a non-Gnu version of make.  What is
>> the output of "make --version"?  If you have "gmake" installed, that
>> would probably work.
>>
>> In any case, try replacing your version of
>>
>>  /data/SPECFEM3D/src/decompose_mesh_SCOTCH/Makefile.in
>>
>> with the attached file.  That should work with any version of make.
>> Please let me know if it works for you, and then we can update the
>> official version.
>>
>> Cheers,
>> Walter Landry
>> walter at geodynamics.org
>>
>> #=====================================================================
>> #
>> #               S p e c f e m 3 D  V e r s i o n  1 . 4
>> #               ---------------------------------------
>> #
>> #                 Dimitri Komatitsch and Jeroen Tromp
>> #    Seismological Laboratory - California Institute of Technology
>> #         (c) California Institute of Technology July 2005
>> #
>> # This program is free software; you can redistribute it and/or modify
>> # it under the terms of the GNU General Public License as published by
>> # the Free Software Foundation; either version 2 of the License, or
>> # (at your option) any later version.
>> #
>> # This program is distributed in the hope that it will be useful,
>> # but WITHOUT ANY WARRANTY; without even the implied warranty of
>> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>> # GNU General Public License for more details.
>> #
>> # You should have received a copy of the GNU General Public License along
>> # with this program; if not, write to the Free Software Foundation, Inc.,
>> # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
>> #
>> #=====================================================================
>> #
>> # United States Government Sponsorship Acknowledged.
>> #
>>
>> # @configure_input@
>>
>> FC = @FC@
>> FCFLAGS = #@FCFLAGS@
>> MPIFC = @MPIFC@
>> MPILIBS = @MPILIBS@
>> FLAGS_CHECK = @FLAGS_CHECK@
>> FLAGS_NO_CHECK = @FLAGS_NO_CHECK@
>> FCFLAGS_f90 = @FCFLAGS_f90@
>>
>> FCCOMPILE_CHECK =@FCENV@ ${FC} ${FCFLAGS} $(FLAGS_CHECK)
>> FCCOMPILE_NO_CHECK =@FCENV@ ${FC} ${FCFLAGS} $(FLAGS_NO_CHECK)
>> MPIFCCOMPILE_CHECK =@FCENV@ ${MPIFC} ${FCFLAGS} $(FLAGS_CHECK)
>> MPIFCCOMPILE_NO_CHECK =@FCENV@ ${MPIFC} ${FCFLAGS} $(FLAGS_NO_CHECK)
>> #@COND_MPI_TRUE at FCLINK = $(MPIFCCOMPILE_NO_CHECK)
>> #@COND_MPI_FALSE at FCLINK = $(FCCOMPILE_NO_CHECK)
>> FCLINK = $(FCCOMPILE_NO_CHECK)
>>
>> CC = @CC@
>> CFLAGS = @CFLAGS@ $(CPPFLAGS)
>> CPPFLAGS = @CPPFLAGS@ $(COND_MPI_CPPFLAGS)
>> @COND_MPI_TRUE at COND_MPI_CPPFLAGS = -DWITH_MPI
>> @COND_MPI_FALSE at COND_MPI_CPPFLAGS =
>>
>> SCOTCH_LIBS = -L"@SCOTCH_LIBDIR@" -lscotch -lscotcherr
>> SCOTCH_INC = -I"@SCOTCH_INCLUDEDIR@"
>>
>> AR = ar
>> ARFLAGS = cru
>> RANLIB = ranlib
>>
>>
>> # E : executables directory
>> E = ../../bin
>> # O : objects directory
>> O = ../../obj/dec
>>
>> # objects toggled between the parallel and serial version
>> #COND_MPI_OBJECTS = $O/parallel.o
>> #COND_MPI_OBJECTS = $O/serial.o
>>
>> ####
>> #### targets
>> ####
>>
>> # default targets for the Pyrized version
>> DEFAULT = scotch xdecompose_mesh_SCOTCH
>>
>>
>> default: $(DEFAULT)
>>
>> all: clean default
>>
>> decompose_mesh_SCOTCH: xdecompose_mesh_SCOTCH
>>
>>
>> ####
>> #### rules for executables
>> ####
>>
>> DEC_OBJECTS = $O/part_decompose_mesh_SCOTCH.o \
>>                $O/decompose_mesh_SCOTCH.o \
>>                $O/program_decompose_mesh_SCOTCH.o
>>
>> # rules for the pure Fortran version
>> @COND_PYRE_FALSE at xdecompose_mesh_SCOTCH:: $(DEC_OBJECTS)
>> @COND_PYRE_FALSE@       ${FCLINK} -o  $E/xdecompose_mesh_SCOTCH
>> $(DEC_OBJECTS) $(SCOTCH_INC)  $(SCOTCH_LIBS)
>> @COND_PYRE_FALSE@
>>
>>
>> scotch:
>>        if test "X at USE_BUNDLED_SCOTCH@" = "X1"; then echo "Using bundled
>> Scotch"; cd @SCOTCH_DIR@/src; make; else echo "Not using bundled Scotch";
>> fi
>>
>> clean:
>>        rm -f $O/*.o *.mod  $E/xdecompose_mesh_SCOTCH
>> ####
>> #### rule to build each .o file below
>> ####
>>
>> $O/part_decompose_mesh_SCOTCH.o: part_decompose_mesh_SCOTCH.f90
>>        ${FCCOMPILE_CHECK} -c -o $O/part_decompose_mesh_SCOTCH.o
>> part_decompose_mesh_SCOTCH.f90 $(SCOTCH_INC)
>>
>> $O/decompose_mesh_SCOTCH.o: decompose_mesh_SCOTCH.f90
>> part_decompose_mesh_SCOTCH.f90 $O/part_decompose_mesh_SCOTCH.o
>>        ${FCCOMPILE_CHECK} -c -o $O/decompose_mesh_SCOTCH.o
>> decompose_mesh_SCOTCH.f90 $(SCOTCH_INC)
>>
>> $O/program_decompose_mesh_SCOTCH.o: program_decompose_mesh_SCOTCH.f90
>> $O/part_decompose_mesh_SCOTCH.o $O/decompose_mesh_SCOTCH.o
>>        ${FCCOMPILE_CHECK} -c -o $O/program_decompose_mesh_SCOTCH.o
>> program_decompose_mesh_SCOTCH.f90 $(SCOTCH_INC)
>>
>>
>>
>>
>
>
> --
> *D Durga Prasad*
> Jr Technical Staff,
> Computer Science Engineering Department.,
> Indian Institute of Technology, Kharagpur, INDIA
>
> Contact:
> ddprasad at iitkgp.ac.in,ddprasad at cse.iitkgp.ernet.in, ddprasad at gmail.com
> Mobile: +91 9474756471
> *Success is not final, failure is not fatal: it is the courage to continue
> that counts!!*
>
>


-- 
*D Durga Prasad*
Jr Technical Staff,
Computer Science Engineering Department.,
Indian Institute of Technology, Kharagpur, INDIA

Contact:
ddprasad at iitkgp.ac.in,ddprasad at cse.iitkgp.ernet.in, ddprasad at gmail.com
Mobile: +91 9474756471
*Success is not final, failure is not fatal: it is the courage to continue
that counts!!*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://geodynamics.org/pipermail/cig-seismo/attachments/20110328/4c97948d/attachment.htm 


More information about the CIG-SEISMO mailing list