Closed jbathegit closed 1 month ago
Are you building the library with memory sanitization (asan)?
I was since that's my default configuration for GNU, but I can try turning that off if need be(?)
Just based on the output it might be worth disabling, then if that still doesn't work I can take a crack at it.
@jbathegit python 3.12.10 on wcoss2 does not have numpy. In order to build the python extensions, a virtualenv with python 3.12.10 and numpy, etc. will need to be created and loaded as a prerequisite.
@aerorahul thanks, but setting up something like that for Intel is a bit out of my zone of expertise, so I'd need some help to proceed down that road.
@AlexanderRichert-NOAA thanks for the tip, and it does build and run now in GNU with asan and other flags disabled, at least within ctest
. Looking at the test log, it looks like the command it ran was:
Command: "/apps/spack/cmake/3.20.2/intel/19.1.3.304/utnbptm3hrf7gppztidueu4jogfgemut/bin/cmake" "-E" "env" "PYTHONPATH=/lfs/h2/emc/obsproc/noscrub/jeff.ator/NCEPLIBS-bufr-GitHub/build6/python:/apps/prod/python-modules/3.8.6/gcc/10.2.0/lib/python3.8/site-packages:/apps/ops/prod/nco/core/prod_util.v2.0.14/ush" "/apps/spack/python/3.8.6/gcc/10.2.0/jsduzkud5ggl6jrg6lm4h7xmub5nq3ay/bin/python3.8" "/lfs/h2/emc/obsproc/noscrub/jeff.ator/NCEPLIBS-bufr-GitHub/nceplibs-bufr/python/test/test_misc.py"
but I haven't been able to figure out how to run that manually outside of ctest
. If I try to do that it just gives me a "Permission denied", which I'm still trying to chase down. But some progress at least, so thanks again for that!
I'm able to work with this now if I just stay inside the ctest build environment - thanks everyone!
@rmclaren @aerorahul @edwardhartnett @AlexanderRichert-NOAA @climbfuji @jswhit have any of you ever gotten the full NCEPLIBS-bufr including -DENABLE_PYTHON=ON to build and run properly on WCOSS2, either via the Intel or GNU compilers? If so, could you please help me figure out what I'm doing wrong.
I can't build it under Intel with python/3.12.10 because it can't find the numpy module. And if I try to build under GNU with python/3.8.6 (which is the latest version of python they have available for GNU), then I get a boatload of build diagnostics and then at runtime it can't do the imports correctly:
Any help would be appreciated, because I'm trying to chase down a runtime error in #599, which is hard to do if I can't reproduce whatever the problem is locally.