Welcome, Guest
Username: Password: Remember me

TOPIC: API compile error and MPI python3 error

API compile error and MPI python3 error 5 years 3 months ago #34388

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
Hi Youan
It has got much further but a new error in compiling gretel. States requires recompiling with -fPIC - which is in my cmd_lib cmd_exe cmd_obj. Is another -fPIC option needed?

Compiling from the tree top gretel plus dependents
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+> There is no need to compile any object
- completed: .../v8p0r2/builds/subpar/lib/special4gretel.so
- completed: .../v8p0r2/builds/subpar/lib/hermes4gretel.so
- completed: .../v8p0r2/builds/subpar/lib/bief4gretel.so
- completed: .../v8p0r2/builds/subpar/lib/partel4gretel.so
/usr/bin/ld: ./homere_gretel.o: relocation R_X86_64_32S against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
./homere_gretel.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
Traceback (most recent call last):
File "/gpfs/home/e088/telemac_80/v8p0r2//scripts/python3/compile_telemac.py", line 138, in <module>
main()
File "/gpfs/home/e088/telemac_80/v8p0r2//scripts/python3/compile_telemac.py", line 126, in main
compile_cmdf(options.ncsize, modules)
File "/gpfs/home/e088/telemac_80/v8p0r2/scripts/python3/compilation/compil_tools.py", line 1236, in compile_cmdf
'\n +> failed: ' + file_name + '\n')
utils.exceptions.TelemacException:
+> failed: .../v8p0r2/builds/subpar/lib/gretel.so
The administrator has disabled public write access.

API compile error and MPI python3 error 5 years 3 months ago #34392

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Run compilation with the option --clean.
Hopefully that should solve it.
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.

API compile error and MPI python3 error 5 years 3 months ago #34397

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
Sorry - I still have an include missing to mpif.h Have checked that my $MPIHOME is correct. The flag for incs_mpi doesn't appear in my mpi config?


- completed: .../v8p0r2/sources/utils/special/declarations_special.F
/gpfs/home/e088/telemac_80/v8p0r2/sources/utils/special/plante.F:68: Error: Can't open included file 'mpif.h'
Traceback (most recent call last):
File "/gpfs/home/e088/telemac_80/v8p0r2//scripts/python3/compile_telemac.py", line 138, in <module>
main()
File "/gpfs/home/e088/telemac_80/v8p0r2//scripts/python3/compile_telemac.py", line 126, in main
compile_cmdf(options.ncsize, modules)
File "/gpfs/home/e088/telemac_80/v8p0r2/scripts/python3/compilation/compil_tools.py", line 1204, in compile_cmdf
'\n +> failed: ' + file_name + '\n' + err)
utils.exceptions.TelemacException:
+> failed: .../v8p0r2/sources/utils/special/plante.F
... The following command failed for the reason in the listing
b'gfortran -c -Og -cpp -DHAVE_MPI -DHAVE_AED2 -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/utils/special -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/utils/damocles -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/utils/hermes -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/utils/parallel -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/utils/bief -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/waqtel -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/nestor -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/utils/ad -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/tomawac -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/sisyphe -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/khione -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/telemac2d -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/utils/gretel -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/utils/partel -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/artemis -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/telemac3d -I /gpfs/home/e088/telemac_80/v8p0r2/builds/subpar/obj/api -I $AEDHOME/include -I$AEDHOME/mod /gpfs/home/e088/telemac_80/v8p0r2/sources/utils/special/plante.F'
The administrator has disabled public write access.

API compile error and MPI python3 error 5 years 3 months ago #34400

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Replace gfortran by $MPIHOME/bin/mpif90
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: olslewfoot

API compile error and MPI python3 error 5 years 2 months ago #34430

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
Hi Youan.
I have got much further - but I return to the api compilation error which I though I'd defeated by compiling in dynamic form. I also had an error in mascaret but have used -mascaret in modules. I now have all the telemac modules compiled except the api, which we don't use, but it would be really good to see the "my work is done" message at the end of compilation. Please can you suggest anything?
Have attached the cfg, pysource and error message.
John
The administrator has disabled public write access.

API compile error and MPI python3 error 5 years 2 months ago #34431

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
Youan
I have completed the compilation but with modules for api and mascaret which we don't usually use.

Thanks for your your help with this compilation and setting up the config.
The administrator has disabled public write access.

API compile error and MPI python3 error 5 years 2 months ago #34454

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
HI could you post the error you are getting ?
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.

API compile error and MPI python3 error 5 years 2 months ago #34455

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
Im away from work on leave for a few days, but I've completed the compilation successfully using python2.7 and we are now using v8p0r2.
I still find problems with python 3 particularly with the cluster submission scripts. Python 2.7 is working for our colleagues.
I will replicate the python 3 error and send to you whe I return.
The administrator has disabled public write access.

API compile error and MPI python3 error 5 years 3 weeks ago #34856

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
Hi Youan
I returned to this - a compile of the v8p0r2 trunk which fails at the second part of f2py under python3.
Have attached the error and config.
Would appreciate any possible help.
John
Attachments:
The administrator has disabled public write access.

API compile error and MPI python3 error 5 years 3 weeks ago #34858

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

This error seems to come from metis.

I've cleared up your systel.cfg file.

Could you try two things:
- Recompile with the updated configuration file
- If it still crashes Edit compile_telemac.py at line 130 replace silent=True by silent=False. This will make f2py more verbose.

As for the submission part you need to load the full telemac information in your hpc_stdin (PATH, HOMETEL, SYSTELCFG, USETELCFG, PYTHONPATH, LD_LIBRARY_PATH...).

Hope it helps
Attachments:
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: olslewfoot
Moderators: borisb

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