SeaDas 7.5: BuildIt Failed (HDF4&5)

Please enter here to ask a question about any NASA Science related topics!
Post Reply
ksharsun
Posts: 11
Joined: Wed Jun 06, 2018 10:07 am America/New_York

SeaDas 7.5: BuildIt Failed (HDF4&5)

by ksharsun » Wed Jun 06, 2018 11:14 am America/New_York

Hi,
   I am using Ubuntu 16.04 LTS and tried to install Seadas 7.5.
   While doing BuildIt,I am getting following error.

[  0%] Generating ../H5fortran_detect.f90
/home/hk/seadas/ocssw/opt/src/hdf5/hdf5-1.8.18/build/bin/H5test_FortranHavekind: /home/hk/seadas/ocssw/opt/lib/libgfortran.so.3: version `GFORTRAN_1.4' not found (required by /home/hk/seadas/ocssw/opt/src/hdf5/hdf5-1.8.18/build/bin/H5test_FortranHavekind)
fortran/src/CMakeFiles/H5fortran_detect.dir/build.make:61: recipe for target 'fortran/H5fortran_detect.f90' failed
make[2]: *** [fortran/H5fortran_detect.f90] Error 1
make[2]: *** Deleting file 'fortran/H5fortran_detect.f90'
CMakeFiles/Makefile2:1661: recipe for target 'fortran/src/CMakeFiles/H5fortran_detect.dir/all' failed
make[1]: *** [fortran/src/CMakeFiles/H5fortran_detect.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  0%] Linking C executable ../bin/H5detect
[  0%] Built target H5detect
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
***** make failed *****
***** BuildIt (hdf5) failed *****
hk@hk:~/seadas/ocssw/opt/src$

Kindly provide the possible solution for the above issue.

Tags:

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 219
Joined: Thu Mar 05, 2009 10:25 am America/New_York

SeaDas 7.5: BuildIt Failed (HDF4&5)

by OB SeaDAS - dshea » Wed Jun 06, 2018 12:32 pm America/New_York

First of all, is there a reason you are building the software?

I am working on better instructions for building the code on various OSs.

To fix you problem do this:

$ cd $OCSSWROOT/opt
$ rm -rf bin include lib share
$ cd src
$ ./BuildIt


That should make the build of the third party libs work.

don

ksharsun
Posts: 11
Joined: Wed Jun 06, 2018 10:07 am America/New_York

SeaDas 7.5: BuildIt Failed (HDF4&5)

by ksharsun » Thu Jun 07, 2018 1:19 am America/New_York

Implementing the above steps, it shows "Everything BuildIt Successfully".
But while doing make in hk@hk:~/seadas/ocssw/ocssw-src/cocssw-src/src/l2gen$.It show following error:

[ 20%] Building C object src/l2gen/CMakeFiles/l1det2det.dir/l1_viirs_nc.c.o
/home/hk/seadas/ocssw/ocssw-src/src/l2gen/l1_viirs_nc.c:12:39: fatal error: Calibrate_Viirs_Connector.h: No such file or directory
compilation terminated.
src/l2gen/CMakeFiles/l1det2det.dir/build.make:974: recipe for target 'src/l2gen/CMakeFiles/l1det2det.dir/l1_viirs_nc.c.o' failed
make[2]: *** [src/l2gen/CMakeFiles/l1det2det.dir/l1_viirs_nc.c.o] Error 1
CMakeFiles/Makefile2:2276: recipe for target 'src/l2gen/CMakeFiles/l1det2det.dir/all' failed
make[1]: *** [src/l2gen/CMakeFiles/l1det2det.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 219
Joined: Thu Mar 05, 2009 10:25 am America/New_York

SeaDas 7.5: BuildIt Failed (HDF4&5)

by OB SeaDAS - dshea » Thu Jun 07, 2018 10:51 am America/New_York

On Ubuntu 16.04 you need to be using gcc-5 for the viirs libs to link.
You need to download this tar file to $OCSSWROOT

https://oceandata.sci.gsfc.nasa.gov/ocssw/viirs.ubuntu16.04.gcc5.tar.gz


$ cd $OCSSWROOT
$ tar xzf viirs.ubuntu16.04.gcc5.tar.gz


Now everything should build.

I am working on build instructions for the different OS distributions, but it is not on the website yet.

ksharsun
Posts: 11
Joined: Wed Jun 06, 2018 10:07 am America/New_York

SeaDas 7.5: BuildIt Failed (HDF4&5)

by ksharsun » Thu Jun 07, 2018 3:14 pm America/New_York

Ya now working fine. Thank you very much for your valuable guidance at shortest time span.

Post Reply