Welcome, Guest
Username: Password: Remember me

TOPIC: Parallel Simulation

Parallel Simulation 12 years 1 month ago #5992

  • ails
  • ails's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 17
-lz is only required when linking with the MED library which allows the use of the salome platform.
I thought this flag had been removed from any config files.

However, I don't understand why it doesn't work with an user fortran file.

Fabien
The administrator has disabled public write access.

Parallel Simulation 12 years 1 month ago #5994

  • sumit
  • sumit's Avatar
Hello Sebastien,

I still have the same problem, "/usr/bin/ld: cannot find -lz". Could you kindly tell me how do I check if the required zlib libraries are available on the system.

In my previous post I attached my submission script and you can see that I am compiling things with right flag -lz -lm and so on but still have the same problem.

Most annoying is that it doesn't give me any problem while trying to recompile the whole system which I have done number of times. Only when I add a user subroutine it gives me the problem mentioned above.

All help is greatly appreciated.

Best regards,
Sumit
The administrator has disabled public write access.

Parallel Simulation 12 years 1 month ago #5995

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Based on what Fabien said, you can safely remove the flag "-lz" from your command in your config file.

You need to re-compile the system with compileTELEMAC.py -m "clean system" after you have done this.

This will make the zlib library issue disappear.

If you wish to download it, you can find it with apt-get search or yum search, etc, depending on your linux.

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

Parallel Simulation 12 years 1 month ago #5996

  • sumit
  • sumit's Avatar
Now when I loose the -lz and -lm flag I get the following error
/usr/bin/ld: cannot find -lxml2

Any hints, should I keep the -lm flag intact ?
The administrator has disabled public write access.

Parallel Simulation 12 years 1 month ago #5997

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
yes keep the "-lm"
The administrator has disabled public write access.

Parallel Simulation 12 years 1 month ago #5998

  • sumit
  • sumit's Avatar
I still have the same error,"/usr/bin/ld: cannot find -lxml2" It seems its just hell bent on not compiling :angry:

Any more hints, thanks for all the help.

Best regards,
Sumit
The administrator has disabled public write access.

Parallel Simulation 12 years 1 month ago #5999

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
what linux do you use ?
The administrator has disabled public write access.

Parallel Simulation 12 years 1 month ago #6000

  • sumit
  • sumit's Avatar
CentOS release 5.6
The administrator has disabled public write access.

Parallel Simulation 12 years 1 month ago #6001

  • ails
  • ails's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 17
Hi,

-lm stands for the libm library which is a C math library.
I don't understand how it is related to xml...

So, I suppose that there is an overflow of accumlated system errors.

Then, I suggest you to get a very clean configuration by :
- remonving all unecessary linking options (-lz -lm -lstdc++),
- deleting manually all the <hosttype> directories (in case of)
- and compiling once again.

Regards,

Fabien
The administrator has disabled public write access.

Parallel Simulation 12 years 1 month ago #6002

  • sumit
  • sumit's Avatar
Hi Fabien,

Could you kindly take a quick look at my script attached here.

File Attachment:

File Name: Clust_2012-10-21.txt
File Size: 2 KB

I have lost all the -lm and associated include directives but I still get the error,"/usr/bin/ld: cannot find -lxml2" when I try to run telemac3d with user subroutine.

Do you have any more suggestion for compilation, I don't know why it looks for -lxml2 ?

Strangely everything compiles successfully when I start from clean system but it won't run with the user subroutine.

Best regards,
Sumit
The administrator has disabled public write access.
Moderators: borisb

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