JCSDA / spack-stack

Creative Commons Zero v1.0 Universal
27 stars 48 forks source link

wgrib2 build failure on azure #569

Closed ulmononian closed 1 year ago

ulmononian commented 1 year ago

Describe the bug wgrib2@2.0.8 (and 3.1.1) fails to build on paralleworks azure as a part of spack-stack/1.3.1 (intel).

To Reproduce


git clone --recursive -b release/1.3.1 https://github.com/NOAA-EMC/spack-stack.git
cd spack-stack

module unuse /opt/cray/craype/default/modulefiles
module unuse /opt/cray/modulefiles
export PATH="${PATH}:/contrib/spack-stack/apps/utils/bin"
module use /contrib/spack-stack/modulefiles/core
module load miniconda/3.9.12
module load mysql/8.0.31

source ./setup.sh

spack stack create env --site noaa-azure --template unified-dev --name unified-env
# comment out clang and gcc in envs/unified-env/spack.yaml
spack env activate envs/unified-env

spack concretize
spack install  

OR

spack install --add --verbose wgrib2@2.0.8%intel

Resultant error is:

==> wgrib2: Executing phase: 'build'
==> [2023-05-08-16:15:52.930840] 'make' '-j1'
make: *** No targets specified and no makefile found.  Stop.
==> Error: ProcessError: Command exited with status 2:
    'make' '-j1'

1 error found in build log:
     19    ==> [2023-05-08-16:15:52.097171] FILTER FILE: makefile [replacing "^USE_IPOLATES=.*"]
     20    ==> [2023-05-08-16:15:52.291372] FILTER FILE: makefile [replacing "^DISABLE_TIMEZONE=.*"]
     21    ==> [2023-05-08-16:15:52.479990] FILTER FILE: makefile [replacing "^DISABLE_ALARM=.*"]
     22    ==> [2023-05-08-16:15:52.672032] FILTER FILE: makefile [replacing "^MAKE_FTN_API=.*"]
     23    ==> wgrib2: Executing phase: 'build'
     24    ==> [2023-05-08-16:15:52.930840] 'make' '-j1'
  >> 25    make: *** No targets specified and no makefile found.  Stop.

Oddly enough, xcb-proto fails for a similar reason: "no makefile found". I haven't seen this error before, and wgrib2 installs fine on gcp/aws.

climbfuji commented 1 year ago

Can you try to use 3.1.1 please? We are also seeing build errors for 2.0.8 on hercules and one other platform.

climbfuji commented 1 year ago

Can you try to use 3.1.1 please? We are also seeing build errors for 2.0.8 on hercules and one other platform.

Scrap that, I just saw that you mentioned 3.1.1 failed as well.

climbfuji commented 1 year ago

@climbfuji was able to build wgrib2@2.0.8 on Azure with https://github.com/JCSDA/spack-stack/pull/725