isce-framework / isce2

InSAR Scientific Computing Environment version 2
Other
511 stars 250 forks source link

ISCE install with scons #274

Open ES20180816 opened 3 years ago

ES20180816 commented 3 years ago

Hello, I am trying to install ISCE 2.4.1/2.4.2/2.5.0 on Ubuntu20.10 following the GitHub instructions, and I am running into some issues.

Warning: Array reference at (1) out of bounds (3332 > 100) in loop beginning at (2)
/home/lzw/build/isce_build/components/contrib/ISSI/src/igrf2005_sub.f:28:34:

   28 |       CALL FELDCOF(YEAR,DIMO,PATH)
      |                                  1
Error: Type mismatch in argument ‘path’ at (1); passed REAL(4) to CHARACTER(80)
/home/lzw/build/isce_build/components/contrib/ISSI/src/igrf2005_sub.f:89:31:

   89 |         CALL FELDCOF(YEAR,DIMO)
      |                               1
Error: Missing actual argument for argument ‘path’ at (1)
scons: *** [/home/lzw/build/isce_build/components/contrib/ISSI/src/igrf2005_sub.os] Error 1
scons: done reading SConscript files.
scons: Building targets ...
scons: *** Do not know how to make File target `install' (/home/lzw/tools/src/isce2/install).  Stop.
scons: building terminated because of errors.
rtburns-jpl commented 3 years ago

What version of gfortran are you using? I think the highest I've used is gfortran 9 but it looks like Ubuntu 20.10 is using gfortran 10, is that correct? I'll try it out and see if I can reproduce the error.

ES20180816 commented 3 years ago

Yes,I used the gfortran with version=10.2.0 in Ubuntu 20.10.

hardreddata commented 3 years ago

Depending on your needs you could just use conda - https://anaconda.org/conda-forge/isce2

I am not sure if this is maintained by the core ISCE team. If so maybe it needs a mention in the readme?

rtburns-jpl commented 3 years ago

Hmm, I wasn't able to reproduce this error with gfortran 10 on my machine. I'll try again in a VM to see if it's an Ubuntu-specific issue.

Yeah, we should probably advertise our conda-forge package more prominently. I'm currently the maintainer, so if you run into any packaging-specific issues, you can raise them at https://github.com/conda-forge/isce2-feedstock.

ES20180816 commented 3 years ago

Ok, thank you very much. I have successfully installed the version of 2.5.1 by conda, which is very convenient. However, I still cannot find an effective approach to enable CUDA.

EJFielding commented 3 years ago

I am trying to install ISCE2 on my Mac, with the prerequisites installed by MacPorts. I ran into the same error as in the original issue post when I use GCC 10 (sudo port select gcc mp-gcc10) and scons install. This is using:

gfortran --version
GNU Fortran (MacPorts gcc10 10.3.0_0) 10.3.0
EJFielding commented 3 years ago

I tried to switch to gcc9, and I am getting a different error:

/opt/local/bin/gfortran -o /Users/fielding/tools/ISCE2_latest/build/components/contrib/mdx/src/mdx_main.o -c -Wall -ffixed-line-length-none -fno-second-underscore -fPIC -fno-range-check -m64 -DSUN -DIO64 -DNEEDS_F77_TRANSLATION -DF77EXTERNS_LOWERCASE_TRAILINGBAR -I/opt/local/include -I/Users/fielding/tools/ISCE2_latest/build/mods -J/Users/fielding/tools/ISCE2_latest/build/mods /Users/fielding/tools/ISCE2_latest/build/components/contrib/mdx/src/mdx_main.F
f951: Warning: Nonexistent include directory '/Users/fielding/tools/ISCE2_latest/build/mods' [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory '/Users/fielding/tools/ISCE2_latest/build/mods' [-Wmissing-include-dirs]
/Users/fielding/tools/ISCE2_latest/build/components/contrib/mdx/src/mdx_main.F:137:12:

  137 |           i=mdxfunc_sample(2,1,i_eight(0),4*500*500,b_data)
      |            1
Warning: Possible change of value in conversion from INTEGER(8) to INTEGER(4) at (1) [-Wconversion]
/Users/fielding/tools/ISCE2_latest/build/components/contrib/mdx/src/mdx_main.F:144:54:

  144 |         integer*8 function mdxfunc_sample(i_flag,i_chn,i_start,i_num,b_data)
      |                                                      1
Warning: Unused dummy argument 'i_chn' at (1) [-Wunused-dummy-argument]
/opt/local/bin/gcc -o /Users/fielding/tools/ISCE2_latest/build/components/contrib/mdx/src/graphx_mdx.o -c -Wall -fPIC -m64 -DSUN -DIO64 -I/opt/local/include -I/opt/local/include -DNEEDS_F77_TRANSLATION -DF77EXTERNS_LOWERCASE_TRAILINGBAR -I/opt/local/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/include -I/opt/local/include -I/opt/local/include/openmpi-mp -I/Users/fielding/tools/ISCE2_latest/build/components/iscesys/ImageApi/include -I/Users/fielding/tools/ISCE2_latest/build/components/iscesys/ImageApi/DataCaster/include -I/Users/fielding/tools/ISCE2_latest/build/components/isceobj/LineAccessor/include -I/Users/fielding/tools/ISCE2_latest/build/components/iscesys/StdOE/include -I/Users/fielding/tools/ISCE2_latest/build/components/isceobj/Util/include -I/Users/fielding/tools/ISCE2_latest/build/components/isceobj/Util/Library/include /Users/fielding/tools/ISCE2_latest/build/components/contrib/mdx/src/graphx_mdx.c
In file included from /Users/fielding/tools/ISCE2_latest/build/components/contrib/mdx/src/graphx_mdx.c:23:
/opt/local/lib/gcc9/gcc/x86_64-apple-darwin19/9.4.0/include-fixed/stdio.h:78:10: fatal error: _stdio.h: No such file or directory
   78 | #include <_stdio.h>
      |          ^~~~~~~~~~
compilation terminated.
scons: *** [/Users/fielding/tools/ISCE2_latest/build/components/contrib/mdx/src/graphx_mdx.o] Error 1
scons: done reading SConscript files.
scons: Building targets ...
scons: *** Do not know how to make File target `install' (/Users/fielding/tools/ISCE2_latest/isce2/install).  Stop.
scons: building terminated because of errors.

This is with:

gfortran --version
GNU Fortran (MacPorts gcc9 9.4.0_0) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.

This could be because my openmpi-default is installed with +gcc10. openmpi-default @4.1.1_0+gcc10 (active)