Open mbanck opened 3 years ago
I've fixed it like that, not sure whether that's the right fix:
--- ./include/libint2/boys.h.orig 2020-10-11 23:15:59.685939261 +0200
+++ ./include/libint2/boys.h 2020-10-11 23:16:08.674430894 +0200
@@ -1288,7 +1288,7 @@
// get memory
void* result;
- int status = posix_memalign(&result, std::max(sizeof(Real), 32ul), (mmax_ - mmin_ + 1) * cheb_table_nintervals * ORDERp1 * ORDERp1 * sizeof(Real));
+ int status = posix_memalign(&result, std::max(sizeof(Real), std::size_t(32)), (mmax_ - mmin_ + 1) * cheb_table_nintervals * ORDERp1 * ORDERp1 * sizeof(Real));
if (status != 0) {
if (status == EINVAL)
throw std::logic_error(
On openSUSE i586, a simple program:
#include <libint2.hpp>
int main(){return 0;}
fails with the same error.
@junghans in case you patched it up somehow, does the testsuite then actually run on 32bit on openSUSE?
Oh, I see you dropped 32bit, ok
The test suite fails with:
make[1]: *** No rule to make target '-lint2', needed by 'test'. Stop.
[22679s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/libint-2.6.0/tests/eri'
[22679s] make: *** [Makefile:107: check] Error 1
Right, I am running it like this, I guess I had the same issue:
$(MAKE) -k check LD_LIBRARY_PATH=$(CURDIR)/lib/.libs
Trying to run
make check
on a 32bit systems fails to build the test programs:See e.g. https://buildd.debian.org/status/fetch.php?pkg=libint2&arch=armhf&ver=2.6.0-2&stamp=1579049562&raw=0 or https://buildd.debian.org/status/fetch.php?pkg=libint2&arch=i386&ver=2.6.0-2&stamp=1579037869&raw=0 for the full build log.