Welcome, Guest
Username: Password: Remember me

TOPIC: Compiling API error on Ubuntu 18.04

Compiling API error on Ubuntu 18.04 5 years 5 months ago #33767

  • Htun Pyae Sone
  • Htun Pyae Sone's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 38
  • Thank you received: 2
Dear all,

I am a new user in Linux, and I am trying to compile api as I would like to use TelApy. I have now successfully compile in parallel and test it. However I have this error which is attached in below. I do compile metis in dynamic mode. Do I need to compile any other in dynamic modes? Could anyone help what could possible be the error? Thank you very much for your time.

Best Regards,
Htun

File Attachment:

File Name: api.txt
File Size: 9 KB


File Attachment:

File Name: systel.api.cfg
File Size: 2 KB
The administrator has disabled public write access.

Compiling API error on Ubuntu 18.04 5 years 4 months ago #33852

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

There should be an error message that was not in the file you attached.
But seeing your configuration file it could be that you are missing -cpp in the cmd_obj_c tag.
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: Htun Pyae Sone

Compiling API error on Ubuntu 18.04 5 years 4 months ago #33858

  • Htun Pyae Sone
  • Htun Pyae Sone's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 38
  • Thank you received: 2
Dear Yugi,

Thank you very much for your help. It is my mistake that forget -fPIC in my cmd_obj_c: tag. Now, I have successfully compiled. However, I have similar error in #33390 and I tried the solutions you mentioned there. But still, I could not fix it yet. First, in my wrap_api/lib, there is "_api.cpython-36m-x86_64-linux-gnu.so" file instead of "_api.so". Thus I renamed that into "_api.so" and I followed your instructions. I attached some of the returns file. Would you please kindly take a look if it is not a big burden for you.
Thank you very much for your time and help.
Best Regards,
Htun

File Attachment:

File Name: pysource.txt
File Size: 2 KB


File Attachment:

File Name: systel.api_2019-06-24.cfg
File Size: 2 KB


File Attachment:

File Name: compile_api.txt
File Size: 14 KB


File Attachment:

File Name: lddon_api.so.txt
File Size: 16 KB


File Attachment:

File Name: lddon_libpartel.so.txt
File Size: 2 KB
The administrator has disabled public write access.

Compiling API error on Ubuntu 18.04 5 years 4 months ago #33859

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

So first i would replace:
libs_all:  ~/telemac-mascaret/v8p0r2/optionals/metis-5.1.0/build/lib/libmetis.so
by
libs_all:  -L~/telemac-mascaret/v8p0r2/optionals/metis-5.1.0/build/lib -lmetis

You should not rename the api.cpython-36m-x86_64-linux-gnu.so
Then you need to check the f2py you are using is using the same compiler as your own:
f2py -c --help-fcompiler
And also that the python used by telemac is the same as the one used that contains numpy.

Tell me how that goes.
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: Htun Pyae Sone

Compiling API error on Ubuntu 18.04 5 years 4 months ago #33861

  • Htun Pyae Sone
  • Htun Pyae Sone's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 38
  • Thank you received: 2
Dear Yugi,

Sorry for late reply. I will try now and inform you back. Thank you very much.

Best Regards,
Htun
The administrator has disabled public write access.

Compiling API error on Ubuntu 18.04 5 years 4 months ago #33862

  • Htun Pyae Sone
  • Htun Pyae Sone's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 38
  • Thank you received: 2
Dear Yugi,

Thank you very much for your help.
1. As you mentioned, I tried to compile with
$$ libs_all: -L ~/telemac-mascaret/v8p0r2/optionals/metis-5.1.0/build/lib -lmetis $$
it give me the following error.

File Attachment:

File Name: Second_compilation.txt
File Size: 15 KB

2. As for the f2py, it is using the gfortran compiler which is the same as my compiler since mpf-90 is wrapping up using gfortran as far as I know. Am I correct?The output file is as follow.

File Attachment:

File Name: f2py_compiler.txt
File Size: 3 KB

3. As for the python, I am installing the module in the wrong one as you mentioned. So I installed the module and I recompile using my old "config" file. Now, there is "_api.so" file and there is no more error while testing the example file. However, the ldd on "_api.so" give the same output as previous.

Thank you very much for your time and help.
Best Regards,
Htun
The administrator has disabled public write access.

Compiling API error on Ubuntu 18.04 5 years 4 months ago #33863

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
1. Remove the space between -L and ~/telemac

2. That seems good

3. That should be solved by 1.
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: Htun Pyae Sone

Compiling API error on Ubuntu 18.04 5 years 4 months ago #33866

  • Htun Pyae Sone
  • Htun Pyae Sone's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 38
  • Thank you received: 2
Dear Yugi,

Thank you so much for your help. It takes me a little longer to reply as I was testing with different config file. However, whenever I tested the ldd command on _api.so, the results are shown as follows:
linux-vdso.so.1 (0x00007ffc53f04000)
	libapi.so => not found
	libtelemac3d.so => not found
	libtelemac2d.so => not found
	libsisyphe.so => not found
	libnestor.so => not found
	libtomawac.so => not found
	libartemis.so => not found
	libkhione.so => not found
	libwaqtel.so => not found
	libgretel.so => not found
	libpartel.so => not found
	libbief.so => not found
	libparallel.so => not found
	libhermes.so => not found
	libdamocles.so => not found
	libspecial.so => not found
I believe the libraries are not linking although I found them in the folder as far as I know. Will that be a problem? I will attached my config file and output file below. Again, I am really sorry bother you. Thank you very much for your help and time.

Best Regards,
Htun

File Attachment:

File Name: ldd_api.so.txt
File Size: 11 KB


File Attachment:

File Name: systel.api_2019-06-24-2.cfg
File Size: 2 KB
The administrator has disabled public write access.

Compiling API error on Ubuntu 18.04 5 years 4 months ago #33868

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Did you source you pysource file before doing the ldd ?
If you did try recompiling everything from scratch (option --clean) and check again.
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: Htun Pyae Sone

Compiling API error on Ubuntu 18.04 5 years 4 months ago #33869

  • Htun Pyae Sone
  • Htun Pyae Sone's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 38
  • Thank you received: 2
Dear Yugi,

Thank you so much. Yes it is because I didn't source the pysource. I believe it is running probably now. Thank you so much for your time and help.

Best Regards,
Htun.
The administrator has disabled public write access.
Moderators: borisb

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