Welcome, Guest
Username: Password: Remember me

TOPIC: Problem compiling

Problem compiling 5 years 11 months ago #32289

  • Karki
  • Karki's Avatar
Dear friends,

I get the following error while compiling Telemac v7p2r0 in Linux.


Compiling the program HOMERE_MASCARET and dependents
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/root/opentelemac-mascaret/v7p2r0/sources/mascaret/API/f90/import_xml.f90:76.35:

startElement_handler=START_ELEMENT_HANDLER, endElement_handler=EN
1
Error: Internal procedure 'start_element_handler' is not allowed as an actual argument at (1)
/root/opentelemac-mascaret/v7p2r0/sources/mascaret/API/f90/import_xml.f90:76.77:

startElement_handler=START_ELEMENT_HANDLER, endElement_handler=END_
1
Error: Internal procedure 'end_element_handler' is not allowed as an actual argument at (1)
/root/opentelemac-mascaret/v7p2r0/sources/mascaret/API/f90/import_xml.f90:77.33:

characters_handler=CHARACTERS_HANDLER)
1
Error: Internal procedure 'characters_handler' is not allowed as an actual argument at (1)


Hummm ... I could not complete my work.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compileTELEMAC::createObjFiles:
+> failed: gfortran -c -fPIC -O2 -fconvert=big-endian -frecord-marker=4 -DHAVE_MPI -DHAVE_VTK -I /root/opentelemac-mascaret/v7p2r0/builds/gfortranHPC/lib/mascaret /root/opentelemac-mascaret/v7p2r0/sources/mascaret/API/f90/import_xml.f90
... The following command failed for the reason above (or below)
gfortran -c -fPIC -O2 -fconvert=big-endian -frecord-marker=4 -DHAVE_MPI -DHAVE_VTK -I /root/opentelemac-mascaret/v7p2r0/builds/gfortranHPC/lib/mascaret /root/opentelemac-mascaret/v7p2r0/sources/mascaret/API/f90/import_xml.f90:



I tried with both serial and parallel version but I get the same error in both of the compilation.

Can anyone suggest, What is this error related to?

If it is related to the openMPI? I have installed openMPI is a separate directory. Where should I give the location of MPI in systel.cfg or pysource.gfortranHPC.sh?

or Is this error related to something else?

I would be grateful for your support.

Best Regards,
Saroj
Attachments:
The administrator has disabled public write access.

Problem compiling 5 years 11 months ago #32298

  • Karki
  • Karki's Avatar
Finally, I succeeded in compiling by following this link in the forum.

www.opentelemac.org/index.php/kunena/12-...ing-v7p2-compilation

However, when I tried to run a test case, it says 'telemac2d.py' command not found.

I tried to check this link for the problem.

www.opentelemac.org/index.php/kunena/12-...rror-on-ubuntu#28870

I checked the pysource.gfortranHPC.sh, the environment variables are set correctly. But the command doesn't run.

What may be the possible cause?

Regards,
Saeoj
Attachments:
The administrator has disabled public write access.

Problem compiling 5 years 11 months ago #32299

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Can you post the return of the those commands (after sourcing the pysource):
echo $HOMETEL
ls $HOMETEL
echo $PATH  
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.

Problem compiling 5 years 11 months ago #32302

  • Karki
  • Karki's Avatar
Here it is,



Loading Options and Configurations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_ _ _
| | (_) (_)
_ _ _ __ | | __ _ __ ___ __ __ _ __ _ __ ___ __ __ _ ___ _ ___ _ __
| | | || '_ \ | |/ /| '_ \ / _ \ \ \ /\ / /| '_ \ | '__| / _ \\ \ / /| |/ __|| | / _ \ | '_ \
| |_| || | | || < | | | || (_) | \ V V / | | | | | | | __/ \ V / | |\__ \| || (_) || | | |
\__,_||_| |_||_|\_\|_| |_| \___/ \_/\_/ |_| |_| |_| \___| \_/ |_||___/|_| \___/ |_| |_|


... parsing configuration file: /root/opentelemac-mascaret/v7p2r0/configs/systel.cfg


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

gfortranHPC:

+> root: /root/opentelemac-mascaret/v7p2r0
+> module: splitsel / sisyphe / ad / tomawac / damocles / artemis / partel / postel3d / waqtel / telemac3d / diffsel / gretel / api / stbtel / telemac2d / bief / nestor / hermes / parallel / special


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



My work is done


[root@h135 configs]#


[root@h135 configs]# echo $HOMETEL
/root/opentelemac-mascaret/v7p2r0
[root@h135 configs]# ls $HOMETEL
builds documentation NEWS.txt README.txt sources
configs examples optionals scripts
[root@h135 configs]# echo $PATH
/root/opt/med-5.2.0/build_debian/bin:/root/opentelemac-mascaret/v7p2r0/scripts/python27:.:/usr/lib64/opnempi/bin/:/opt/intel/impi/4.1.2.040/intel64/bin:/opt/intel/impi/4.1.2.040/intel64/bin:/opt/intel/composer_xe_2013_sp1.1.106/bin/intel64:/opt/intel/composer_xe_2013_sp1.1.106/mpirt/bin/intel64:/opt/intel/composer_xe_2013_sp1.1.106/debugger/gdb/intel64_mic/py26/bin:/opt/intel/composer_xe_2013_sp1.1.106/debugger/gdb/intel64/py26/bin:/opt/intel/composer_xe_2013_sp1.1.106/bin/intel64:/opt/intel/composer_xe_2013_sp1.1.106/bin/intel64_mic:/opt/intel/composer_xe_2013_sp1.1.106/debugger/gui/intel64:/usr/lib64/qt-3.3/bin:/opt/intel/impi/4.1.2.040/intel64/bin:/opt/intel/composer_xe_2013_sp1.1.106/bin/intel64:/opt/intel/composer_xe_2013_sp1.1.106/mpirt/bin/intel64:/opt/intel/composer_xe_2013_sp1.1.106/debugger/gdb/intel64_mic/py26/bin:/opt/intel/composer_xe_2013_sp1.1.106/debugger/gdb/intel64/py26/bin:/opt/intel/composer_xe_2013_sp1.1.106/bin/intel64:/opt/intel/composer_xe_2013_sp1.1.106/bin/intel64_mic:/opt/intel/composer_xe_2013_sp1.1.106/debugger/gui/intel64:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin
The administrator has disabled public write access.

Problem compiling 5 years 11 months ago #32317

  • Karki
  • Karki's Avatar
Dear Yugi,

I recompiled the model in another location and the compilation was successful without any error.

Trying to run the code telemac2d.py at the directory ..../scripts/python27 , says command not found.
But when I run the command at the directory ......./v7p2r0/configs, the run was successful.

So how can we confirm the python script path so that we can run under any directory?

Here is what I get.....

[root@h135 configs]# source pysource.gfortranHPC.sh
[root@h135 configs]# config.py


Loading Options and Configurations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_____ ___ ___
|___ | |__ \ / _ \
__ __ _/ / _ __ ) | _ __ | | | |
\ \ / / |_ _| | '_ \ / / | '__|| | | |
\ V / / / | |_) | / /_ | | | |_| |
\_/ /_/ | .__/ |____||_| \___/
| |
|_|
_ _ __ ___ _ _ _ _ ___
_| || |_ /_ ||__ \ | || | | || | |__ \
_ __ ___ __ __ |_ __ _| | | ) || || |_ | || |_ ) |
| '__| / _ \\ \ / / _| || |_ | | / / |__ _||__ _| / /
| | | __/ \ V / _ |_ __ _| | | / /_ | | | | / /_
|_| \___| \_/ (_) |_||_| |_||____| |_| |_| |____|


... parsing configuration file: /root/opentelemac/v7p2r0/configs/systel.cfg


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

gfortranHPC:

+> root: /root/opentelemac/v7p2r0
+> module: splitsel / sisyphe / ad / tomawac / damocles / artemis / partel / postel3d / waqtel / telemac3d / diffsel / gretel / api / stbtel / telemac2d / bief / nestor / hermes / parallel / special


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



My work is done


[root@h135 configs]# echo $HOMETEL
/root/opentelemac/v7p2r0
[root@h135 configs]# ls $HOMETEL
builds documentation NEWS.txt README.txt sources
configs examples optionals scripts
[root@h135 configs]# echo $PATH
/root/opentelemac/v7p2r0/scripts/python27:.:/usr/lib64/opnempi/bin/:/opt/intel/impi/4.1.2.040/intel64/bin:/opt/intel/impi/4.1.2.040/intel64/bin:/opt/intel/composer_xe_2013_sp1.1.106/bin/intel64:/opt/intel/composer_xe_2013_sp1.1.106/mpirt/bin/intel64:/opt/intel/composer_xe_2013_sp1.1.106/debugger/gdb/intel64_mic/py26/bin:/opt/intel/composer_xe_2013_sp1.1.106/debugger/gdb/intel64/py26/bin:/opt/intel/composer_xe_2013_sp1.1.106/bin/intel64:/opt/intel/composer_xe_2013_sp1.1.106/bin/intel64_mic:/opt/intel/composer_xe_2013_sp1.1.106/debugger/gui/intel64:/usr/lib64/qt-3.3/bin:/opt/intel/impi/4.1.2.040/intel64/bin:/opt/intel/composer_xe_2013_sp1.1.106/bin/intel64:/opt/intel/composer_xe_2013_sp1.1.106/mpirt/bin/intel64:/opt/intel/composer_xe_2013_sp1.1.106/debugger/gdb/intel64_mic/py26/bin:/opt/intel/composer_xe_2013_sp1.1.106/debugger/gdb/intel64/py26/bin:/opt/intel/composer_xe_2013_sp1.1.106/bin/intel64:/opt/intel/composer_xe_2013_sp1.1.106/bin/intel64_mic:/opt/intel/composer_xe_2013_sp1.1.106/debugger/gui/intel64:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin
Attachments:
The administrator has disabled public write access.
Moderators: borisb

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