hyp2000_mgr failed to compile

61 views
Skip to first unread message

Massimo Della Schiava

unread,
Sep 5, 2018, 10:10:37 AM9/5/18
to Earthworm Community Forum
Good evening,
i've installed EW v.7.9 on OS Ubuntu 14.04. I've downloaded the source of the software and i've compiled it by myself following the steps reported at http://vps.isti.com/trac/ew/wiki/Linux

All seems ok, I get the data from our winston server with import generic; statmgr, heli_ewII, wave_serverV, n.2 copystatus, pick_ew and binder_ew are running (still waiting for an earthquake for a test.....). Then I tried to activate the hypo mega module (eqproc, eqbuff, eqcoda and Hyp2000_mgr) but Hyp2000_mgr was not compiled......

I tried to compile Hyp2000_mgr.c (inside the folder ew/earthworm_7.9/src/seismic_processing/hyp2000_mgr)  with gfortran but I had non success.

My steps have been;
1st try:
1) FC=gfortran
2) gfortran -o hyp2000_mgr hyp2000_mgr.c
and i got this error:
---------
hyp2000_mgr.c:58:23: fatal error: earthworm.h: File o directory non esistente
 #include <earthworm.h>
                       ^
compilation terminated.

----------

2nd try:
In the same folder there is a makefile.unix, so once deleted the extension,
1) make

and i got this error:
---------
gfortran  -m32 hyp2000_mgr.o /home/joule/ew/earthworm_7.9/lib/pipe.o /home/joule/ew/earthworm_7.9/lib/read_arc.o /home/joule/ew/earthworm_7.9/lib/libew.a -I../hyp2000 hypoinv.o hyp2000_ew_gnu.o hybda.o hycmd.o hysta.o hydel.o hyate.o hyfmc.o hycal.o hyxmc.o hycrh.o hycrt.o hystl.o hyopen.o hyinit.o hyphs.o hysou.o hytrl.o hyloc.o hysol.o hysvd.o hytra.o hytrh.o hytrt.o hymag.o hyrep.o hylst.o hysum.o hyinp.o hypro.o medwt.o utmcal.o hydelt.o hyedit.o hytime.o hybeg.o hypref.o hymagp.o linv.o linvol.o hyfile.o hylinv.o hylin.o hycre.o hytre.o trvcon.o allsubs.o hydatum.o -o /home/joule/ew/earthworm_7.9/bin/hyp2000_mgr -lc -lpthread
/usr/bin/ld: saltato /usr/lib/gcc/x86_64-linux-gnu/4.8/libgfortran.so incompatibile durante la ricerca di -lgfortran
/usr/bin/ld: saltato /usr/lib/gcc/x86_64-linux-gnu/4.8/libgfortran.a incompatibile durante la ricerca di -lgfortran
/usr/bin/ld: impossibile trovare -lgfortran
collect2: error: ld returned 1 exit status

make: *** [hyp2000_mgr] Errore 1

----------

Can you tell me a procedure step by step to compile hyp2000_mgr?

Thanks in advance
Massimo

Larry Baker

unread,
Sep 6, 2018, 1:34:22 PM9/6/18
to earthwo...@googlegroups.com, Larry Baker
Massimo,

The steps should be:

1) set up your Earthworm variables to compile from source, as you already did
2) from that same session/terminal window (after building the C code), cd to the ew/earthworm_7.9/src/seismic_processing/hyp2000_mgr directory
3) make -f makefile.unix

You must first have the 32-bit libraries/versions of gcc and gfortran if you are going to use the -m32 flag.  Otherwise, you must change -m32 to -m64 and recompile everything for 64-bits.

If I had to guess, I think you are missing the 32-bit gfortran development support files and libraries.

Larry Baker
US Geological Survey
650-329-5608
ba...@usgs.gov



--
--
You received this message because you are subscribed to the Google
Groups "Earthworm Community Forum" group.
 
To post to this group, send an email to earthwo...@googlegroups.com
 
To unsubscribe from this group, send an email to
earthworm_for...@googlegroups.com
 
For more options, visit this group at
http://groups.google.com/group/earthworm_forum?hl=en

---
You received this message because you are subscribed to the Google Groups "Earthworm Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to earthworm_for...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Massimo Della Schiava

unread,
Sep 6, 2018, 1:48:15 PM9/6/18
to Earthworm Community Forum
SOLVED
Hi all, i've already solved thi problem.

First of all, on Ubuntu 14.04, gfortran must be installed and gcc, g++ and gfortran must have the same version.
Then, even if the istalled system is based on 64bit, for some reason, 32bit libraries of gfortran are needed. So the 32bit libraries must be installed with the command
sudo apt-get install lib32gfortran-4.8-dev

Once installed must be set FC=gfortran and then, to compile hyp2000_mgr.c (inside the folder ew/earthworm_7.9/src/seismic_
processing/hyp2000_mgr) file makefile.unix must be used:
make -f makefile.unix

At the end of this process you will have hyp2000_mgr compiled inside the folder ew/earthworm_7.9/bin

Hope this will be useful,
greetings
Massimo


Il giorno mercoledì 5 settembre 2018 16:10:37 UTC+2, Massimo Della Schiava ha scritto:sudo apt-get install lib32gfortran-4.8-dev
Reply all
Reply to author
Forward
0 new messages