compile ocssw

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
oo_processing
Posts: 240
Joined: Wed Apr 06, 2005 12:11 pm America/New_York

compile ocssw

by oo_processing » Fri Sep 01, 2017 2:59 pm America/New_York

Lo all,

I was able to finally get all the 3rd party stuff to compile, and the tried this as per https://seadas.gsfc.nasa.gov/build_ocssw/
        $ cd $OCSSWROOT/build
        $ mkdir cbuild
        $ cd cbuild
        $ cmake ..
        $ make -j 20 # the -j flag will significantly increase the compile speed

I got this far. Ideas?

[ 43%] Built target lonlat2pixline
/optics1/home1/bmurch/seadas/seadas-7.4/ocssw/build/src/l2gen/atrem_app_refl_plus_gas_removal_l2.f90:1699.24:

      COMMON /GEOMETRY3/ G_VAP, G_OTHER, G_VAP_EQUIV
                        1
Warning: Named COMMON block 'geometry3' at (1) shall be of the same size as elsewhere (12 vs 204 bytes)
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':
(.text+0x6823): warning: the use of `mktemp' is dangerous, better use `mkstemp'
[ 43%] Built target l1info
Linking CXX executable l1bgen_generic
Linking CXX executable l1mapgen
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':
(.text+0x6823): warning: the use of `mktemp' is dangerous, better use `mkstemp'
[ 43%] Built target l1bgen_generic
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':
(.text+0x6823): warning: the use of `mktemp' is dangerous, better use `mkstemp'
[ 43%] Built target l1mapgen
make: *** [all] Error 2

[root@seahawk cbuild]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)

Tags:

bruce
Posts: 85
Joined: Thu Mar 17, 2005 4:36 pm America/New_York

compile ocssw

by bruce » Fri Sep 01, 2017 4:07 pm America/New_York

those are all warnings and shouldn't cause the 'error 2' (as far as I know).  Is there a real error earlier that you missed?

oo_processing
Posts: 240
Joined: Wed Apr 06, 2005 12:11 pm America/New_York

compile ocssw

by oo_processing » Fri Sep 01, 2017 4:21 pm America/New_York

OK, well, I just did a:
$ make clean
$ make -j 20

And it went to the end? So I guess I will just do some testing to see if all works. Is there an easy way to change the install directory? I don't want to install to the current $OCSSWROOT.

[100%] Building C object src/l2gen/CMakeFiles/l2binmatch.dir/numerical.c.o
[100%] /optics1/home1/bmurch/seadas/seadas-7.4/ocssw/build/src/l2gen/atrem_app_refl_plus_gas_removal_l2.f90:1699.24:

      COMMON /GEOMETRY3/ G_VAP, G_OTHER, G_VAP_EQUIV
                        1
Warning: Named COMMON block 'geometry3' at (1) shall be of the same size as elsewhere (12 vs 204 bytes)
Building C object src/l2gen/CMakeFiles/l2binmatch.dir/raman.c.o
[100%] Building C object src/l2gen/CMakeFiles/l2binmatch.dir/get_psd_ksm.c.o
Linking CXX executable l3gen
Linking CXX executable vcalmerge
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':
(.text+0x6823): warning: the use of `mktemp' is dangerous, better use `mkstemp'
Linking CXX executable l1det2det
[100%] Built target l3gen
Linking CXX executable l2gen
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':
(.text+0x6823): warning: the use of `mktemp' is dangerous, better use `mkstemp'
[100%] Built target vcalmerge
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':
(.text+0x6823): warning: the use of `mktemp' is dangerous, better use `mkstemp'
[100%] Built target l1det2det
Linking CXX executable l2binmatch
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':
(.text+0x6823): warning: the use of `mktemp' is dangerous, better use `mkstemp'
[100%] Built target l2gen
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libpthread.a(libpthread.o): In function `sem_open':
(.text+0x6823): warning: the use of `mktemp' is dangerous, better use `mkstemp'
[100%] Built target l2binmatch

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1276
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1

compile ocssw

by OB.DAAC - SeanBailey » Fri Sep 01, 2017 9:01 pm America/New_York

The main $OCSSWROOT/CMakeLists.txt file has the following:

# where we put the binaries
set (CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR})


Change that, and rerun cmake and the binaries will be installed where you tell them to be installed.

Sean

Post Reply