intro story D-Flow FM

 

D-Flow Flexible Mesh

D-Flow Flexible Mesh (D-Flow FM) is the new software engine for hydrodynamical simulations on unstructured grids in 1D-2D-3D. Together with the familiar curvilinear meshes from Delft3D 4, the unstructured grid can consist of triangles, pentagons (etc.) and 1D channel networks, all in one single mesh. It combines proven technology from the hydrodynamic engines of Delft3D 4 and SOBEK 2 and adds flexible administration, resulting in:

  • Easier 1D-2D-3D model coupling, intuitive setup of boundary conditions and meteorological forcings (amongst others).
  • More flexible 2D gridding in delta regions, river junctions, harbours, intertidal flats and more.
  • High performance by smart use of multicore architectures, and grid computing clusters.
An overview of the current developments can be found here.
 
The D-Flow FM - team would be delighted if you would participate in discussions on the generation of meshes, the specification of boundary conditions, the running of computations, and all kinds of other relevant topics. Feel free to share your smart questions and/or brilliant solutions! 

 

=======================================================
We have launched a new website (still under construction so expect continuous improvements) and a new forum dedicated to Delft3D Flexible Mesh.

Please follow this link to the new forum: 
/web/delft3dfm/forum

Post your questions, issues, suggestions, difficulties related to our Delft3D Flexible Mesh Suite on the new forum.

=======================================================

** PLEASE TAG YOUR POST! **

 

 

Sub groups
D-Flow Flexible Mesh
DELWAQ
Cohesive sediments & muddy systems

 


Message Boards

RE: make error ('CYGWIN') version#2360

GJ
glejin johnson, modified 6 Years ago.

make error ('CYGWIN') version#2360

Youngling Posts: 11 Join Date: 6/9/13 Recent Posts
I'm trying to compile Delft3d on windows 7 with gfortran. The autogen.sh and configure run fine, but when I try to run 'make', it starts compiling, then crashes with a error:

fsm.cpp: In function 'int fsm_tracefile_(char*)':
fsm.cpp:649:5: warning: deprecated conversion from string constant to 'char*'
fsm.cpp:649:5: warning: deprecated conversion from string constant to 'char*'
fsm.cpp:649:5: warning: deprecated conversion from string constant to 'char*'
fsm.cpp:649:5: warning: deprecated conversion from string constant to 'char*'
fsm.cpp:649:5: warning: deprecated conversion from string constant to 'char*'
fsm.cpp:655:89: warning: deprecated conversion from string constant to 'char*'
fsm.cpp:656:9: warning: deprecated conversion from string constant to 'char*'
fsm.cpp:663:81: warning: deprecated conversion from string constant to 'char*'
fsm.cpp:664:9: warning: deprecated conversion from string constant to 'char*'
fsm.cpp:668:5: warning: deprecated conversion from string constant to 'char*'
fsm.cpp: In function 'void InitProcess()':
fsm.cpp:697:56: warning: deprecated conversion from string constant to 'char*'
fsm.cpp:705:63: warning: deprecated conversion from string constant to 'char*'
Makefile:428: recipe for target `fsm.lo' failed
make[7]: *** [fsm.lo] Error 1
make[7]: Leaving directory `/cygdrive/c/2360/src/utils_lgpl/esmfsm/packages/esmfsm_c/src/fsm'
Makefile:404: recipe for target `all-recursive' failed
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/cygdrive/c/2360/src/utils_lgpl/esmfsm/packages/esmfsm_c/src'
Makefile:403: recipe for target `all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/cygdrive/c/2360/src/utils_lgpl/esmfsm/packages/esmfsm_c'
Makefile:405: recipe for target `all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/cygdrive/c/2360/src/utils_lgpl/esmfsm/packages'
Makefile:404: recipe for target `all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/cygdrive/c/2360/src/utils_lgpl/esmfsm'
Makefile:410: recipe for target `all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/2360/src/utils_lgpl'
Makefile:460: recipe for target `all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/2360/src'
Makefile:390: recipe for target `all' failed
make: *** [all] Error 2

I need someones help to sove this problem, which will be greatly appreciated.

Glejin
Adri Mourits, modified 6 Years ago.

RE: make error ('CYGWIN') version#2360

Yoda Posts: 1224 Join Date: 1/3/11 Recent Posts
Hi Glejin,

When using gfortran on Linux, the same warnings appear but the compilation continues (see "...\src\logs\make_gnu4.6.2.log" in the trunk). I expect that an error occurred just before these warnings. Can you attach the full make log to a post on this forum?

Thanks.

Regards,

Adri
GJ
glejin johnson, modified 6 Years ago.

RE: make error ('CYGWIN') version#2360

Youngling Posts: 11 Join Date: 6/9/13 Recent Posts
Hi Adri,

Here i am attaching the full make log.


Regards,

Glejin
Adri Mourits, modified 6 Years ago.

RE: make error ('CYGWIN') version#2360 (Answer)

Yoda Posts: 1224 Join Date: 1/3/11 Recent Posts
Hi Glejin,

The error message is on line 287:
fsm.cpp:558:54: error: 'rpl_malloc' was not declared in this scope

Somehow malloc is replaced by rpl_malloc on your system. If you can locate rpl_malloc, you can solve this by adding that path.

After Googling: someone solved it by copying stuff from "/usr/local/include" to "/usr/include" and from "/usr/local/lib" to "/usr/lib". This might help you too, or you might solve it by adding these local paths to the compile dependencies.

Another thing that might give more information:
Compare your configure.log with "...\src\logs\configure_gnu4.6.2.log" in the trunk, especially with respect to "malloc" related things.

Hope this helps.

Regards,

Adri
GJ
glejin johnson, modified 6 Years ago.

RE: make error ('CYGWIN') version#2360

Youngling Posts: 11 Join Date: 6/9/13 Recent Posts
Hi Adri,
Thank you for your time, But it couldn't help me to solve the issue.
I tried to locate rpl_malloc in my system , but I couldn't succeed to get it. I have one doubt that Is it necessary to install "Deltaonline" in system?. Previosly I did run make command without installing "DelftOnline". when I tried to install "Deltaonline" got following error after run "make dist" from SRC as

user@DB-1869 /home/2360/src
$ make dist
cd . && /bin/sh ./config.status Makefile
config.status: creating Makefile
make dist-gzip am__post_remove_distdir='@:'
make[1]: Entering directory `/home/2360/src'
if test -d "delft3d-0.0"; then find "delft3d-0.0" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "delft3d-0.0" || { sleep 5 && rm -rf "delft3d-0.0"; }; else :; fi
test -d "delft3d-0.0" || mkdir "delft3d-0.0"
(cd third_party_open && make top_distdir=../delft3d-0.0 distdir=../delft3d-0.0/third_party_open \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
make[2]: Entering directory `/home/2360/src/third_party_open'
(cd version_number && make top_distdir=../../delft3d-0.0 distdir=../../delft3d-0.0/third_party_open/version_number \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
make[3]: Entering directory `/home/2360/src/third_party_open/version_number'
cd ../.. && /bin/sh ./config.status third_party_open/version_number/Makefile
config.status: creating third_party_open/version_number/Makefile
make[3]: Leaving directory `/home/2360/src/third_party_open/version_number'
make[3]: Entering directory `/home/2360/src/third_party_open/version_number'
(cd packages && make top_distdir=../../../delft3d-0.0 distdir=../../../delft3d-0.0/third_party_open/version_number/packages \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
make[4]: Entering directory `/home/2360/src/third_party_open/version_number/packages'
cd ../../.. && /bin/sh ./config.status third_party_open/version_number/packages/Makefile
config.status: creating third_party_open/version_number/packages/Makefile
make[4]: Leaving directory `/home/2360/src/third_party_open/version_number/packages'
make[4]: Entering directory `/home/2360/src/third_party_open/version_number/packages'
(cd version_number && make top_distdir=../../../../delft3d-0.0 distdir=../../../../delft3d-0.0/third_party_open/version_number/packages/version_number \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
make[5]: Entering directory `/home/2360/src/third_party_open/version_number/packages/version_number'
cd ../../../.. && /bin/sh ./config.status third_party_open/version_number/packages/version_number/Makefile
config.status: creating third_party_open/version_number/packages/version_number/Makefile
make[5]: Leaving directory `/home/2360/src/third_party_open/version_number/packages/version_number'
make[5]: Entering directory `/home/2360/src/third_party_open/version_number/packages/version_number'
(cd src && make top_distdir=../../../../../delft3d-0.0 distdir=../../../../../delft3d-0.0/third_party_open/version_number/packages/version_number/src \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
make[6]: Entering directory `/home/2360/src/third_party_open/version_number/packages/version_number/src'
cd ../../../../.. && /bin/sh ./config.status third_party_open/version_number/packages/version_number/src/Makefile
config.status: creating third_party_open/version_number/packages/version_number/src/Makefile
make[6]: Leaving directory `/home/2360/src/third_party_open/version_number/packages/version_number/src'
make[6]: Entering directory `/home/2360/src/third_party_open/version_number/packages/version_number/src'
make[6]: Leaving directory `/home/2360/src/third_party_open/version_number/packages/version_number/src'
make[5]: Leaving directory `/home/2360/src/third_party_open/version_number/packages/version_number'
make[4]: Leaving directory `/home/2360/src/third_party_open/version_number/packages'
make[3]: Leaving directory `/home/2360/src/third_party_open/version_number'
make[2]: Leaving directory `/home/2360/src/third_party_open'
(cd utils_lgpl && make top_distdir=../delft3d-0.0 distdir=../delft3d-0.0/utils_lgpl \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
make[2]: Entering directory `/home/2360/src/utils_lgpl'
cd .. && /bin/sh ./config.status utils_lgpl/Makefile
config.status: creating utils_lgpl/Makefile
make[2]: Leaving directory `/home/2360/src/utils_lgpl'
make[2]: Entering directory `/home/2360/src/utils_lgpl'
(cd deltares_common && make top_distdir=../../delft3d-0.0 distdir=../../delft3d-0.0/utils_lgpl/deltares_common \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
make[3]: Entering directory `/home/2360/src/utils_lgpl/deltares_common'
cd ../.. && /bin/sh ./config.status utils_lgpl/deltares_common/Makefile
config.status: creating utils_lgpl/deltares_common/Makefile
make[3]: Leaving directory `/home/2360/src/utils_lgpl/deltares_common'
make[3]: Entering directory `/home/2360/src/utils_lgpl/deltares_common'
(cd packages && make top_distdir=../../../delft3d-0.0 distdir=../../../delft3d-0.0/utils_lgpl/deltares_common/packages \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
make[4]: Entering directory `/home/2360/src/utils_lgpl/deltares_common/packages'
cd ../../.. && /bin/sh ./config.status utils_lgpl/deltares_common/packages/Makefile
config.status: creating utils_lgpl/deltares_common/packages/Makefile
make[4]: Leaving directory `/home/2360/src/utils_lgpl/deltares_common/packages'
make[4]: Entering directory `/home/2360/src/utils_lgpl/deltares_common/packages'
(cd deltares_common_c && make top_distdir=../../../../delft3d-0.0 distdir=../../../../delft3d-0.0/utils_lgpl/deltares_common/packages/deltares_common_c \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
make[5]: Entering directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common_c'
make[5]: Entering directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common_c'
cd ../../../.. && /bin/sh ./config.status utils_lgpl/deltares_common/packages/deltares_common_c/Makefile
config.status: creating utils_lgpl/deltares_common/packages/deltares_common_c/Makefile
make[5]: Leaving directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common_c'
make[5]: Entering directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common_c'
(cd include && make top_distdir=../../../../../delft3d-0.0 distdir=../../../../../delft3d-0.0/utils_lgpl/deltares_common/packages/deltares_common_c/include \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
make[6]: Entering directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common_c/include'
cd ../../../../.. && /bin/sh ./config.status utils_lgpl/deltares_common/packages/deltares_common_c/include/Makefile
config.status: creating utils_lgpl/deltares_common/packages/deltares_common_c/include/Makefile
make[6]: Leaving directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common_c/include'
make[6]: Entering directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common_c/include'
make[6]: Leaving directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common_c/include'
(cd src && make top_distdir=../../../../../delft3d-0.0 distdir=../../../../../delft3d-0.0/utils_lgpl/deltares_common/packages/deltares_common_c/src \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
make[6]: Entering directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common_c/src'
cd ../../../../.. && /bin/sh ./config.status utils_lgpl/deltares_common/packages/deltares_common_c/src/Makefile depfiles
config.status: creating utils_lgpl/deltares_common/packages/deltares_common_c/src/Makefile
config.status: executing depfiles commands
make[6]: Leaving directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common_c/src'
make[6]: Entering directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common_c/src'
make[6]: Leaving directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common_c/src'
make[5]: Leaving directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common_c'
(cd deltares_common && make top_distdir=../../../../delft3d-0.0 distdir=../../../../delft3d-0.0/utils_lgpl/deltares_common/packages/deltares_common \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
make[5]: Entering directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common'
cd ../../../.. && /bin/sh ./config.status utils_lgpl/deltares_common/packages/deltares_common/Makefile
config.status: creating utils_lgpl/deltares_common/packages/deltares_common/Makefile
make[5]: Leaving directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common'
make[5]: Entering directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common'
(cd src && make top_distdir=../../../../../delft3d-0.0 distdir=../../../../../delft3d-0.0/utils_lgpl/deltares_common/packages/deltares_common/src \
am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
make[6]: Entering directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common/src'
cd ../../../../.. && /bin/sh ./config.status utils_lgpl/deltares_common/packages/deltares_common/src/Makefile
config.status: creating utils_lgpl/deltares_common/packages/deltares_common/src/Makefile
make[6]: Leaving directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common/src'
make[6]: Entering directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common/src'
../../../../../scripts_lgpl/linux/update_version.sh ./deltares_common_version.F90 . ../include/version_number.ini ../../../../..
Generating version number in the ./deltares_common_version.F90
../../../../../scripts_lgpl/linux/update_version.sh: line 37: /home/2360/src/third_party_open/version_number/packages/version_number/src/version_number.exe: No such file or directory
mv: cannot stat `./deltares_common_version.F90.temp': No such file or directory

Done, new version number is: 2629
cp: cannot stat `./deltares_common_version.F90': No such file or directory
Makefile:661: recipe for target `distdir' failed
make[6]: *** [distdir] Error 1
make[6]: Leaving directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common/src'
Makefile:523: recipe for target `distdir' failed
make[5]: *** [distdir] Error 1
make[5]: Leaving directory `/home/2360/src/utils_lgpl/deltares_common/packages/deltares_common'
Makefile:524: recipe for target `distdir' failed
make[4]: *** [distdir] Error 1
make[4]: Leaving directory `/home/2360/src/utils_lgpl/deltares_common/packages'
Makefile:523: recipe for target `distdir' failed
make[3]: *** [distdir] Error 1
make[3]: Leaving directory `/home/2360/src/utils_lgpl/deltares_common'
Makefile:530: recipe for target `distdir' failed
make[2]: *** [distdir] Error 1
make[2]: Leaving directory `/home/2360/src/utils_lgpl'
Makefile:590: recipe for target `distdir' failed
make[1]: *** [distdir] Error 1
make[1]: Leaving directory `/home/2360/src'
Makefile:683: recipe for target `dist' failed
make: *** [dist] Error 2


Regards,
Glejin.
Adri Mourits, modified 6 Years ago.

RE: make error ('CYGWIN') version#2360

Yoda Posts: 1224 Join Date: 1/3/11 Recent Posts
Hi Glejn,

The separate compilation/installation of "Deltaonline" was necessary in an old version (about a year ago). That is not needed anymore.

I'm a bit confused by your log file. The error is that "version_number.exe" can not be found. That program is supposed to be created (and installed) in directory "/home/2360/src/third_party_open/version_number/packages/version_number/src" being the first directory visited when doing a make. But nothing is done in there. It seems that you did several make trials in a row without cleaning in between. Can you start with an empty directory, download the latest tagged version (currently https://svn.oss.deltares.nl/repos/delft3d/tags/2640) and then try to build it (once) and have a look at the log, compared with (example) log files in subdirectory ".../src/logs"?

Regards,

Adri
GJ
glejin johnson, modified 6 Years ago.

RE: make error ('CYGWIN') version#2360

Youngling Posts: 11 Join Date: 6/9/13 Recent Posts
Hi ,


I downloaded the tag version 2640.then tried to build it with command ./autogen.sh and ./configure both run fine.Then run the command "make" , i got this following error

user@DB-1869 /home/2640/src
$ make
make all-recursive
make[1]: Entering directory `/home/2640/src'
Making all in third_party_open
make[2]: Entering directory `/home/2640/src/third_party_open'
Making all in version_number
make[3]: Entering directory `/home/2640/src/third_party_open/version_number'
Making all in packages
make[4]: Entering directory `/home/2640/src/third_party_open/version_number/packages'
Making all in version_number
make[5]: Entering directory `/home/2640/src/third_party_open/version_number/packages/version_number'
Making all in src
make[6]: Entering directory `/home/2640/src/third_party_open/version_number/packages/version_number/src'
gfortran -I../../../../../utils_lgpl/precision/packages/precision/src -DWITH_DELFTONLINE -g -O2 -ffree-line-length-none -cpp -c -o version_number.o version_number.f90
/bin/sh ../../../../../libtool --tag=FC --mode=link gfortran -I../../../../../utils_lgpl/precision/packages/precision/src -DWITH_DELFTONLINE -g -O2 -ffree-line-length-none -cpp -o version_number.exe version_number.o -lrt -lexpat -lstdc++
libtool: link: gfortran -I../../../../../utils_lgpl/precision/packages/precision/src -DWITH_DELFTONLINE -g -O2 -ffree-line-length-none -cpp -o .libs/version_number.exe version_number.o -lrt /usr/lib/libexpat.dll.a /usr/lib/gcc/i686-pc-cygwin/4.5.3/libstdc++.dll.a -L/usr/lib/gcc/i686-pc-cygwin/4.5.3
/usr/bin/install -c -d ../../../../../third_party_open/version_number/bin/linux
/usr/bin/install -c ../../../../../third_party_open/version_number/packages/version_number/src/version_number.exe ../../../../../third_party_open/version_number/bin/linux
make[6]: Leaving directory `/home/2640/src/third_party_open/version_number/packages/version_number/src'
make[6]: Entering directory `/home/2640/src/third_party_open/version_number/packages/version_number'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/home/2640/src/third_party_open/version_number/packages/version_number'
make[5]: Leaving directory `/home/2640/src/third_party_open/version_number/packages/version_number'
make[5]: Entering directory `/home/2640/src/third_party_open/version_number/packages'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/home/2640/src/third_party_open/version_number/packages'
make[4]: Leaving directory `/home/2640/src/third_party_open/version_number/packages'
make[4]: Entering directory `/home/2640/src/third_party_open/version_number'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/2640/src/third_party_open/version_number'
make[3]: Leaving directory `/home/2640/src/third_party_open/version_number'
make[3]: Entering directory `/home/2640/src/third_party_open'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/2640/src/third_party_open'
make[2]: Leaving directory `/home/2640/src/third_party_open'
Making all in utils_lgpl
make[2]: Entering directory `/home/2640/src/utils_lgpl'
Making all in deltares_common
make[3]: Entering directory `/home/2640/src/utils_lgpl/deltares_common'
Making all in packages
make[4]: Entering directory `/home/2640/src/utils_lgpl/deltares_common/packages'
Making all in deltares_common_c
make[5]: Entering directory `/home/2640/src/utils_lgpl/deltares_common/packages/deltares_common_c'
Making all in include
make[6]: Entering directory `/home/2640/src/utils_lgpl/deltares_common/packages/deltares_common_c/include'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/home/2640/src/utils_lgpl/deltares_common/packages/deltares_common_c/include'
Making all in src
make[6]: Entering directory `/home/2640/src/utils_lgpl/deltares_common/packages/deltares_common_c/src'
/bin/sh ../../../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../utils_lgpl/deltares_common/packages/deltares_common_c/include -D_GNU_SOURCE -DSTR_LEN_AT_END -DWITH_DELFTONLINE -g -O2 -MT cpuinfo.lo -MD -MP -MF .deps/cpuinfo.Tpo -c -o cpuinfo.lo cpuinfo.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../utils_lgpl/deltares_common/packages/deltares_common_c/include -D_GNU_SOURCE -DSTR_LEN_AT_END -DWITH_DELFTONLINE -g -O2 -MT cpuinfo.lo -MD -MP -MF .deps/cpuinfo.Tpo -c cpuinfo.cpp -DDLL_EXPORT -DPIC -o .libs/cpuinfo.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../utils_lgpl/deltares_common/packages/deltares_common_c/include -D_GNU_SOURCE -DSTR_LEN_AT_END -DWITH_DELFTONLINE -g -O2 -MT cpuinfo.lo -MD -MP -MF .deps/cpuinfo.Tpo -c cpuinfo.cpp -o cpuinfo.o >/dev/null 2>&1
mv -f .deps/cpuinfo.Tpo .deps/cpuinfo.Plo
/bin/sh ../../../../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../utils_lgpl/deltares_common/packages/deltares_common_c/include -D_GNU_SOURCE -DSTR_LEN_AT_END -DWITH_DELFTONLINE -g -O2 -MT cutil.lo -MD -MP -MF .deps/cutil.Tpo -c -o cutil.lo cutil.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../utils_lgpl/deltares_common/packages/deltares_common_c/include -D_GNU_SOURCE -DSTR_LEN_AT_END -DWITH_DELFTONLINE -g -O2 -MT cutil.lo -MD -MP -MF .deps/cutil.Tpo -c cutil.c -DDLL_EXPORT -DPIC -o .libs/cutil.o
In file included from cutil.c:38:0:
../../../../../utils_lgpl/deltares_common/packages/deltares_common_c/include/util_mf.h:89:25: error: 'FC_FUNC' declared as function returning a function
../../../../../utils_lgpl/deltares_common/packages/deltares_common_c/include/util_mf.h:89:1: warning: parameter names (without types) in function declaration
../../../../../utils_lgpl/deltares_common/packages/deltares_common_c/include/util_mf.h:90:25: error: 'FC_FUNC' declared as function returning a function
../../../../../utils_lgpl/deltares_common/packages/deltares_common_c/include/util_mf.h:90:1: warning: parameter names (without types) in function declaration
../../../../../utils_lgpl/deltares_common/packages/deltares_common_c/include/util_mf.h:91:25: error: 'FC_FUNC' declared as function returning a function
../../../../../utils_lgpl/deltares_common/packages/deltares_common_c/include/util_mf.h:91:1: warning: parameter names (without types) in function declaration
../../../../../utils_lgpl/deltares_common/packages/deltares_common_c/include/util_mf.h:92:25: error: 'FC_FUNC' declared as function returning a function
../../../../../utils_lgpl/deltares_common/packages/deltares_common_c/include/util_mf.h:92:1: warning: parameter names (without types) in function declaration
cutil.c:113:1: error: 'FC_FUNC' declared as function returning a function
cutil.c: In function 'FC_FUNC':
cutil.c:113:1: warning: type of 'cutil_cdate' defaults to 'int'
cutil.c:113:1: warning: type of 'CUTIL_CDATE' defaults to 'int'
cutil.c:124:13: error: 'date' undeclared (first use in this function)
cutil.c:124:13: note: each undeclared identifier is reported only once for each function it appears in
cutil.c: At top level:
cutil.c:129:1: error: 'FC_FUNC' declared as function returning a function
cutil.c:129:1: error: redefinition of 'FC_FUNC'
cutil.c:113:1: note: previous definition of 'FC_FUNC' was here
cutil.c: In function 'FC_FUNC':
cutil.c:129:1: warning: type of 'cutil_cgetcp' defaults to 'int'
cutil.c:129:1: warning: type of 'CUTIL_CGETCP' defaults to 'int'
cutil.c:138:6: error: 'cpu' undeclared (first use in this function)
cutil.c: At top level:
cutil.c:145:1: error: 'FC_FUNC' declared as function returning a function
cutil.c:145:1: error: redefinition of 'FC_FUNC'
cutil.c:113:1: note: previous definition of 'FC_FUNC' was here
cutil.c: In function 'FC_FUNC':
cutil.c:145:1: warning: type of 'cutil_cstop' defaults to 'int'
cutil.c:145:1: warning: type of 'CUTIL_CSTOP' defaults to 'int'
$ cutil.c:392:40: error: 'pathp' undeclared (first use in this function)
bash: syntax error near unexpected token `('

user@DB-1869 /home/2640/src

So again I went back to my previos version 2360 tried to install Delftonline for that I copy and past version_number.exe in to "/home/2360/src/third_party_open/version_number/packages/version_number/src" so make dist runs fine. After that I ran "JAVAC=javac ./configure" with out any error messages.
When i tried 'make' command got error as attached


Regards,

Glejin.
Adri Mourits, modified 6 Years ago.

RE: make error ('CYGWIN') version#2360

Yoda Posts: 1224 Join Date: 1/3/11 Recent Posts
Hi Glejin,

2640:
FC_FUNC is resolved by automake. How does your "autogen.log" look compared with ".../src/logs/autogen_gnu4.6.2.log", especially with respect to the version numbers of Automake, Autoconf and Libtool at the top?

2360:
A separate compilation/installation of DelftOnline is not needed anymore for this version.
Something goes wrong with obtaining the (svn) revision number. It seems that the source code is "exported" or copied locally instead of doing an svn-checkout (svn checkout https://svn.oss.deltares.nl/repos/delft3d/tags/research/2360).

Does this help you?

Regards,

Adri
GJ
glejin johnson, modified 6 Years ago.

RE: make error ('CYGWIN') version#2360

Youngling Posts: 11 Join Date: 6/9/13 Recent Posts
Hi Adri,

I downloaded the 2360 pack using SVN ( svn checkout https://svn.oss.deltares.nl/repos/delft3d/tags/research/2360 ). After removing the currently downloaded file. Then started to build it in the current order.

1) autoreconf -i

2) ./autogen.sh

3) ./configure

then

4) make
During the make command I got error in the WAQ modules as

/home/2360/src/engines_gpl/waq/packages/waq_io/src/proc_preprocess/dlwqp1.f:222: undefined reference to `_omp_set_num_threads_'
/home/2360/src/engines_gpl/waq/packages/waq_io/src/proc_preprocess/dlwqp1.f:223: undefined reference to `_omp_get_max_threads_'

Thanks,

Glejin
Adri Mourits, modified 6 Years ago.

RE: make error ('CYGWIN') version#2360 (Answer)

Yoda Posts: 1224 Join Date: 1/3/11 Recent Posts
Hi Glejin,

That looks much better. WAQ is compiled after FLOW, so you seem to have successfully built Delft3D-FLOW. In case you're not interested in WAQ, you can skip that by opening file "...\src\engines_gpl\Makefile.am" in a text editor and removing line " waq \ ".

Looking at your error:
The flag "-fopenmp" is missing in the link step. I don't have enough information to find out why.

Can you please do the following (see also the "src/README" file):
  • Download with SVN in an empty directory: https://svn.oss.deltares.nl/repos/delft3d/tags/2640
  • ./autogen.sh
  • CFLAGS='-O2 -fPIC -m64' CXXFLAGS='-O2 -fPIC -m64' FFLAGS='-O2 -fPIC -m64' FCFLAGS='-O2 -fPIC -m64' ./configure --prefix=`pwd`
  • make ds-install


Regards,

Adri
GJ
glejin johnson, modified 6 Years ago.

RE: make error ('CYGWIN') version#2360

Youngling Posts: 11 Join Date: 6/9/13 Recent Posts
Hi Adri,

Thank you very much for your help. As you said I successfully installed Delft3d version 2360 in my Cygwin windows 7 system without WAQ module and as in the README file. When I tried to start delft3d from Cygwin using "Delfr3d " and "delft3d-menu" But I got ERROR as " bash: delft3d-menu: command not found". Can u please tell me how can i start DElft 3d in cygwin.

Regards,
Glejin.
Adri Mourits, modified 6 Years ago.

RE: make error ('CYGWIN') version#2360

Yoda Posts: 1224 Join Date: 1/3/11 Recent Posts
Hi Glejin,

Good to hear!

Can you run the examples in the source code using the prepared scripts in there?

I don't have experience with running Delft3D in Cygwin. I expect it is more or less the same as on Linux. Does it help if you follow that instructions (installation guide and site notes)?

Regards,

Adri