Closed barracuda156 closed 1 year ago
However, tests fail (tbh they don’t look bad to me, perhaps threshold of precision for 32-bit should be adjusted?):
It appears that you're compiling zfp in C89 mode but the compiler presumably uses the LLP64 data model, which zfp is not detecting correctly (testzfp reports "data model unknown"). One thing to try is to add the following to the CMake line:
-DZFP_INT64='long long' -DZFP_INT64_SUFFIX=ll -DZFP_UINT64='unsigned long long' -DZFP_UINT64_SUFFIX=ull
If instead you're compiling with GNU Make, then try the following
make DEFS="-DZFP_INT64='long long' -DZFP_INT64_SUFFIX=ll -DZFP_UINT64='unsigned long long' -DZFP_UINT64_SUFFIX=ull"
@lindstro Let me try, thank you!
UPD. It worked! Thanks again.
---> Testing zfp
Executing: cd "/opt/local/var/macports/build/_opt_PPCRosettaPorts_science_zfp/zfp/work/build" && DYLD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_PPCRosettaPorts_science_zfp/zfp/work/build/lib /usr/bin/make test
Running tests...
/opt/local/bin/ctest --force-new-ctest-process
Test project /opt/local/var/macports/build/_opt_PPCRosettaPorts_science_zfp/zfp/work/build
Start 1: testzfp
1/2 Test #1: testzfp .......................... Passed 1.43 sec
Start 2: testviews
2/2 Test #2: testviews ........................ Passed 0.26 sec
100% tests passed, 0 tests failed out of 2
With gcc-4.2 the build errs out if tests are turned on (without tests it builds fine):
(Example is with v. 1.0.0, but same error with master.)
With gcc-11 build completes, though with overflow warnings: