Welcome, Guest
Username: Password: Remember me

TOPIC: Compiling error

Compiling error 3 years 7 months ago #38130

  • sathya
  • sathya's Avatar
Hi,

While compiling (compile_telemac.py) the source codes (v8p1) in Ubuntu 20.04, i am getting the following error message. Kindly help me in rectifying this. I am attaching 'systel.edf.cfg' file for reference

gfortranHPC:


+> Gfortran compiler 4.9.2 with open_mpi for a debian 8

+> root: /home/environ/telemac/v8p1
+> module: ad / api / artemis / bief
damocles / gaia / gretel / hermes
identify_liq_bnd / khione / mascaret / nestor
parallel / partel / postel3d / sisyphe
special / stbtel / telemac2d / telemac3d
tomawac / waqtel


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

+> Compile / Assemble / Link
f951: Warning: Nonexistent include directory ‘/include’ [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory ‘/include’ [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory ‘/include’ [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory ‘/include’ [-Wmissing-include-dirs]
/home/environ/telemac/v8p1/sources/utils/partel/mod_hash_table.f:243:13:

243 | KMUL=Z'CC9E2D51'
| 1
Error: BOZ literal constant at (1) is neither a DATA statement value nor an actual argument of INT/REAL/DBLE/CMPLX intrinsic subprogram [see ‘-fno-allow-invalid-boz’]
Traceback (most recent call last):
File "/home/environ/telemac/v8p1/scripts/python3/compile_telemac.py", line 144, in <module>
main()
File "/home/environ/telemac/v8p1/scripts/python3/compile_telemac.py", line 130, in main
compile_cmdf(options.ncsize, modules, options.verbose)
File "/home/environ/telemac/v8p1/scripts/python3/compilation/compil_tools.py", line 1217, in compile_cmdf
raise TelemacException(\
utils.exceptions.TelemacException:
+> failed: .../v8p1/sources/utils/partel/mod_hash_table.f
... The following command failed for the reason in the listing
mpif90 -c -cpp -fPIC -O2 -fconvert=big-endian -frecord-marker=4 -DHAVE_MPI -DHAVE_VTK -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/utils/special -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/utils/damocles -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/utils/hermes -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/utils/parallel -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/utils/bief -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/waqtel -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/nestor -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/utils/ad -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/tomawac -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/sisyphe -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/gaia -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/khione -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/telemac2d -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/utils/gretel -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/utils/partel -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/telemac3d -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/artemis -I /home/environ/telemac/v8p1/builds/gfortranHPC/obj/api -I$MEDHOME/include -I$MUMPSHOME/include -I $AEDHOME/include -I $GOTMHOME/include /home/environ/telemac/v8p1/sources/utils/partel/mod_hash_table.f


Thanks
vks
Attachments:
The administrator has disabled public write access.

Compiling error 3 years 7 months ago #38292

  • Castiblanco
  • Castiblanco's Avatar
Hi sathya, may you put your pysource.sh file also to know what is the configuration that you are using? I am going through the same issue
The administrator has disabled public write access.

Compiling error 3 years 6 months ago #38516

  • thomas.le
  • thomas.le's Avatar
Hi!
I'm having a similar problem trying to compile telemac on a server. Have you found how to solve this issue?
This is my error message and you will find attached my config and pysource files:

gfortranHPC:


+> Gfortran compiler 4.9.2 with open_mpi for a debian 8

+> root: /home/Telemac/v8p2r0
+> module: ad / api / artemis / bief
damocles / gaia / gretel / hermes
identify_liq_bnd / khione / mascaret / nestor
parallel / partel / postel3d / sisyphe
special / stbtel / telemac2d / telemac3d
tomawac / waqtel


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

+> Compile / Assemble / Link
/home/Telemac/v8p2r0/sources/utils/partel/mod_hash_table.f:243:13:

243 | KMUL=Z'CC9E2D51'
| 1
Error: BOZ literal constant at (1) is neither a DATA statement value nor an actual argument of INT/REAL/DBLE/CMPLX intrinsic subprogram [see ‘-fno-allow-invalid-boz’]
Traceback (most recent call last):
File "/home/Telemac/v8p2r0/scripts/python3/compile_telemac.py", line 143, in <module>
main()
File "/home/Telemac/v8p2r0/scripts/python3/compile_telemac.py", line 129, in main
compile_cmdf(options.ncsize, modules, options.verbose)
File "/home/Telemac/v8p2r0/scripts/python3/compilation/compil_tools.py", line 1279, in compile_cmdf
raise TelemacException(\
utils.exceptions.TelemacException:
+> failed: .../v8p2r0/sources/utils/partel/mod_hash_table.f
... The following command failed for the reason in the listing
mpif90 -c -cpp -fPIC -O2 -fconvert=big-endian -frecord-marker=4 -DHAVE_MPI -DHAVE_VTK -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/utils/special -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/utils/damocles -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/utils/parallel -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/utils/hermes -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/utils/bief -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/nestor -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/utils/ad -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/sisyphe -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/tomawac -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/khione -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/waqtel -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/gaia -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/telemac2d -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/utils/gretel -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/utils/partel -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/telemac3d -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/artemis -I /home/Telemac/v8p2r0/builds/gfortranHPC/obj/api /home/Telemac/v8p2r0/sources/utils/partel/mod_hash_table.f


Thanks!
Thomas
Attachments:
The administrator has disabled public write access.

Compiling error 3 years 6 months ago #38517

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
A simple search of "boz" in the forum will give you the answer
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: thomas.le

Compiling error 3 years 6 months ago #38518

  • thomas.le
  • thomas.le's Avatar
Hi,
Thank you for your answer! Indeed after adding '-fallow-invalid-boz' in my systel file in the cmd_obj line, the compilation seemed to run smoothly (no errors and 'my work is done' at the end).
But since then I wasn't able to run a single test case. Indeed when I run a test case (gouttedo for instance) I have the following error :

gfortranHPC:


+> Gfortran compiler 4.9.2 with open_mpi for a debian 8

+> root: /home/Telemac/v8p2r0
+> module: ad / api / artemis / bief
damocles / gaia / gretel / hermes
identify_liq_bnd / khione / mascaret / nestor
parallel / partel / postel3d / sisyphe
special / stbtel / telemac2d / telemac3d
tomawac / waqtel


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


... processing the steering file

... checking parallelisation

... handling temporary directories
copying: t2d_gouttedo.cas -> <root>/examples/telemac2d/gouttedo/t2d_gouttedo.cas_2021-05-18-12h50min17s/T2DCAS
copying: telemac2d.dico -> <root>/examples/telemac2d/gouttedo/t2d_gouttedo.cas_2021-05-18-12h50min17s/T2DDICO
copying: geo_gouttedo.cli -> <root>/examples/telemac2d/gouttedo/t2d_gouttedo.cas_2021-05-18-12h50min17s/T2DCLI
copying: geo_gouttedo.slf -> <root>/examples/telemac2d/gouttedo/t2d_gouttedo.cas_2021-05-18-12h50min17s/T2DGEO

... checking the executable
> compiling objs
compiling: index.htmlgfortran: warning: /home/Telemac/v8p2r0/examples/telemac2d/gouttedo/t2d_gouttedo.cas_2021-05-18-12h50min17s/user_fortran/index.html: linker input file unused because linking not done
... completed
compiling: user_condin_h.f ... completed
compiling: user_condin_trac.f ... completed
gfortran: error: /home/Telemac/v8p2r0/examples/telemac2d/gouttedo/t2d_gouttedo.cas_2021-05-18-12h50min17s/user_fortran/index.o: No such file or directory
Traceback (most recent call last):
File "/home/Telemac/v8p2r0/scripts/python3/telemac2d.py", line 7, in <module>
main('telemac2d')
File "/home/Telemac/v8p2r0/scripts/python3/runcode.py", line 271, in main
run_study(cas_file, code_name, options)
File "/home/Telemac/v8p2r0/scripts/python3/execution/run_cas.py", line 157, in run_study
run_local_cas(my_study, options)
File "/home/Telemac/v8p2r0/scripts/python3/execution/run_cas.py", line 42, in run_local_cas
my_study.compile_exe()
File "/home/Telemac/v8p2r0/scripts/python3/execution/study.py", line 322, in compile_exe
self.exe_name = process_executable(
File "/home/Telemac/v8p2r0/scripts/python3/execution/process.py", line 655, in process_executable
raise TelemacException(
utils.exceptions.TelemacException: Could not link your executable (runcode=1).

... The following command failed for the reason in the listing
mpif90 -fPIC -fconvert=big-endian -frecord-marker=4 -lpthread -lm -o "/home/Telemac/v8p2r0/examples/telemac2d/gouttedo/t2d_gouttedo.cas_2021-05-18-12h50min17s/out_user_fortran" /home/Telemac/v8p2r0/examples/telemac2d/gouttedo/t2d_gouttedo.cas_2021-05-18-12h50min17s/user_fortran/index.o /home/Telemac/v8p2r0/examples/telemac2d/gouttedo/t2d_gouttedo.cas_2021-05-18-12h50min17s/user_fortran/user_condin_h.o /home/Telemac/v8p2r0/examples/telemac2d/gouttedo/t2d_gouttedo.cas_2021-05-18-12h50min17s/user_fortran/user_condin_trac.o /home/Telemac/v8p2r0/builds/gfortranHPC/lib/libtelemac2d.a /home/Telemac/v8p2r0/builds/gfortranHPC/lib/libgaia4telemac2d.a /home/Telemac/v8p2r0/builds/gfortranHPC/lib/libkhione4telemac2d.a /home/Telemac/v8p2r0/builds/gfortranHPC/lib/libtomawac4telemac2d.a /home/Telemac/v8p2r0/builds/gfortranHPC/lib/libwaqtel4telemac2d.a /home/Telemac/v8p2r0/builds/gfortranHPC/lib/libstbtel4telemac2d.a /home/Telemac/v8p2r0/builds/gfortranHPC/lib/libsisyphe4telemac2d.a /home/Telemac/v8p2r0/builds/gfortranHPC/lib/libad4telemac2d.a /home/Telemac/v8p2r0/builds/gfortranHPC/lib/libnestor4telemac2d.a /home/Telemac/v8p2r0/builds/gfortranHPC/lib/libbief4telemac2d.a /home/Telemac/v8p2r0/builds/gfortranHPC/lib/libparallel4telemac2d.a /home/Telemac/v8p2r0/builds/gfortranHPC/lib/libhermes4telemac2d.a /home/Telemac/v8p2r0/builds/gfortranHPC/lib/libdamocles4telemac2d.a /home/Telemac/v8p2r0/builds/gfortranHPC/lib/libspecial4telemac2d.a /home/Telemac/v8p2r0/lib/libmetis.a -lmetis

I hope that this issue has not already been solved on this forum and that I wasn't able to find the solution by myself.

Thanks for your help!
Cheers, Thomas
Attachments:
The administrator has disabled public write access.

Compiling error 3 years 6 months ago #38519

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
I don't know why but in your case you're trying to compile index.html file...
Try to remove this file from the user_fortran directory and this should works...

All the information are written in the error message so you should be able to understand the problem by carefully read it...
compiling: index.htmlgfortran: warning: /home/Telemac/v8p2r0/examples/telemac2d/gouttedo/t2d_gouttedo.cas_2021-05-18-12h50min17s/user_fortran/index.html: linker input file unused because linking not done
... completed
gfortran: error: /home/Telemac/v8p2r0/examples/telemac2d/gouttedo/t2d_gouttedo.cas_2021-05-18-12h50min17s/user_fortran/index.o: No such file or directory
utils.exceptions.TelemacException: Could not link your executable (runcode=1).
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: thomas.le

Compiling error 3 years 6 months ago #38523

  • Castiblanco
  • Castiblanco's Avatar
Hi,

The index.html files seem to be created on every folder when you download Telemac, at least that happened to me when I used wget to download them, usually when you use subversion it must not happen. However, I recommend to erase all the index.html files directly from the parent adress of Telemac, since as I said: those files were created inside every folder of Telemac when the software was downloaded.

Then of course, inside the Gouttedo fortran folder also an index.html file were created, and Telemac naturally fails by trying to compile it.

Greetings.
The administrator has disabled public write access.
Moderators: borisb

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