Welcome, Guest
Username: Password: Remember me

TOPIC: Compilation problem of v7p3 on Win7 PC

Compilation problem of v7p3 on Win7 PC 6 years 3 months ago #31180

  • JBS
  • JBS's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 78
  • Thank you received: 3
Hello,

I got a strange problem I have never experienced so far with compiling TELEMAC (v7p3 here) on Win7 PCs.
After launching 'compileTELEMAC.py' (for simple scalar mode here, see attachment), the first module SPLITSEL cannot be fully built and the compilation stops (see error in attachment).

Would you have an idea of what is causing the trouble?

Thank you very much.
JBS.
Attachments:
The administrator has disabled public write access.

Compilation problem of v7p3 on Win7 PC 6 years 3 months ago #31181

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hello JBS,

Since you are using mingw64 try the following command where applicable (instead of plain gfortran and gcc (which I guess are intended to be called within the MSYS environment):
cmd_obj_c:  x86_64-w64-mingw32-gcc.exe
cmd_obj:    x86_64-w64-mingw32-gfortran.exe
Costas
The administrator has disabled public write access.

Compilation problem of v7p3 on Win7 PC 6 years 3 months ago #31183

  • JBS
  • JBS's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 78
  • Thank you received: 3
Thank you Costas,

I tried it but gave the same result, unfortunately.

For information, the compilation using ifort (config file not attached here) gives the same problem.

JBS.
The administrator has disabled public write access.

Compilation problem of v7p3 on Win7 PC 6 years 3 months ago #31184

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Try the whole command line from my current cfg:
cmd_obj:    x86_64-w64-mingw32-gfortran -cpp -march=native -O3 -c -fno-range-check -ffixed-line-length-132 -finit-real=nan -frecord-marker=4 -DHAVE_MPI -DHAVE_MUMPS <mods> <incs> <f95name>
cmd_exe:    x86_64-w64-mingw32-gfortran -static -march=native -O3 -fno-range-check -ffixed-line-length-132 -finit-real=nan -frecord-marker=4 -v -o <exename> <objs> -Xlinker --start-group <libs>
I am using v7p3r1 with gcc-8.1 and everything compile and work fine.
**EDIT: Just make sure to delete the parts referring to MPI, -DHAVE_MPI and -DHAVE_MUMPS.
Costas
The administrator has disabled public write access.

Compilation problem of v7p3 on Win7 PC 6 years 3 months ago #31186

  • JBS
  • JBS's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 78
  • Thank you received: 3
Ok, I found out the origin of the problem.

On the PC I am working on, there was a conflict on gcc: two versions of it are actually installed ('mingw64' and another one 'strawberry'). Then the system was calling gfortran from mingw64 and gcc from strawberry. Hence the conflict.

By forcing the system to use only wingw64 executables, the compilation runs fine.

Thank you Costas for the focus on gcc and gfortran.
The administrator has disabled public write access.

Compilation problem of v8p1r0 on Windows 4 years 10 months ago #35252

  • ali.temel
  • ali.temel's Avatar
Hi i cant compile telemac v8p1r0.

Could you please help me?



+> Compile / Assemble / Link
gfortran: error: unrecognized command line option '-03' ] 0% | ---s


Hummm ... I could not complete my work.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compileTELEMAC::createObjFiles:
+> failed: gfortran -fopenmp -c -03 -ffixed-line-length-132 -DHAVE_MPI -fconvert=big-endian -frecord-marker=4 -I C:\opentelemac-mascaret\v8p1r0\builds\wing64mpi\obj\utils\special -I C:\opentelemac-mascaret\v8p1r0\builds\wing64mpi\obj\utils\damocles -I C:\opentelemac-mascaret\v8p1r0\builds\wing64mpi\obj\utils\parallel -I C:\opentelemac-mascaret\v8p1r0\builds\wing64mpi\obj\utils\hermes -I C:\opentelemac-mascaret\v8p1r0\builds\wing64mpi\obj\utils\ad -I C:\opentelemac-mascaret\v8p1r0\builds\wing64mpi\obj\utils\bief -I C:\opentelemac-mascaret\v8p1r0\builds\wing64mpi\obj\tomawac C:\opentelemac-mascaret\v8p1r0\sources\utils\special\declarations_special.F
... The following command failed for the reason above (or below)
gfortran -fopenmp -c -03 -ffixed-line-length-132 -DHAVE_MPI -fconvert=big-endian -frecord-marker=4 -I C:\opentelemac-mascaret\v8p1r0\builds\wing64mpi\obj\utils\special -I C:\opentelemac-mascaret\v8p1r0\builds\wing64mpi\obj\utils\damocles -I C:\opentelemac-mascaret\v8p1r0\builds\wing64mpi\obj\utils\parallel -I C:\opentelemac-mascaret\v8p1r0\builds\wing64mpi\obj\utils\hermes -I C:\opentelemac-mascaret\v8p1r0\builds\wing64mpi\obj\utils\ad -I C:\opentelemac-mascaret\v8p1r0\builds\wing64mpi\obj\utils\bief -I C:\opentelemac-mascaret\v8p1r0\builds\wing64mpi\obj\tomawac C:\opentelemac-mascaret\v8p1r0\sources\utils\special\declarations_special.F:

C:\opentelemac-mascaret\v8p1r0>
The administrator has disabled public write access.

Compilation problem of v8p1r0 on Windows 4 years 10 months ago #35254

  • amanj2013
  • amanj2013's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 211
  • Thank you received: 24
Hi,

Can you post your config file to have a look.

OR:: you can compare your config with the following line I copied from my successful config and see try in Parallel model:

# ____/ Windows gfortran parallel /___________________________________/
[wing64mpi]
#
#options: parallel mpi
#
mpi_cmdexec: C:\opentelemac-mascaret\MPICH2\bin\mpiexec.exe -wdir <wdir> -localonly -n <ncsize> <exename>
mpi_hosts:
#
cmd_obj: gfortran -c -O3 -ffixed-line-length-132 -fconvert=big-endian -frecord-marker=4 -DHAVE_MPI <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: gfortran -fconvert=big-endian -frecord-marker=4 -v -o <exename> <objs> -Xlinker --start-group <libs>
#
mods_all: -I <config>
#
incs_all: -I C:\opentelemac-mascaret\mpich2\include
#incs_special: -I C:\opentelemac-mascaret\mpich2\include
#libs_partel: C:\opentelemac-mascaret\metis\lib\libmetis.a
libs_all: C:\opentelemac-mascaret\mpich2\lib\libfmpich2g.a C:\opentelemac-mascaret\metis\lib\libmetis.a
#
sfx_obj: .o
#

AMANJ
The administrator has disabled public write access.

Compilation problem of v8p1r0 on Windows 4 years 10 months ago #35262

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hello,
gfortran: error: unrecognized command line option '-03' ] 0% | ---s

It may not be obvious but in the '-03' optimization flag above you should replace '0' (number zero) with 'O' (letter O), i.e. '-O3'.
If that does not solve your problem, post your cfg file.

Regards,
Costas
The administrator has disabled public write access.

Compilation problem of v7p3 on Win7 PC 4 years 10 months ago #35263

  • ali.temel
  • ali.temel's Avatar
Dear Amanj and Cyamin,


Thank you so much. Please find my systel files attached.

Ali

File Attachment:

File Name: systel_v8p1r0_parallel.cfg
File Size: 1 KB


File Attachment:

File Name: systel_v8p1r0.cfg
File Size: 1 KB
The administrator has disabled public write access.
Moderators: borisb

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