-
Notifications
You must be signed in to change notification settings - Fork 164
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
dev-python/numcodecs: version bump 0.13.0 #1289
base: master
Are you sure you want to change the base?
Conversation
The reason it works when you do it manually, and not in portage probably has to do with |
Signed-off-by: Michael Schubert <[email protected]>
Signed-off-by: Michael Schubert <[email protected]>
Thanks! I was able to track it down to issues with |
I doubt |
I agree that this shouldn't make a difference, but I get the module import errors only when not filtering out this flag. I also tried changing the other flags ( With all (combinations of) flags the package builds and installs fine, but the error comes from: from numcodecs import zstd # success with filter-flags -pipe
# otherwise: OSError: ./zstd.cpython-312-x86_64-linux-gnu.so: undefined symbol: ZSTD_compressBlock_btopt |
Try with |
Exactly the same error with python_compile() {
LDFLAGS="-Wl,--no-as-needed" distutils-r1_python_compile
} |
local -x DISABLE_NUMCODECS_AVX2=1 | ||
local -x DISABLE_NUMCODECS_SSE2=1 |
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 should be conditional to CPU_FLAGS_X86_SSE2
and CPU_FLAGS_X86_AVX2
I was also very confused by zarr-developers/zarr-python#961 ... if you know more about it, maybe it would be worth sharing with upstream. They closed it since I stopped nagging them, but I assume it hasn't just evaporated. We can just reopen if it persists with I have logs from the various combinations here → zarr-developers/numcodecs#506 (comment) for some reason |
This is a draft PR for updating
numcodecs
that comes bundled withc-blosc
and the latter includeszstd
(setting aside that this shoud be unbundled)If I run:
and then, in
"${WORKDIR}/numcodecs-0.13.0-python3_12/build/lib.linux-x86_64-cpython-312/numcodecs"
, I get the following error importing a generated.so
:This is the same error that I get when I
install
the ebuild and then try to import the package.Surprisingly, manually cloning and building the package results in a functional
.so
:The
.so
created byebuild
is also much smaller than by the manual build.Any ideas why this might be? Also tagging @TheChymera who submitted the ebuild initially (likely related: zarr-developers/numcodecs#506, zarr-developers/zarr-python#961)