Welcome, Guest
Username: Password: Remember me

TOPIC: INSTALL telemac on winxp 32 with g95

INSTALL telemac on winxp 32 with g95 12 years 1 month ago #5695

  • 82457114zzy
  • 82457114zzy's Avatar
I use the makeall90 to install the telemac v6.2 system with perl,But there is an error:
two different operation options specified
NMAKE :FATA ERROR U1077 'ar' returned code '0x1',
can somebody help me?Thank you
The administrator has disabled public write access.

INSTALL telemac on winxp 32 with g95 12 years 1 month ago #5803

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

For new users, we recommend to use python instead of perl.
Remove perl, install python 2.7 and try to compile telemac (compileTELEMAC.py in the pytel directory)

Regards
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: 82457114zzy

INSTALL telemac on winxp 32 with g95 12 years 1 month ago #5842

  • 82457114zzy
  • 82457114zzy's Avatar
Thanks for your help.I have installed python 2.7 to compile the telemac system.Luckily,the compile of telemac2d and sisyphe is well done.However,there are some errors when compiling the telemac3d.
The errors are as follows:
d:\opentelemac\v6p2\telemac3d\tel3d_v6p2\wing95s\telemac2dv6p2.lib(wrihyd.o):wri
hyd.f:(.text+0x16a1): undefined reference to `_jultim_'
d:\opentelemac\v6p2\telemac3d\tel3d_v6p2\wing95s\telemac2dv6p2.lib(wrihyd.o):wri
hyd.f:(.text+0x16fb): undefined reference to `_gregtim_'
d:\opentelemac\v6p2\telemac3d\tel3d_v6p2\wing95s\telemac2dv6p2.lib(wrihyd.o):wri
hyd.f:(.text+0x182b): undefined reference to `_gregtim_'
d:\opentelemac\v6p2\telemac3d\tel3d_v6p2\wing95s\telemac2dv6p2.lib(wrihyd.o):wri
hyd.f:(.text+0x1aeb): undefined reference to `_gregtim_'
d:\opentelemac\v6p2\telemac3d\tel3d_v6p2\wing95s\telemac2dv6p2.lib(wrihyd.o):wri
hyd.f:(.text+0x1c1b): undefined reference to `_gregtim_'
... The following command failed for the reason abovee errors in compiling the telemac3d

I have compiled it three times.The errors are the same.So can you help me.Thank you very much.
The administrator has disabled public write access.

INSTALL telemac on winxp 32 with g95 12 years 1 month ago #5844

  • jmhervouet
  • jmhervouet's Avatar
Hello,

These subroutines jultim and gregtim are indeed in the libraries, but we had this problem already with some compilers, they do not look backwards in the list of libraries. There should be a compiler directive to ask the compiler to loop over the libraries (maybe another user will now it in your case).

If you cannot solve the problem a simple solution is to remove the calls to JULTIM and GREGTIM in subroutine wrihyd.f which is in library telemac2d (folder sources), or you erase all the code of this routine from line 121 to line 389 and replace it with :

STOP 'empty wrihyd'

. wrihyd is used only in case of coupling with Delwaq

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.

INSTALL telemac on winxp 32 with g95 12 years 1 month ago #5848

  • ails
  • ails's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 17
Hello,

Can you verify if the Xlinker --start-group compiler directive is used in the G95 section of your systel.cfg file?
As stated by Jean-Michel, it will force the compiler to loop over every libraries for finding all dependencies.

Using g95 or gfortran on Windows, you should have this sequence :
cmd_exe: g95 -fendian=big -std=f95 -v -lm -o <exename> <objs> -Xlinker --start-group <libs> --end-group

Sometimes, Xlinker is not available and may be replaced by -Wl, as follows :
cmd_exe: gfortran -fconvert=big-endian -frecord-marker=4 -lpthread -lm -o <exename> <objs> -Wl,--start-group <libs> -Wl,--end-group


Best regards,

Fabien
The administrator has disabled public write access.

INSTALL telemac on winxp 32 with g95 12 years 1 month ago #5853

  • 82457114zzy
  • 82457114zzy's Avatar
Thanks Jmhervouet,I have followed yor adivce to replace the fortran program and the telemac3d has be compiled well. Thank you very much
The administrator has disabled public write access.

INSTALL telemac on winxp 32 with g95 12 years 1 month ago #5855

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hello,

For you or other users who will read this topic, be sure that you do not want to chain Telemac (2D or 3D) with Delwaq (for water quality modelling) later if you use Jean-Michel's solution. Otherwise, you will have to fill in the "Delwaq steering file for Delwaq" by yourself, in particular for all information dealing with "time". I would advise you to comment only the calling to GREGTIM and JULTIM as a first solution just to compile Telemac-3D.
With Jean-Michel's solution, the calculation would stop if you activate the coupling with Delwaq (key word COUPLING WITH).

Nevertheless, I think that Fabien's answer should be investigated (I thought that this solution has been generalised for many compilers configuration).

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.