Summary: | dev-python/tlsh-4.8.2 fails to compile: tlshmodule.cpp:330:1: error: cannot convert std::nullptr_t to Py_ssize_t {aka long int} in initialization | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Thomas Bracht Laumann Jespersen <t> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | sam |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/36321 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Agostino Sarubbo
2024-03-15 08:06:08 UTC
Created attachment 887668 [details]
build.log
build log and emerge --info
gcc 13 produces a warning that looks like the same issue: gcc -fno-strict-overflow -Wsign-compare -O2 -march=x86-64 -pipe -pipe -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -UNDEBUG -I/usr/include/python3.12 -c tlshmodule.cpp -o tlshmodule.o tlshmodule.cpp:353:1: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null] 353 | }; | ^ I tried to figure out which fields in the PyTypeObject struct need to be set to 0, but the ones I could identify appear to be set properly already. I'm unsure which field is causing the issue. Check out https://github.com/breezy-team/patiencediff/pull/14 as an example and the docs I link to there. Note that C++ doesn't have designated initialisers (or didn't until C++20, rather) so it's a bit annoying there. |