Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 885633 - dev-python/shapely-2.0.0 - src/ufuncs.c: error: incompatible function pointer types initializing PyUFuncGenericFunction (aka void
Summary: dev-python/shapely-2.0.0 - src/ufuncs.c: error: incompatible function pointer...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: 3D Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-12-12 19:23 UTC by Toralf Förster
Modified: 2023-12-04 07:32 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.15 KB, text/plain)
2022-12-12 19:24 UTC, Toralf Förster
Details
dev-python:shapely-2.0.0:20221212-184111.log (dev-python:shapely-2.0.0:20221212-184111.log,17.85 KB, text/plain)
2022-12-12 19:24 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,126.41 KB, text/plain)
2022-12-12 19:24 UTC, Toralf Förster
Details
environment (environment,144.14 KB, text/plain)
2022-12-12 19:24 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,702 bytes, application/x-bzip)
2022-12-12 19:24 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,34.51 KB, application/x-bzip)
2022-12-12 19:24 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,34.28 KB, application/x-bzip)
2022-12-12 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-12-12 19:23:59 UTC
too long lines were shrinked:

creating build/lib.linux-x86_64-cpython-310/shapely
clang -shared -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int build/temp.linux-x86_64-cpython-310/shapely/_geos.o -L/usr/lib64 -L/usr/lib64 -lgeos_c -o build/lib.linux-x86_64-cpy
clang -Wno-unused-result -Wsign-compare -DNDEBUG -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -fPIC -I./src -I/usr/include -I/usr/include/python3.10 -I/usr/lib/python3.10/site-packages/numpy/core/include -c src/lib.c -o build/temp.linux-x8
clang -Wno-unused-result -Wsign-compare -DNDEBUG -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -fPIC -I./src -I/usr/include -I/usr/include/python3.10 -I/usr/lib/python3.10/site-packages/numpy/core/include -c src/pygeom.c -o build/temp.linux
clang -Wno-unused-result -Wsign-compare -DNDEBUG -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -fPIC -I./src -I/usr/include -I/usr/include/python3.10 -I/usr/lib/python3.10/site-packages/numpy/core/include -c src/strtree.c -o build/temp.linu
clang -Wno-unused-result -Wsign-compare -DNDEBUG -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -fPIC -I./src -I/usr/include -I/usr/include/python3.10 -I/usr/lib/python3.10/site-packages/numpy/core/include -c src/ufuncs.c -o build/temp.linux
src/ufuncs.c:212:47: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Werro
static PyUFuncGenericFunction Y_b_funcs[1] = {&Y_b_func};
                                              ^~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-j4_test-20221211-060004

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.6
Python 3.10.9
Available Rust versions:
  [1]   rust-bin-1.65.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 11.0.17_p8 [openjdk-bin-11]
Available Java Virtual Machines:
  [1]   openjdk-bin-11  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):

  HEAD of ::gentoo
commit 6b773a7dfc9d53f90b0c90dc0d6b97e33284d22d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 12 17:16:52 2022 +0000

    2022-12-12 17:16:52 UTC

emerge -qpvO dev-python/shapely
[ebuild  N    ] dev-python/shapely-2.0.0  USE="-doc -test" PYTHON_TARGETS="python3_10 -python3_8 -python3_9 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2022-12-12 19:24:00 UTC
Created attachment 842179 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-12-12 19:24:01 UTC
Created attachment 842181 [details]
dev-python:shapely-2.0.0:20221212-184111.log
Comment 3 Toralf Förster gentoo-dev 2022-12-12 19:24:02 UTC
Created attachment 842183 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-12-12 19:24:04 UTC
Created attachment 842185 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-12-12 19:24:04 UTC
Created attachment 842187 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-12-12 19:24:05 UTC
Created attachment 842189 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-12-12 19:24:06 UTC
Created attachment 842191 [details]
temp.tar.bz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-04 07:17:17 UTC
Pretty sure this got fixed since...
Comment 9 Larry the Git Cow gentoo-dev 2023-12-04 07:32:50 UTC
The bug has been referenced in the following commit(s):

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

commit 35e6eb22a520d6e8ea2148f6d92b9b48083f7a1f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-12-04 07:18:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-04 07:32:14 +0000

    dev-python/shapely: fix modern c pointer types
    
    Bug: https://bugs.gentoo.org/885633
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/shapely/files/shapely-2.0.2-c99.patch | 19 +++++++++
 dev-python/shapely/shapely-2.0.2-r1.ebuild       | 50 ++++++++++++++++++++++++
 2 files changed, 69 insertions(+)