Welcome, Guest
Username: Password: Remember me

TOPIC: Compilation Error

Compilation Error 6 years 9 months ago #28695

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
Of course.
Attachments:
The administrator has disabled public write access.

Compilation Error 6 years 9 months ago #28697

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
The management of Mascaret compilation is a little bit particular and I was forced to slightly adapt the Telemac compilation script...
And your problem looks like those slight changes didn't works on your computer...
To quickly describe the reason of these adaptation:
During the compilation, you compile the sources and after you create the lib file from the list of compile sources.
For mascaret, due to the use of FOX library, the number of sources become very important and the command to generate the lib file was too long for windows :unsure:
The only solution I found to by-pass this problem was to remove the list of all file by a shortcut (*.o).
This worked well on my computer on W7-64...

In your case
If you don't need Mascaret module, you could remove it from the list by just specifying -mascaret in the dedicated line
On windows, Mascaret could be installed with a dedicated interface (FUDAA-MASCARET) so it's not necessary useful to compile it. It's also possible to use Mascaret with a dedicated QGIS plugin...

If you really want to compile mascaret, you could try to investigate the problem maybe by removing the specific adaptation for Mascaret in compileTelemac.py (search for 'HOMERE_MASCARET').
Maybe the maximum length of a line changed with W10...

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

Compilation Error 6 years 9 months ago #28698

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
Thanks for this information.
Could you maybe explain your by-pass a little bit more in detail please So maybe it would work on Win10 as well.
The administrator has disabled public write access.

Compilation Error 6 years 9 months ago #28699

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
If you look into compiletelemac.py you will see the step which is usually use to generate the lib file...
I introduce a condition to replace the list of .o file by just *.o in case of Mascaret library generation

Hope this helps
Christophe
The administrator has disabled public write access.

Compilation Error 6 years 9 months ago #28702

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
Since I'm not that used to python I can understand what you do but it will be quite hard to try to do the same in my case.
The administrator has disabled public write access.

Compilation Error 6 years 9 months ago #28703

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
The first trial you have to do is to remove my modification and let the default procedure also for Mascaret.
When you will run the compilation if this fail for the same reason than me you should obtain a message about a command line too long...
But maybe this could work...
Regards
Christophe
The administrator has disabled public write access.

Compilation Error 6 years 9 months ago #28705

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
I tried what you proposed but it ends up with the same failure.
The administrator has disabled public write access.

Compilation Error 6 years 9 months ago #28706

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
It's not possible to obtain the same failure.
If you changed properly compiletelemac.py the cmd line which generate the creation of the lib file should now give the full list of .o file...
Take care that the same line exist also to generate the exe file so you could change it in the same way

Regards
Christophe
The administrator has disabled public write access.

Compilation Error 6 years 9 months ago #28696

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Replace the fortran and gcc commands with x86_64-w64-mingw32-gfortran and x86_64-w64-mingw32-gcc respectively and try again.
Costas
The administrator has disabled public write access.

Compilation Error 6 years 9 months ago #28700

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
Tried it but it ends with the some failure. Do you maybe have any other suggestions?
The administrator has disabled public write access.
Moderators: borisb

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