Welcome, Guest
Username: Password: Remember me

TOPIC: compilation of version v7p1r0

compilation of version v7p1r0 9 years 3 months ago #19269

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello,

Thank you for the output -- It seems compileTELEMAC was able to compile both tomawac and splitsel before failing on partel -- this is good news in some way.

Looking around, I found the following two reference to problem similar to your -- Mac related.

The first one:
https://github.com/tpoechtrager/osxcross/issues/11
...says that you must use the correct ar (archiver), e.g.:
make CXX=o64-clang++ AR=x86_64-apple-darwin1X-ar
otherwises it uses the system ar and won't work.

The second one concludes that:
https://github.com/rust-lang/rust/issues/18650
... this turns out to be a completely environmental issue. There were a bunch of duplicate files of system programs (like ls, mv, etc...). Removing them got rust to work again!

Can you investigate that angle ? ... the fact that it works for v7p0 remains a mystery ...

Sébastien.
The administrator has disabled public write access.

compilation of version v7p1r0 9 years 3 months ago #19286

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
Regarding your second suggestion, I had indeed several versions of gcc installed on my computer using MacPorts (a package manager for Mac OS). I cleaned everything and just kept version 4.9. Unfortunately, that did not solve the problem.

Regarding the first one, I don't know exactly how to apply it to the compiling of TELEMAC. What I did is to replace "ar" by "x86_64-apple-darwin15-gcc-ar-mp-4.9" (what seems to me to be the "ar" of the gcc I am using) in the configuration file. But it went actually worse, because it cannot find a file called "liblto_plugin.so". Looking around I found out that it seems to be a problem that is not solved yet by MacPorts developers.

I am not sure that the problem comes from there. I have to admit to be a bit lost.

What I do as a workaround for now is to limit the compilation to telemac2D and tomawac (the only modules I am currently using) in serial. It works. And as this installation on my laptop is only for testing purposes, it should be alright (even though testing in parallel mode is sometimes useful too).

Nevertheless, if you have other suggestions, I would be very happy to test them to try to really solve this problem.
The administrator has disabled public write access.

compilation of version v7p1r0 9 years 2 months ago #19347

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
Does anyone have another suggestion to help me to solve that problem?
The administrator has disabled public write access.

compilation of version v7p1r0 9 years 2 months ago #19349

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

Do you have the same error when you try to compile your parallel configuration ?

And try to run the following command
nm /Users/ogourgue/Applications/telemac/v7p1r0/builds/serial/lib/utils/parallel/homere_partel.a
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.

compilation of version v7p1r0 9 years 2 months ago #19354

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
Yes, I get the same error compiling the parallel configuration.

I get the following output when running the suggested command:

warning: nm: no name list
warning: nm: no name list
The administrator has disabled public write access.

readgeo3 in v7p1r0 9 years 2 months ago #19425

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

This means that the compilation did not properly as the libraries are empty which is weird.
But this only seems to be a problem for partel...

Can your try the configuration below that compile the library dynamicaly:
[general]
version:    v7p0
language:   2
modules:    update system
options:
#
sfx_zip:    .zip
sfx_lib:    .so
sfx_obj:    .o
sfx_mod:    .mod
sfx_exe:
#
val_root:   <root>/examples
val_rank:   all
#

# __                                   _____________________________________
# ____/ Calibre7 GFORTRAN 4.4.5 Scalar /_______________________________/
[salome]
#
cmd_obj:    gfortran -c -fPIC -O3 -fconvert=big-endian -frecord-marker=4  -DHAVE_VTK <mods> <incs> <f95name>
cmd_lib:    gfortran -shared -fPIC <objs> -o <libname>
cmd_exe:    gfortran -fconvert=big-endian -frecord-marker=4 -o <exename> <objs> <libs>
#
mods_all:   -I <config>

Hope it helps
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.

compilation of version v7p1r0 9 years 2 months ago #19430

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
That did not solve the problem. The output I got is attached to this post.
Attachments:
The administrator has disabled public write access.

compilation of version v7p1r0 9 years 2 months ago #19439

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
There seems to be something wrong when the special library is generated.
And without direct acces to the computer i am afraid i cannot help you more.
At leas you got telemac working even if i still dont get how that is possible.

Good luck
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.

compilation of version v7p1r0 8 years 11 months ago #21102

  • ZHANGqinghui
  • ZHANGqinghui's Avatar
Hi,

I got the same error when I compile Telemac on Mac OS system with the new version v7p1r0. For the version v6p3r2, it works fine.

Qinghui
The administrator has disabled public write access.

compilation of version v7p1r0 8 years 11 months ago #21103

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Maybe you can try compiling in static instead of dynamic ?
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.
Moderators: borisb

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