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

Fix c-blosc2 #1773

Merged
merged 12 commits into from
Apr 16, 2024
Merged

Fix c-blosc2 #1773

merged 12 commits into from
Apr 16, 2024

Conversation

Vertexwahn
Copy link
Contributor

@Vertexwahn Vertexwahn commented Apr 5, 2024

AcademySoftwareFoundation/openexr#1604 revealed that the c-blosc2 module still has some linker issues. This PR fixes those issues. This PR is an improvement of the c-blosc2 model at version 2.12.0.

In detail, missing c files were added to the c-blosc2 target. Also, textual_hdrs were reworked. Besides this cc_tests targets were introduced to make sure the whole thing works across different systems.

The defines HAVE_PLUGINS and HAVE_ZSTD were added. Without the define HAVE_PLUGINS zfp plugin is not initialized (which is required by OpenEXR).

@phaedon Maybe this fixes also some issues on your side ;). You can create a PR and add yourself as a maintainer to this module if you like. This way you will get notified if "improvements" are made or at least it gives you a chance to veto changes ;). Furthermore, the PR policy was changed in a way that a positive review of a maintainer can lead under some circumstances to a successful merge without the need to get a review of one of the "admins/repo owners"

@Vertexwahn
Copy link
Contributor Author

Need skip-url-stability-check label.

@Vertexwahn
Copy link
Contributor Author

@meteorcloudy @fmeum Can you please add the skip-url-stability-check label?

@fmeum fmeum added presubmit-auto-run Presubmit jobs will be triggered for new changes automatically without reviewer's approval skip-url-stability-check Skip the URL stability check for the PR labels Apr 10, 2024
@phaedon
Copy link
Contributor

phaedon commented Apr 11, 2024

Thanks! I confirm that this fixes all of the zfp linker issues similar to the excerpt pasted below:

bazel-out/k8-fastbuild/bin/_solib_k8/libexternal_Sc-blosc2~_Slibc-blosc2.so: error: undefined reference to 'zfp_encode_block_strided_double_4'
bazel-out/k8-fastbuild/bin/_solib_k8/libexternal_Sc-blosc2~_Slibc-blosc2.so: error: undefined reference to 'zfp_decode_partial_block_strided_double_1'
bazel-out/k8-fastbuild/bin/_solib_k8/libexternal_Sc-blosc2~_Slibc-blosc2.so: error: undefined reference to 'zfp_decode_block_strided_double_1'
bazel-out/k8-fastbuild/bin/_solib_k8/libexternal_Sc-blosc2~_Slibc-blosc2.so: error: undefined reference to 'zfp_decode_partial_block_strided_double_2'
bazel-out/k8-fastbuild/bin/_solib_k8/libexternal_Sc-blosc2~_Slibc-blosc2.so: error: undefined reference to 'zfp_decode_block_strided_double_2'
bazel-out/k8-fastbuild/bin/_solib_k8/libexternal_Sc-blosc2~_Slibc-blosc2.so: error: undefined reference to 'zfp_decode_partial_block_strided_double_3'
bazel-out/k8-fastbuild/bin/_solib_k8/libexternal_Sc-blosc2~_Slibc-blosc2.so: error: undefined reference to 'zfp_decode_block_strided_double_3'
bazel-out/k8-fastbuild/bin/_solib_k8/libexternal_Sc-blosc2~_Slibc-blosc2.so: error: undefined reference to 'zfp_decode_partial_block_strided_double_4'
bazel-out/k8-fastbuild/bin/_solib_k8/libexternal_Sc-blosc2~_Slibc-blosc2.so: error: undefined reference to 'zfp_decode_block_strided_double_4'

@Vertexwahn
Copy link
Contributor Author

I have no clue why the tests are failing. The patch file contains several cc_test targets. Seems like the patch is not applied for the test run...

@Vertexwahn
Copy link
Contributor Author

Finally green... ;)
Best bazelized c-blosc2 version ever.
Ready to merge!

@Vertexwahn
Copy link
Contributor Author

@fmeum @meteorcloudy Ready to merge!

fmeum
fmeum previously approved these changes Apr 12, 2024
@fmeum fmeum enabled auto-merge (squash) April 12, 2024 22:34
@Vertexwahn
Copy link
Contributor Author

@meteorcloudy Seems that I need a review from you...

auto-merge was automatically disabled April 13, 2024 18:34

Head branch was pushed to by a user without write access

@bazel-io bazel-io dismissed fmeum’s stale review April 13, 2024 18:34

Require module maintainers' approval for newly pushed changes.

@Vertexwahn Vertexwahn requested a review from fmeum April 15, 2024 08:03
@meteorcloudy meteorcloudy merged commit 9b97067 into bazelbuild:main Apr 16, 2024
33 checks passed
@Vertexwahn Vertexwahn deleted the fix-c-blosc2 branch May 5, 2024 19:26
aiuto pushed a commit to aiuto/bazel-central-registry that referenced this pull request Jun 3, 2024
AcademySoftwareFoundation/openexr#1604 revealed
that the c-blosc2 module still has some linker issues. This PR fixes
those issues. This PR is an improvement of the c-blosc2 model at version
2.12.0.

In detail, missing c files were added to the c-blosc2 target. Also,
textual_hdrs were reworked. Besides this cc_tests targets were
introduced to make sure the whole thing works across different systems.

The defines `HAVE_PLUGINS` and `HAVE_ZSTD` were added. Without the
define `HAVE_PLUGINS` zfp plugin is not initialized (which is required
by OpenEXR).

@phaedon Maybe this fixes also some issues on your side ;). You can
create a PR and add yourself as a maintainer to this module if you like.
This way you will get notified if "improvements" are made or at least it
gives you a chance to veto changes ;). Furthermore, the PR policy was
changed in a way that a positive review of a maintainer can lead under
some circumstances to a successful merge without the need to get a
review of one of the "admins/repo owners"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
presubmit-auto-run Presubmit jobs will be triggered for new changes automatically without reviewer's approval skip-url-stability-check Skip the URL stability check for the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants