Welcome, Guest
Username: Password: Remember me

TOPIC: Compilation failure for v8p1r2 and v8p2r0 in windows

Compilation failure for v8p1r2 and v8p2r0 in windows 3 years 11 months ago #37413

  • minovsor
  • minovsor's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hello,
First I've downloaded the v8p2r0 version and setup the .bat and .cfg files.
I started the compilation using the compile_telemac.py with python3.
It looks good until it reached the nestor_interfaces.. (see attachment)

As I've seen both python27 and python3 inside the scripts/folder for the previous v8p1r2 version, I thought this could be a python issue.

So I tried with v8p1r2. I readjusted the .bat and .cfg files and tested both the compileTELEMAC.py (python27) and compile_telemac.py (python3). Both scripts beings running fine but stop at different moments of compilation. Py27 stops somewhere near tomawac, while Py3 still fails at nestor.

To make it simples, I'm using gfortran (without parallelization) such as in the templates as below:
cmd_obj_c: gcc -c <srcName> -o <objName>
cmd_obj: gfortran -c -O3 -fopenmp -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: gfortran -fopenmp -fconvert=big-endian -frecord-marker=4 -v -lm -o <exename> <objs> <libs>

Any clues?
Attachments:
The administrator has disabled public write access.

Compilation failure for v8p1r2 and v8p2r0 in windows 3 years 10 months ago #37587

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
You're missing the -cpp option in the cmd_obj...
Christophe
The administrator has disabled public write access.

Compilation failure for v8p1r2 and v8p2r0 in windows 3 years 10 months ago #37600

  • minovsor
  • minovsor's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hello, thanks.

I also came to find the missing -cpp but the compilation still stops at m_interfaces_nestor.f.

Setup for the env variables in the .bat file (SYSTELCFG, USETELCFG) looks fine.

I'm attaching the .cfg file, if you (or anyone) can help...

I already searched for gcc compiler informations, read the whole readme.cfg and other templates, tried mingw-fortran and gfortran, but.. nope. I'm stuck.
Attachments:
The administrator has disabled public write access.

Compilation failure for v8p1r2 and v8p2r0 in windows 3 years 10 months ago #37603

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
After adding -cpp, did you run the compilation with --clean option?
Regards
Christophe
The administrator has disabled public write access.

Compilation failure for v8p1r2 and v8p2r0 in windows 3 years 10 months ago #37608

  • minovsor
  • minovsor's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
I tried with 'python compile_telemac.py --clean'.
Nothing happened. I'm using version v8p2r0.

I looked the fortran sources based on the error message.
C:\opentelemac-mascaret\v8p2r0\sources\nestor\m_interfaces_nestor.f:31:2:
Fatal Error: backfill_to_level.f: No such file or directory

It seems to me, the compilation is failing to find 'backfill_to_level.f' (which is at /sources/nestor/)
This seems strange because the process compiled m_nestor.f and m_typedefs_interface.f just before and are located in the same folder.

Also the python error msg points towards:
File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\compilation\compil_tools.py", line 1283, in compile_cmdf
and looking in the code to -> def create_lib_files

I looked the compile_telemac.py and found the --verbose option where I can see the compilation calls before the error occurs.

I compared the files and noticed they did not exist in version v7p2r2 and have some changes since v8p0r0.

I have a good knowledge of fortran and python but I can't dig in too deep in these details right now. I'm fresh to telemac, but maybe it's something with recent updates in v8p2.

Would you recommend me leaving v8p2r0 (for now) and trying all the steps with a previous version? If yes, which one (v7pxrx,v8pxrx)?

Thank you for your time and help
The administrator has disabled public write access.

Compilation failure for v8p1r2 and v8p2r0 in windows 3 years 10 months ago #37610

  • Arvid Dujardin
  • Arvid Dujardin's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 3
I found in another answer (#35829) the systel file should also include an (empty) "options: " line.
That did the trick for my problem with compile_cmdf to install v8p2r0 on Windows.

File Attachment:

File Name: systel.cfg
File Size: 1 KB
The administrator has disabled public write access.

Compilation failure for v8p1r2 and v8p2r0 in windows 2 years 10 months ago #39582

  • pardhu40
  • pardhu40's Avatar
Hi,

I encountered the same problem. All you need to do is specify the path manually inside m_interfaces_nestor.f

For example:

#include "backfill_to_level.f" by
#include "<path>\backfill_to_level.f"

It will do the work

Like this you need to replace all instances of #include in this file.

Regards
Pardhu
The administrator has disabled public write access.
Moderators: borisb

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