Welcome, Guest
Username: Password: Remember me

TOPIC: compiling error Telemac 8.2.0

compiling error Telemac 8.2.0 3 years 8 months ago #37967

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
I have tried with GCC 9 and GCC 10, Python 3.7, 3.8 and 3.9. I always have the same error:

Traceback (most recent call last):                                             
  File "/Users/ogourgue/Applications/Telemac/v8p2r0/scripts/python3/compile_telemac.py", line 143, in <module>
    main()
  File "/Users/ogourgue/Applications/Telemac/v8p2r0/scripts/python3/compile_telemac.py", line 129, in main
    compile_cmdf(options.ncsize, modules, options.verbose)
  File "/Users/ogourgue/Applications/Telemac/v8p2r0/scripts/python3/compilation/compil_tools.py", line 1303, in compile_cmdf
    f = create_lib_files(lib, mod, item, prog,
  File "/Users/ogourgue/Applications/Telemac/v8p2r0/scripts/python3/compilation/compil_tools.py", line 241, in create_lib_files
    if 'dyn' in cfg['options']:
KeyError: 'options'

See source, configuration and log files in attachment.

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

compiling error Telemac 8.2.0 3 years 8 months ago #37968

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
FYI, I got the exact same error when compiling on our cluster. I guess it comes from the configuration file (which was working for version 8.1.1).
The administrator has disabled public write access.

compiling error Telemac 8.2.0 3 years 8 months ago #37969

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
I solved the issue by replacing the file scripts/python3/compilation/compil_tools.py by its latest version on the trunk (revision 16524).

Can someone confirm that this is a bug that will be solved in a later release?
The administrator has disabled public write access.

compiling error Telemac 8.2.0 3 years 8 months ago #37970

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Yes this is solved in the trunk.
To remove the issue (without updating compile_tools) you just need to add:
options:
In your configuration file.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: o.gourgue

compiling error Telemac 8.2.0 3 years 8 months ago #37974

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
Thank you Yugi, it works indeed.

So, I can now compile and run Telemac 8.2.0 on our cluster, which was the most important.

I still have an error at compilation on my own computer though. It is similar to something I faced with Telemac 8.1.1 (www.opentelemac.org/index.php/kunena/12-...8-1-1-on-macos#36010). But this time, downgrading Python to version 3.7 did not help.

I think it is linked to macOS not liking the way Python does multiprocessing (bugs.python.org/issue33725). Is there a way to compile Telemac without multiprocessing?
The administrator has disabled public write access.

compiling error Telemac 8.2.0 3 years 8 months ago #37978

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
You can try adding option -j 1 to compile_telemac.py to force it to run in sequential.
But I am not sure that setting -j to 1 stops it from using multhiprocessing I think it still does it but with only one thread.
So it still depends on Python multhithreading.
It worth a try anyway.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

compiling error Telemac 8.2.0 3 years 8 months ago #37991

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
Unfortunately, I didn't work. Same error. I'll give a further look and post the solution if I find one.
The administrator has disabled public write access.
Moderators: borisb

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