-
Notifications
You must be signed in to change notification settings - Fork 568
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
Fix GDAL and bump version of DGGRID7 #6740
Conversation
D/DGGRID7/build_tarballs.jl
Outdated
cd $WORKSPACE/srcdir/DGGRID | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_BUILD_TYPE=Release .. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -37,4 +41,4 @@ dependencies = [ | |||
] | |||
|
|||
# Build the tarballs, and possibly a `build.jl` as well. | |||
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; preferred_gcc_version = v"8.1.0") | |||
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; preferred_gcc_version=v"8.1.0", julia_compat="v1.6.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To change the julia_compat
you must change the version number: #2763
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has still to be addressed 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
julia_compat="v1.6.0"
fixed in 9c5c12d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version number of the packag, as explained in the non-negotiable requirements in issue #2763 linked above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. See f9bf39b
Sounds like you have to specify the compat bound with GDAL. |
Hi, thanks for the preps, much appreciated. Updating DGGRID would be great. They changed the build to cmake, and a GDAL bump to at least 3.3+ would also be great. The errors in the examples might point to linking to an outdated GDAL version. How can I help with something? |
Co-authored-by: Mosè Giordano <[email protected]>
Thanks for the comments! I just set GDAL version to v301.600.20, because file |
if [[ "${target}" == x86_64-linux-musl ]]; then | ||
# Remove libexpat to avoid it being picked up by mistake | ||
rm /usr/lib/libexpat.so* | ||
fi | ||
make -j${nproc} CCOMP="${CC}" CPPCOMP="${CXX}" | ||
cp "apps/dggrid/dggrid${exeext}" "${bindir}/." | ||
install -Dvm 755 "src/apps/dggrid/dggrid${exeext}" "${bindir}/dggrid${exeext}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I presume
install -Dvm 755 "src/apps/dggrid/dggrid${exeext}" "${bindir}/dggrid${exeext}" | |
make install |
would it now that there's a proper build system? I haven't tried it though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is no make install.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes:
/usr/bin/cmake -E cmake_progress_start /workspace/srcdir/DGGRID/build/CMakeFiles 0
make: *** No rule to make target 'install'. Stop.
@@ -37,4 +41,4 @@ dependencies = [ | |||
] | |||
|
|||
# Build the tarballs, and possibly a `build.jl` as well. | |||
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; preferred_gcc_version = v"8.1.0") | |||
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; preferred_gcc_version=v"8.1.0", julia_compat="v1.6.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has still to be addressed 🙂
Co-authored-by: Mosè Giordano <[email protected]>
Co-authored-by: Mosè Giordano <[email protected]>
Hi @danlooo , Kevin Sahr has updated the latest DGGRID in his source tree a lot and it is great to now use his GtiHub. I saw your updates. Maybe try already version 7.8 (https://github.com/sahrk/DGGRID/releases/tag/v7.8), I am in contact with him occasionally, I am also trying to submit build a conda package and provide the occasional pull request to the DGGRID repo to improve these types of making it build on different distribution systems. Great to see your activity. If it helps:
I am working with Kevin to make the DGGRID native original version to be usable via C++ bindings eventually, that might also be an effort that could be valuable for DGGS.jl. |
Unfortunately, DGGRID v7.8 does not compile:
See dggrid_v7.8.log and this branch for details. I encountered similar erros while working on julia bindings in project ddgrid-julia. |
Whoa, you are already on the way, amazing. I'll see if I can reproduce this and I will send something to Kevin. |
This PR aims to fix a version mismatch of DGGRID7_jll and GDAL_jll by updating DGGRID7_jll to the latest official release 7.7 of DGGRID that works with BinaryBuilder. @allixender what do you think?
Error
Executing in docker image julia:1.8.5-bullseye :
results in error
Indeed, dggrid requires libgdal.so.28, but package GDAL_jll provides libgdal.so.32.3.6.2:
Fix
This PR uses the latest official release 7.7 of DGGRID that works with BinaryBuilder.
Version 7.8 of DGGRID results in error
/workspace/srcdir/DGGRID/src/lib/dglib/lib/DgZOrderRF.cpp:96:24: error: expected ‘)’ before ‘PRIx64‘
Test
julia build_tarballs.jl successed to run on a local Linux machine.
Furthermore, products/DGGRID7.v0.9.0.x86_64-linux-gnu-cxx11.tar.gz was tested by integration test doexamples.sh. Exit code was 0, but output files still contain these errors: