isce2 icon indicating copy to clipboard operation
isce2 copied to clipboard

Error: scons: *** Two environments with different actions were specified for the same target: GDALImage.os

Open learndiary opened this issue 2 years ago • 1 comments

Discussed in https://github.com/isce-framework/isce2/discussions/694

Originally posted by learndiary April 10, 2023 I am compiling ISCE2 2.6.2 with Nvidia GPU cuda enabled using scons method in conda environment but failed. It reported below:

scons: *** Two environments with different actions were specified for the same target: GDALImage.os

(action 1: /home/learndiary/miniconda3/envs/isce2_py310_gpu/bin/g++ -o GDALImage.os -c -std=c++11 -O2 -m64 -fopenmp -O3 -fPIC -pthread -Wno-unused-result -Wsign-compare -g -fwrapv -Wall -Wstrict-prototypes -fPIC -DNEEDS_F77_TRANSLATION -DF77EXTERNS_LOWERCASE_TRAILINGBAR -DNDEBUG GDALImage.cpp)
(action 2: /home/learndiary/miniconda3/envs/isce2_py310_gpu/bin/g++ -o GDALImage.os -c -std=c++11 -O2 -m64 -fopenmp -O3 -fPIC -pthread -Wno-unused-result -Wsign-compare -g -fwrapv -Wall -Wstrict-prototypes -fPIC -DGPU_ACC_ENABLED GDALImage.cpp)
File "/home/learndiary/build/isce_build/components/contrib/PyCuAmpcor/src/SConscript", line 34, in pybind11PseudoBuilder
scons: done reading SConscript files.
scons: Building targets ...
scons: *** Do not know how to make File target `install' (/home/learndiary/tools/src/isce2/install).  Stop.
scons: building terminated because of errors.

But, it seems ok install isce2 2.6.2 using cmake method with same conda environment.

It is a bug or I did something wrong?

Below is my conda environment, some package has specicalized version, they are python=3.10 numpy=1.23.1 gcc=9.4 gxx=9.4 gfortran=9.4 cudatoolkit-dev=11.4:

name: isce2_gpu
channels:
  - conda-forge
  - ehmoussi
  - defaults
dependencies:
  - _libgcc_mutex=0.1=conda_forge
  - _openmp_mutex=4.5=2_gnu
  - _sysroot_linux-64_curr_repodata_hack=3=h5bd9786_13
  - alsa-lib=1.2.8=h166bdaf_0
  - aom=3.5.0=h27087fc_0
  - atk-1.0=2.38.0=hd4edc92_1
  - attr=2.5.1=h166bdaf_1
  - attrs=22.2.0=pyh71513ae_0
  - basemap=1.3.4=py310he832c09_0
  - basemap-data=1.3.2=pyhd8ed1ab_3
  - binutils=2.36.1=hdd6e379_2
  - binutils_impl_linux-64=2.36.1=h193b22a_2
  - blosc=1.21.3=hafa529b_0
  - boost-cpp=1.78.0=h5adbc97_2
  - brotli=1.0.9=h166bdaf_8
  - brotli-bin=1.0.9=h166bdaf_8
  - brotlipy=0.7.0=py310h5764c6d_1005
  - brunsli=0.1=h9c3ff4c_0
  - bzip2=1.0.8=h7f98852_4
  - c-ares=1.18.1=h7f98852_0
  - c-blosc2=2.8.0=hf91038e_1
  - ca-certificates=2022.12.7=ha878542_0
  - cached-property=1.5.2=hd8ed1ab_1
  - cached_property=1.5.2=pyha770c72_1
  - cairo=1.16.0=ha61ee94_1014
  - certifi=2022.12.7=pyhd8ed1ab_0
  - cffi=1.15.1=py310h255011f_3
  - cfitsio=4.1.0=hd9d235c_0
  - charls=2.3.4=h9c3ff4c_0
  - charset-normalizer=3.1.0=pyhd8ed1ab_0
  - click=8.1.3=unix_pyhd8ed1ab_2
  - cloudpickle=2.2.1=pyhd8ed1ab_0
  - cmake=3.22.1=h1fce559_0
  - colorama=0.4.6=pyhd8ed1ab_0
  - contourpy=1.0.7=py310hdf3cbec_0
  - cryptography=39.0.0=py310h65dfdc0_0
  - cudatoolkit-dev=11.4.0=h5764c6d_5
  - curl=7.86.0=h7bff187_1
  - cycler=0.11.0=pyhd8ed1ab_0
  - cython=0.29.34=py310heca2aa9_0
  - cytoolz=0.12.0=py310h5764c6d_1
  - dask-core=2023.3.2=pyhd8ed1ab_0
  - dav1d=1.0.0=h166bdaf_1
  - dbus=1.13.6=h5008d03_3
  - exceptiongroup=1.1.1=pyhd8ed1ab_0
  - expat=2.5.0=hcb278e6_1
  - ffmpeg=5.1.2=gpl_h8dda1f0_106
  - fftw=3.3.10=nompi_hc118613_107
  - font-ttf-dejavu-sans-mono=2.37=hab24e00_0
  - font-ttf-inconsolata=3.000=h77eed37_0
  - font-ttf-source-code-pro=2.038=h77eed37_0
  - font-ttf-ubuntu=0.83=hab24e00_0
  - fontconfig=2.14.2=h14ed4e7_0
  - fonts-conda-ecosystem=1=0
  - fonts-conda-forge=1=0
  - fonttools=4.39.3=py310h1fa729e_0
  - freeglut=3.2.2=h9c3ff4c_1
  - freetype=2.12.1=hca18f0e_1
  - freexl=1.0.6=h166bdaf_1
  - fribidi=1.0.10=h36c2ea0_0
  - fsspec=2023.4.0=pyh1a96a4e_0
  - gcc=9.4.0=h192d537_10
  - gcc_impl_linux-64=9.4.0=h03d3576_16
  - gdal=3.5.2=py310hb7951cf_4
  - gdk-pixbuf=2.42.8=hff1cb4f_1
  - geos=3.11.0=h27087fc_0
  - geotiff=1.7.1=h4fc65e6_3
  - gettext=0.21.1=h27087fc_0
  - gfortran=9.4.0=h2018a41_10
  - gfortran_impl_linux-64=9.4.0=h0003116_16
  - ghostscript=9.54.0=h27087fc_2
  - giflib=5.2.1=h0b41bf4_3
  - git=2.39.1=pl5321ha3eba64_0
  - glib=2.74.1=h6239696_1
  - glib-tools=2.74.1=h6239696_1
  - gmp=6.2.1=h58526e2_0
  - gnutls=3.7.8=hf3e180e_0
  - grace=5.1.25=0
  - graphite2=1.3.13=h58526e2_1001
  - graphviz=6.0.2=h99bc08f_0
  - gst-plugins-base=1.21.3=h4243ec0_1
  - gstreamer=1.21.3=h25f0c4b_1
  - gstreamer-orc=0.4.33=h166bdaf_0
  - gtk2=2.24.33=h90689f9_2
  - gts=0.7.6=h64030ff_2
  - gxx=9.4.0=h192d537_10
  - gxx_impl_linux-64=9.4.0=h03d3576_16
  - h5py=3.8.0=nompi_py310h0311031_100
  - harfbuzz=6.0.0=h8e241bc_0
  - hdf4=4.2.15=h9772cbc_5
  - hdf5=1.12.2=nompi_h2386368_100
  - icu=70.1=h27087fc_0
  - idna=3.4=pyhd8ed1ab_0
  - imagecodecs=2022.9.26=py310h90cd304_3
  - imageio=2.27.0=pyh24c5eb1_0
  - imagemagick=7.1.0_55=pl5321h0d24a18_0
  - importlib-metadata=6.2.0=pyha770c72_0
  - importlib_metadata=6.2.0=hd8ed1ab_0
  - iniconfig=2.0.0=pyhd8ed1ab_0
  - jack=1.9.22=h11f4161_0
  - jasper=2.0.33=h0ff4b12_1
  - jbig=2.1=h7f98852_2003
  - jpeg=9e=h0b41bf4_3
  - json-c=0.16=hc379101_0
  - jxrlib=1.1=h7f98852_2
  - kealib=1.4.15=ha7026e8_1
  - kernel-headers_linux-64=3.10.0=h4a8ded7_13
  - keyutils=1.6.1=h166bdaf_0
  - kiwisolver=1.4.4=py310hbf28c38_1
  - krb5=1.19.3=h3790be6_0
  - lame=3.100=h166bdaf_1003
  - lazy_loader=0.2=pyhd8ed1ab_0
  - lcms2=2.14=h6ed2654_0
  - ld_impl_linux-64=2.36.1=hea4e1c9_2
  - lerc=4.0.0=h27087fc_0
  - libacl=2.3.1=ha37c62d_1
  - libaec=1.0.6=hcb278e6_1
  - libavif=0.11.1=h5cdd6b5_0
  - libblas=3.9.0=16_linux64_openblas
  - libbrotlicommon=1.0.9=h166bdaf_8
  - libbrotlidec=1.0.9=h166bdaf_8
  - libbrotlienc=1.0.9=h166bdaf_8
  - libcap=2.66=ha37c62d_0
  - libcblas=3.9.0=16_linux64_openblas
  - libclang=15.0.7=default_had23c3d_1
  - libclang13=15.0.7=default_h3e3d535_1
  - libcups=2.3.3=h3e49a29_2
  - libcurl=7.86.0=h7bff187_1
  - libdap4=3.20.6=hd7c4107_2
  - libdb=6.2.32=h9c3ff4c_0
  - libdeflate=1.14=h166bdaf_0
  - libdrm=2.4.114=h166bdaf_0
  - libedit=3.1.20191231=he28a2e2_2
  - libev=4.33=h516909a_1
  - libevent=2.1.10=h9b69904_4
  - libexpat=2.5.0=hcb278e6_1
  - libffi=3.4.2=h7f98852_5
  - libflac=1.4.2=h27087fc_0
  - libgcc-devel_linux-64=9.4.0=hd854feb_16
  - libgcc-ng=12.2.0=h65d4601_19
  - libgcrypt=1.10.1=h166bdaf_0
  - libgd=2.3.3=h18fbbfe_3
  - libgdal=3.5.2=h91cfbaa_4
  - libgfortran-ng=12.2.0=h69a702a_19
  - libgfortran5=12.2.0=h337968e_19
  - libglib=2.74.1=h606061b_1
  - libglu=9.0.0=he1b5a44_1001
  - libgomp=12.2.0=h65d4601_19
  - libgpg-error=1.46=h620e276_0
  - libiconv=1.17=h166bdaf_0
  - libidn2=2.3.4=h166bdaf_0
  - libkml=1.3.0=h37653c0_1015
  - liblapack=3.9.0=16_linux64_openblas
  - liblapacke=3.9.0=16_linux64_openblas
  - libllvm15=15.0.7=hadd5161_1
  - libnetcdf=4.8.1=nompi_h261ec11_106
  - libnghttp2=1.51.0=hdcd2b5c_0
  - libnsl=2.0.0=h7f98852_0
  - libogg=1.3.4=h7f98852_1
  - libopenblas=0.3.21=pthreads_h78a6416_3
  - libopencv=4.6.0=py310h8149549_8
  - libopus=1.3.1=h7f98852_1
  - libpciaccess=0.17=h166bdaf_0
  - libpng=1.6.39=h753d276_0
  - libpq=14.5=h72a31a5_3
  - libprotobuf=3.21.12=h3eb15da_0
  - librsvg=2.54.4=h7abd40a_0
  - librttopo=1.1.0=hf730bdb_11
  - libsanitizer=9.4.0=h79bfe98_16
  - libsndfile=1.2.0=hb75c966_0
  - libspatialite=5.0.1=hd36657c_19
  - libsqlite=3.40.0=h753d276_0
  - libssh2=1.10.0=haa6b8db_3
  - libstdcxx-devel_linux-64=9.4.0=hd854feb_16
  - libstdcxx-ng=12.2.0=h46fd767_19
  - libsystemd0=252=h2a991cd_0
  - libtasn1=4.19.0=h166bdaf_0
  - libtiff=4.4.0=h82bc61c_5
  - libtool=2.4.7=h27087fc_0
  - libudev1=253=h0b41bf4_0
  - libunistring=0.9.10=h7f98852_0
  - libuuid=2.38.1=h0b41bf4_0
  - libuv=1.44.2=h166bdaf_0
  - libva=2.17.0=h0b41bf4_0
  - libvorbis=1.3.7=h9c3ff4c_0
  - libvpx=1.11.0=h9c3ff4c_3
  - libwebp=1.2.4=h522a892_0
  - libwebp-base=1.2.4=h166bdaf_0
  - libxcb=1.13=h7f98852_1004
  - libxkbcommon=1.5.0=h79f4944_1
  - libxml2=2.10.3=hca2bb57_4
  - libzip=1.9.2=hc869a4a_1
  - libzlib=1.2.13=h166bdaf_4
  - libzopfli=1.0.3=h9c3ff4c_0
  - locket=1.0.0=pyhd8ed1ab_0
  - lz4-c=1.9.4=hcb278e6_0
  - matplotlib-base=3.7.1=py310he60537e_0
  - mpg123=1.31.3=hcb278e6_0
  - munkres=1.1.4=pyh9f0ad1d_0
  - mysql-common=8.0.32=h14678bc_0
  - mysql-libs=8.0.32=h54cf53e_0
  - ncurses=6.3=h27087fc_1
  - nettle=3.8.1=hc379101_1
  - networkx=3.1=pyhd8ed1ab_0
  - nspr=4.35=h27087fc_0
  - nss=3.89=he45b914_0
  - numpy=1.23.1=py310h53a5b5f_0
  - opencv=4.6.0=py310hff52083_8
  - openh264=2.3.1=hcb278e6_2
  - openjpeg=2.5.0=h7d73246_1
  - openmotif=2.3.8=h5d10074_3
  - openmotif-dev=2.3.8=ha770c72_3
  - openssl=1.1.1t=h0b41bf4_0
  - p11-kit=0.24.1=hc5aa10d_0
  - packaging=23.0=pyhd8ed1ab_0
  - pango=1.50.14=hd33c08f_0
  - partd=1.3.0=pyhd8ed1ab_0
  - pcre=8.45=h9c3ff4c_0
  - pcre2=10.40=hc3806b6_0
  - perl=5.32.1=2_h7f98852_perl5
  - pillow=9.2.0=py310h454ad03_3
  - pip=23.0.1=pyhd8ed1ab_0
  - pixman=0.40.0=h36c2ea0_0
  - pkg-config=0.29.2=h36c2ea0_1008
  - platformdirs=3.2.0=pyhd8ed1ab_0
  - pluggy=1.0.0=pyhd8ed1ab_5
  - pooch=1.7.0=pyha770c72_3
  - poppler=22.10.0=h92391eb_0
  - poppler-data=0.4.12=hd8ed1ab_0
  - postgresql=14.5=h5bbe9e2_3
  - proj=9.0.1=h93bde94_1
  - pthread-stubs=0.4=h36c2ea0_1001
  - pulseaudio=16.1=h4ab2085_1
  - py-opencv=4.6.0=py310hfdc917e_8
  - pybind11=2.10.4=py310hdf3cbec_0
  - pybind11-global=2.10.4=py310hdf3cbec_0
  - pycparser=2.21=pyhd8ed1ab_0
  - pyopenssl=23.1.1=pyhd8ed1ab_0
  - pyparsing=3.0.9=pyhd8ed1ab_0
  - pyproj=3.3.1=py310hf94497c_1
  - pyshp=2.1.3=pyh44b312d_0
  - pysocks=1.7.1=pyha2e5f31_6
  - pytest=7.2.2=pyhd8ed1ab_0
  - python=3.10.8=h257c98d_0_cpython
  - python-dateutil=2.8.2=pyhd8ed1ab_0
  - python_abi=3.10=3_cp310
  - pywavelets=1.4.1=py310h0a54255_0
  - pyyaml=6.0=py310h5764c6d_5
  - qt-main=5.15.6=h7acdfc8_2
  - readline=8.2=h8228510_1
  - requests=2.28.2=pyhd8ed1ab_1
  - rhash=1.4.3=h166bdaf_0
  - scikit-image=0.20.0=py310h9b08913_0
  - scipy=1.10.1=py310h8deb116_0
  - scons=4.5.2=py310hff52083_0
  - setuptools=67.6.1=pyhd8ed1ab_0
  - shapely=1.8.5=py310h5e49deb_1
  - six=1.15.0=pyh9f0ad1d_0
  - snappy=1.1.10=h9fff704_0
  - sqlite=3.40.0=h4ff8645_0
  - svt-av1=1.4.1=hcb278e6_0
  - sysroot_linux-64=2.17=h4a8ded7_13
  - tifffile=2022.10.10=pyhd8ed1ab_0
  - tiledb=2.11.3=h1e4a385_1
  - tk=8.6.12=h27826a3_0
  - tomli=2.0.1=pyhd8ed1ab_0
  - toolz=0.12.0=pyhd8ed1ab_0
  - typing-extensions=4.5.0=hd8ed1ab_0
  - typing_extensions=4.5.0=pyha770c72_0
  - tzcode=2023c=h0b41bf4_0
  - tzdata=2023c=h71feb2d_0
  - unicodedata2=15.0.0=py310h5764c6d_0
  - urllib3=1.26.15=pyhd8ed1ab_0
  - wheel=0.40.0=pyhd8ed1ab_0
  - x264=1!164.3095=h166bdaf_2
  - x265=3.5=h924138e_3
  - xcb-util=0.4.0=h166bdaf_0
  - xcb-util-image=0.4.0=h166bdaf_0
  - xcb-util-keysyms=0.4.0=h166bdaf_0
  - xcb-util-renderutil=0.3.9=h166bdaf_0
  - xcb-util-wm=0.4.1=h166bdaf_0
  - xerces-c=3.2.4=h55805fa_1
  - xkeyboard-config=2.38=h0b41bf4_0
  - xorg-fixesproto=5.0=h7f98852_1002
  - xorg-inputproto=2.3.2=h7f98852_1002
  - xorg-kbproto=1.0.7=h7f98852_1002
  - xorg-libice=1.0.10=h7f98852_0
  - xorg-libsm=1.2.3=hd9c2040_1000
  - xorg-libx11=1.6.12=h36c2ea0_0
  - xorg-libxau=1.0.9=h7f98852_0
  - xorg-libxdmcp=1.1.3=h7f98852_0
  - xorg-libxext=1.3.4=h516909a_0
  - xorg-libxfixes=5.0.3=h516909a_1004
  - xorg-libxft=2.3.4=hc534e41_1
  - xorg-libxi=1.7.10=h516909a_0
  - xorg-libxmu=1.1.3=h516909a_0
  - xorg-libxp=1.0.3=0
  - xorg-libxrender=0.9.10=h516909a_1002
  - xorg-libxt=1.1.5=h516909a_1003
  - xorg-renderproto=0.11.1=h7f98852_1002
  - xorg-xextproto=7.3.0=h0b41bf4_1003
  - xorg-xproto=7.0.31=h7f98852_1007
  - xz=5.2.6=h166bdaf_0
  - yaml=0.2.5=h7f98852_2
  - zfp=1.0.0=h27087fc_3
  - zipp=3.15.0=pyhd8ed1ab_0
  - zlib=1.2.13=h166bdaf_4
  - zlib-ng=2.0.7=h0b41bf4_0
  - zstd=1.5.2=h3eb15da_6
  - pip:
      - pulp==2.7.0
prefix: /home/learndiary/miniconda3/envs/isce2_gpu
```</div>

learndiary avatar Apr 11 '23 03:04 learndiary

I have the same error. In my case I'm compiling it under Rocky 9 (RHEL9) without an Anaconda environment and all the dependencies installed by dnf.

krasny2k5 avatar Jun 21 '23 20:06 krasny2k5