Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874303 - app-i18n/nkf-2.1.5 - nkf.c: error: incompatible pointer to integer conversion initializing Py_ssize_t (aka long) with an expressio
Summary: app-i18n/nkf-2.1.5 - nkf.c: error: incompatible pointer to integer conversion...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: CJK Team
URL:
Whiteboard: fixed in 2.1.5-r1
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-10-02 19:24 UTC by Toralf Förster
Modified: 2024-10-27 18:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.56 KB, text/plain)
2022-10-02 19:24 UTC, Toralf Förster
Details
app-i18n:nkf-2.1.5:20221002-190359.log (app-i18n:nkf-2.1.5:20221002-190359.log,5.30 KB, text/plain)
2022-10-02 19:24 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,30.35 KB, text/plain)
2022-10-02 19:24 UTC, Toralf Förster
Details
environment (environment,157.00 KB, text/plain)
2022-10-02 19:24 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,9.92 KB, application/x-bzip)
2022-10-02 19:24 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-10-02 19:24:53 UTC
                             ^~~~~~~~~~~~
/usr/include/python3.10/bytesobject.h:35:55: note: passing argument to parameter here
PyAPI_FUNC(PyObject *) PyBytes_FromString(const char *);
                                                      ^
nkf.c:202:3: error: incompatible pointer to integer conversion initializing 'Py_ssize_t' (aka 'long') with an expression of type 'void *' [-Wint-conversion]
  NULL,
  ^~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-j4-20221002-135637

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 

php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit 4058efe5689d25ff9c5ad4a09edc5b638a464056
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Oct 2 18:16:54 2022 +0000

    2022-10-02 18:16:54 UTC

emerge -qpvO app-i18n/nkf
[ebuild  N    ] app-i18n/nkf-2.1.5  USE="python -perl" L10N="-ja" PYTHON_TARGETS="python3_10 -python3_8 -python3_9"
Comment 1 Toralf Förster gentoo-dev 2022-10-02 19:24:54 UTC
Created attachment 815938 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-02 19:24:55 UTC
Created attachment 815941 [details]
app-i18n:nkf-2.1.5:20221002-190359.log
Comment 3 Toralf Förster gentoo-dev 2022-10-02 19:24:56 UTC
Created attachment 815944 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-02 19:24:58 UTC
Created attachment 815947 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-02 19:24:59 UTC
Created attachment 815950 [details]
etc.portage.tar.bz2
Comment 6 Larry the Git Cow gentoo-dev 2022-10-04 05:07:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7838f82889905b9bb599a551b8ed2a89a7181a0

commit d7838f82889905b9bb599a551b8ed2a89a7181a0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-04 05:00:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-04 05:07:12 +0000

    app-i18n/nkf: fix build w/ Clang 15
    
    Closes: https://bugs.gentoo.org/874303
    Signed-off-by: Sam James <sam@gentoo.org>

 .../nkf/files/nkf-2.1.5-python-ssize_t-deux.patch  |  45 ++++++++
 app-i18n/nkf/files/nkf-2.1.5-python-ssize_t.patch  |  71 +++++++++++++
 app-i18n/nkf/nkf-2.1.5-r1.ebuild                   | 117 +++++++++++++++++++++
 3 files changed, 233 insertions(+)