Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913226 - Python-3.11.5 compiling fails with "Failed to build some stdlib modules" Failed to build these modules: _sqlite3
Summary: Python-3.11.5 compiling fails with "Failed to build some stdlib modules" Fail...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-29 20:52 UTC by Hubert SCHMITT
Modified: 2023-08-30 07:16 UTC (History)
0 users

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


Attachments
Build log + emerge --info '=dev-lang/python-3.11.5::gentoo' (file_913226.txt,22.57 KB, text/plain)
2023-08-29 20:52 UTC, Hubert SCHMITT
Details
complete build log (build.log,203.10 KB, text/plain)
2023-08-29 21:15 UTC, Hubert SCHMITT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hubert SCHMITT 2023-08-29 20:52:02 UTC
Created attachment 869008 [details]
Build log + emerge --info '=dev-lang/python-3.11.5::gentoo'

Had same issue with python-3.11.4 before last sync.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-29 20:53:24 UTC
Please attach the full, untruncated build.log.
Comment 2 Hubert SCHMITT 2023-08-29 21:15:31 UTC
Created attachment 869009 [details]
complete build log
Comment 3 Hubert SCHMITT 2023-08-29 21:17:37 UTC
Comment on attachment 869009 [details]
complete build log

this part is maybe the problem :
/var/tmp/portage/dev-lang/python-3.11.5/work/Python-3.11.5/Modules/_sqlite/connection.c: In function 'serialize_impl':
/var/tmp/portage/dev-lang/python-3.11.5/work/Python-3.11.5/Modules/_sqlite/connection.c:2105:26: error: 'SQLITE_SERIALIZE_NOCOPY' undeclared (first use in this function)
 2105 |     unsigned int flags = SQLITE_SERIALIZE_NOCOPY;
      |                          ^~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-lang/python-3.11.5/work/Python-3.11.5/Modules/_sqlite/connection.c:2105:26: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/dev-lang/python-3.11.5/work/Python-3.11.5/Modules/_sqlite/connection.c:2109:26: error: implicit declaration of function 'sqlite3_serialize'; did you mean 'sqlite3_strlike'? [-Werror=implicit-function-declaration]
 2109 |     data = (const char *)sqlite3_serialize(self->db, name, &size, flags);
      |                          ^~~~~~~~~~~~~~~~~
      |                          sqlite3_strlike
/var/tmp/portage/dev-lang/python-3.11.5/work/Python-3.11.5/Modules/_sqlite/connection.c: In function 'deserialize_impl':
/var/tmp/portage/dev-lang/python-3.11.5/work/Python-3.11.5/Modules/_sqlite/connection.c:2168:19: warning: comparison is always false due to limited range of data type [-Wtype-limits]
 2168 |     if (data->len > 9223372036854775807) {  // (1 << 63) - 1
      |                   ^
/var/tmp/portage/dev-lang/python-3.11.5/work/Python-3.11.5/Modules/_sqlite/connection.c:2179:32: error: 'SQLITE_DESERIALIZE_FREEONCLOSE' undeclared (first use in this function)
 2179 |     const unsigned int flags = SQLITE_DESERIALIZE_FREEONCLOSE |
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-lang/python-3.11.5/work/Python-3.11.5/Modules/_sqlite/connection.c:2180:32: error: 'SQLITE_DESERIALIZE_RESIZEABLE' undeclared (first use in this function)
 2180 |                                SQLITE_DESERIALIZE_RESIZEABLE;
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-lang/python-3.11.5/work/Python-3.11.5/Modules/_sqlite/connection.c:2184:10: error: implicit declaration of function 'sqlite3_deserialize'; did you mean 'sqlite3_initialize'? [-Werror=implicit-function-declaration]
 2184 |     rc = sqlite3_deserialize(self->db, name, buf, size, size, flags);
      |          ^~~~~~~~~~~~~~~~~~~
      |          sqlite3_initialize
cc1: some warnings being treated as errors
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-29 21:28:18 UTC
1. What version of dev-db/sqlite is installed?
2. Do you have a stale copy of it in /usr/local?
Comment 5 Hubert SCHMITT 2023-08-29 21:54:40 UTC
Installed version of dev-db/sqlite is  3.42.0 atm.

You're right, i found some old sqlite* files in /usr/local/lib ands /usr/local/include, after removing them compiling dev-lang/python is ok.

Was not a bug, was my bad.  Many thanks for your help.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-30 07:16:57 UTC
(In reply to Hubert SCHMITT from comment #5)
> Installed version of dev-db/sqlite is  3.42.0 atm.
> 
> You're right, i found some old sqlite* files in /usr/local/lib ands
> /usr/local/include, after removing them compiling dev-lang/python is ok.
> 
> Was not a bug, was my bad.  Many thanks for your help.

:)