Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python bindings fail to build in current release #68

Open
chuckatkins opened this issue Mar 10, 2021 · 3 comments
Open

Python bindings fail to build in current release #68

chuckatkins opened this issue Mar 10, 2021 · 3 comments

Comments

@chuckatkins
Copy link

chuckatkins commented Mar 10, 2021

The SWIG python bindings fail with the following error:

[build/v2.1.11.1]$ cmake -DBUILD_PYTHON_WRAPPER=ON ../../source/v2.1.11.1
...
[build/v2.1.11.1]$ make
...
[ 97%] Building CXX object swig/CMakeFiles/pysz.dir/CMakeFiles/pysz.dir/pyszPYTHON_wrap.cxx.o
In file included from /home/tmpuser/sz/build/swig/CMakeFiles/pysz.dir/pyszPYTHON_wrap.cxx:2844:0:
/home/tmpuser/sz/source/swig/pysz.h: In member function ‘exafelSZ_params* ExaFELConfigBuilder::build()’:
/home/tmpuser/sz/source/swig/pysz.h:90:13: error: ‘exafelSZ_params’ has no member named ‘peaks’
     params->peaks = new uint8_t [peaks.size()];
             ^
/home/tmpuser/sz/source/swig/pysz.h:92:59: error: ‘exafelSZ_params’ has no member named ‘peaks’
     std::copy(std::begin(peaks), std::end(peaks), params->peaks);
                                                           ^
/home/tmpuser/sz/source/swig/pysz.h: In static member function ‘static void ExaFELConfigBuilder::free(exafelSZ_params*)’:
/home/tmpuser/source/swig/pysz.h:108:22: error: ‘exafelSZ_params’ has no member named ‘peaks’
     delete[] params->peaks;
                      ^
make[2]: *** [swig/CMakeFiles/pysz.dir/CMakeFiles/pysz.dir/pyszPYTHON_wrap.cxx.o] Error 1
make[1]: *** [swig/CMakeFiles/pysz.dir/all] Error 2
make: *** [all] Error 2
[build/v2.1.11.1]$ 
@robertu94
Copy link
Collaborator

robertu94 commented Mar 17, 2021

@chuckatkins this was fixed in commit 56e7b23. Please try the tip of master. I'll follow up with Sheng about long term solutions.

You may also be interested in the LibPressio python bindings for SZ. I wrote both of them, but the libpressio python bindings are faster, safer in some edge cases, and support other compressors, and are easier to maintain.

@chuckatkins
Copy link
Author

Do you know what versions are affected by the bug? I'd like to place a conflict in the spack package for conflicts("+python", when="@known.broken.vers").

@robertu94
Copy link
Collaborator

The commit that broke things is the one that created 2.1.11.1, and I checked all of the versions going back to 2.0.2.0 and none of them broke things. @ me on the PR to spack, and I will approve the conflicts("+python", when="@2.1.11.1") as a maintainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants