Welcome, Guest
Username: Password: Remember me

TOPIC: cannot compile telemac 8.1.1 on macOS

cannot compile telemac 8.1.1 on macOS 4 years 5 months ago #36004

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
Hi all,

I have troubles compiling Telemac 8.1.1 on macOS. I have tried with gcc9, gcc10, with or without opnempi. See the different source files and my configuration file in attachment. I also include the terminal output of each compilation attempt, so you can see the error.

For now, I worked around by compiling only telemac2d, sisyphe, partel and gretel. But for the near future, I'd like to be able to compile the full system.

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

cannot compile telemac 8.1.1 on macOS 4 years 5 months ago #36005

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
Here are the source files (I had to change the file extensions).
The administrator has disabled public write access.

cannot compile telemac 8.1.1 on macOS 4 years 5 months ago #36007

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

In all your logs there is :
OSError: [Errno 28] No space left on device

I think this is the issue.
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.

cannot compile telemac 8.1.1 on macOS 4 years 5 months ago #36010

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
Strange, this "no space left on device" error was only supposed to be with gcc9 compilations. Maybe it's because I tried to compile the 4 configurations at the same time to generate the logs. My apologies.

I started again, this time each configuration separately. It seems that the "no space left on device" issue is due to a problem with the multiprocessing module in Python 3.8. At least with MacPorts, the popular package installer that I'm using on macOS:

trac.macports.org/ticket/60274

I worked it around by downgrading Python to 3.7. It solved the problem.

However, I still have an error with gcc10, this time related to Fortran. See the log in attachment. Any clue?
Attachments:
The administrator has disabled public write access.

cannot compile telemac 8.1.1 on macOS 4 years 5 months ago #36013

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
We have never compiled the code with gcc 10.
Looks like they change how they handle Z format.
Could you try replacing in "utils/partel/mod_hash_table.f90" around line 229:
       INTEGER(KIND=K8)::KMUL
...
#else
!
        KMUL=Z'CC9E2D51'
by
       INTEGER(KIND=K8), PARAMETER::KMUL=Z'CC9E2D51'
...
#else
!

That might do the trick.
It was previously done like that but this is not accepted by some compiler.
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.

cannot compile telemac 8.1.1 on macOS 4 years 5 months ago #36023

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
Thank you for your help Yugi, but that did not solve it. See log in attachment.

Anyway, if you say that Telemac has not been tested for gcc 10, and since I could compile and run with gcc 9, I think I'm good here :-)

However, I was wondering if there was a list of compilers for which you have tested each release?
Attachments:
The administrator has disabled public write access.

cannot compile telemac 8.1.1 on macOS 4 years 5 months ago #36025

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Too bad for gcc 10 as long as it works with gcc 9.

The list is not written anywhere.
We should add that somewhere.

I'll make a ticket for that.
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.

cannot compile telemac 8.1.1 on macOS 3 years 8 months ago #37964

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
For information to everyone, the same issue with GCC 10 still occurs with Telemac 8.2.0
The administrator has disabled public write access.

cannot compile telemac 8.1.1 on macOS 3 years 8 months ago #37965

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

On Windows, I had to add the option -fallow-invalid-boz to compile

Hope this helps
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: o.gourgue

cannot compile telemac 8.1.1 on macOS 3 years 8 months ago #37966

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
Thank you Christophe!

It worked and allowed me to move to next compilation error :-) One I have with both GCC 9 and 10. I'll open another post for that one a little bit later today.
The administrator has disabled public write access.
Moderators: borisb

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