[CIG-SEISMO] SPECFEM3D - SunOS - Help Reqd (strndup error)

D-Durga-Prasad ddprasad at gmail.com
Tue Mar 29 08:19:57 PDT 2011


Hi,

When I am using gmake, it seems the code gets complied until an error with
strndup is encountered:

Make Error:=

mpif90   -I../shared -c -o ../../obj/gen/parallel.o ../shared/parallel.f90
mpif90   -I../shared -o ../../bin/xgenerate_databases
../../obj/gen/program_generate_databases.o ../../lib/libgendatabases.a
../../obj/gen/parallel.o
Undefined                       first referenced
 symbol                             in file
strndup
../../lib/libgendatabases.a(param_reader.o)
ld: fatal: Symbol referencing errors. No output written to
../../bin/xgenerate_databases
make[1]: *** [xgenerate_databases] Error 1
make[1]: Leaving directory `/data/SPECFEM3D/src/generate_databases'
make: *** [xgenerate_databases] Error 2

Status of gcc/cc
bash-3.00# find / -name "gcc"
/usr/sfw/lib/gcc
/usr/sfw/bin/gcc
/usr/sfw/libexec/gcc
/gcc

bash-3.00# find / -name "cc"
/usr/ucb/cc
/opt/SUNWspro/bin/cc
/opt/SUNWspro/prod/bin/cc
/opt/SUNWspro/prod/include/cc


./configure FC=f90 MPIFC=mpif90 USE_BUNDLED_SCOTCH=1 CC=/opt/SUNWspro/bin/cc
--prefix=/usr/local

bash-3.00# echo $PATH
/opt/SUNWspro/bin:;:/bin:/usr/bin:/usr/ucb:/etc:.:/usr/local/bin:/usr/local/bin:/usr/sfw/bin/

Any ideas about the errors

Thank you



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

> 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
>>>
>>>

-- 
*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
*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/20110329/fd7e98c9/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 1105557 bytes
Desc: not available
Url : http://geodynamics.org/pipermail/cig-seismo/attachments/20110329/fd7e98c9/attachment-0001.bin 


More information about the CIG-SEISMO mailing list