Problem on compiling the hysplit Linux version

Post any questions or comments regarding the LINUX version of HYSPLIT. This includes the model execution, GUIs, results, or graphics. Be sure to mention the version of LINUX you are using.
elwe
Posts: 1
Joined: October 8th, 2016, 2:00 pm
Registered HYSPLIT User: Yes

Re: Problem on compiling the hysplit Linux version

Post by elwe » October 8th, 2016, 2:05 pm

Hello,

I have a similar problem. My output is:

dos2unix: Unable to access file "Makefile".
Building fcsubs library
Building hysplit source library
Building lbfgsb source library
Building exec directory programs
Building the ascii2shp converter
Building the dbf editor
Building the WRF-ARW decoder (requires export NetCDF lib/include)
ERROR

I don't know why doesn't work. I don't know why dos2unix is unable to acces file Makefile.
What should I check in "exec" folder?

Thank you!

ariel.stein
Posts: 617
Joined: November 7th, 2012, 3:14 pm
Registered HYSPLIT User: Yes
Contact:

Re: Problem on compiling the hysplit Linux version

Post by ariel.stein » October 11th, 2016, 9:06 am

Please check in your exec directory. You should have most of the required hysplit programs compiled.
The ERROR message comes from the NetCDF libraries that are required to compile the arw2arl program (converter from WRF to ARL format). If you need that utility you will have to install the NetCDF libraries and edit the makefile located in data2arl/arw2arl/ to point to the directory where you have the NetCDF libraries installed.

kto031
Posts: 25
Joined: February 20th, 2014, 3:05 pm
Registered HYSPLIT User: Yes

Re: Problem on compiling the hysplit Linux version

Post by kto031 » November 29th, 2016, 2:54 pm

I'm having problems compiling again. I have done the same changes as before where I change the compiler and right the correct path to the netcdf files. This time I get an error like this:

dos2unix: converting file smkrun.sh to UNIX format ...
Building fcsubs library
Building hysplit source library
Building lbfgsb source library
Building exec directory programs
ERROR

In the Makefile in the exec directory I changed the FC and CFLAGS variables from GFOR to INTL. Is there anything else I should change in the Makefile in the exec directory?

Here is the bottom of the compiler log:

lbfgsb.f:(.text+0xbbfa): undefined reference to `_gfortran_st_write'
lbfgsb.f:(.text+0xbc09): undefined reference to `_gfortran_st_write_done'
../library/liblbfgsb.a(lbfgsb.o): In function `dcsrch_':
lbfgsb.f:(.text+0xbc6a): undefined reference to `_gfortran_compare_string'
lbfgsb.f:(.text+0xc01b): undefined reference to `_gfortran_compare_string'
lbfgsb.f:(.text+0xc612): undefined reference to `_gfortran_compare_string'
lbfgsb.f:(.text+0xc635): undefined reference to `_gfortran_compare_string'
../library/liblbfgsb.a(timer.o): In function `timer_':
timer.f:(.text+0x2e): undefined reference to `_gfortran_cpu_time_4'
make: *** [lbfgsb] Error 1

Help is greatly appreciated.

- Kristine

glenn.rolph
Posts: 333
Joined: November 7th, 2012, 1:39 pm
Registered HYSPLIT User: Yes
Contact:

Re: Problem on compiling the hysplit Linux version

Post by glenn.rolph » November 29th, 2016, 3:29 pm

You also need to change the Makefile in the library/hysplit and /library/lbfgsb directories to use the Intel Fortran.

kto031
Posts: 25
Joined: February 20th, 2014, 3:05 pm
Registered HYSPLIT User: Yes

Re: Problem on compiling the hysplit Linux version

Post by kto031 » December 4th, 2016, 5:31 am

Thank you! :)

Post Reply