Closed TotoGaz closed 10 months ago
@Algiane @tbeltzun I'm sorry I had to revert your PR https://github.com/GEOS-DEV/thirdPartyLibs/pull/243: our policy is that geos
always points to the HEAD of the TPL, which was not the case since https://github.com/GEOS-DEV/GEOS/pull/2721/ is not merged. PR https://github.com/GEOS-DEV/thirdPartyLibs/pull/243 should not have been merged.
As a result, anyone cloning both geos
and the TPLs would not be able to build. Furthermore, it was preventing any other upgrade of the TPL.
I've reopened the current PR (#248), I've reopened the issues that were closed with the previous PR, and I updated https://github.com/GEOS-DEV/GEOS/pull/2721 with the new TPL tag so everything should be ready on your side (no additional work I hope). Thank you for your understanding!
Hello @TotoGaz ,
Thanks for the revert and the feedback: I also realized that with this PR the compilation of Silo fails when hdf5 is built in Debug mode, at least on OSX (the hdf5 library is named libhdf5_debug
and Silo doesn't find it).
I will try to fix this as soon as possible and to flag the PR as ready when it will be done (I need to free up some time to get back on Geos ;-) ).
Best
In last commits, we:
switch to RelWithDebInfo
compilation for hdf5
if user asks for Debug
mode: it is a workaround to allow Silo
's Autogen
script to find the hdf5
library (see this issue ). Note that before this PR, hdf5
was always build in Release
mode.
Once the implementation of Silo's
build with CMake
will be ready and released, it will be possible to link with the libhdf5_debug
library;
implicit declaration of function 'zfp_init_zfp'
(and missing semi-colons) when building Silo'
s release 4.11 with Clang
(see closed issue). For now, I have added a -w
flag to compiler flags if Clang
is detected (prior this PR, when building hdf5
using Autotools
, this flag was automatically forwarded inside the HDF5_C_FLAGS
variable). It allows to build Silo
on all the architectures covered by the current ci and on OSX.
Such a fix is not very satisfying (it probably doesn't work with Clang on windows and we may have issues with other compilers or on exotics architectures): as the compilation errors are solved in Silo's release 4.11.1
. I will propose an upgrade to this latter and the removal of the conditional adding of -w
flag in another PR (once the current one will be merged).Hi @TotoGaz ,
Thanks, I will approve the current PR asap!
From the TPL side I think that everything is OK but there are still some issues when building Geos in Debug with Cuda on Ubuntu (we cannot remove the "ready to be merged" flag as Cuda jobs are not launched without this flag).
Best
Note that we could alternatively try to build silo with --enabled-shared
instead of adding a -fPIC
flag: this is reserved for a following PR.
Hi @TotoGaz ,
I think that both PR are ready to be merged now :
the current branch builds the TPLs without errors for the ci and on OSX.
Thank you by advance for your help to merge this work. Best,
This PR avoids the spurious detection of the
NDEBUG
compilation flag byCMake
when importing thehdf5
package.As a side-effect, it will allow to test the
GEOS
asserts in github-ci configs running inDebug
mode.See:
GEOS
issue https://github.com/GEOS-DEV/GEOS/issues/2631hdf5
issue https://github.com/HDFGroup/hdf5/issues/3526#issuecomment-1719664682I initially proposed this PR from a fork of the
TPL
s but the ci fail due to missing authorization to connect to DockerHub. Previous discussion is available in the initial PR.Reverts GEOS-DEV/thirdPartyLibs#247 which was reverting https://github.com/GEOS-DEV/thirdPartyLibs/pull/243
closes https://github.com/GEOS-DEV/GEOS/issues/2631 Relates to https://github.com/GEOS-DEV/GEOS/pull/2721/