Bug 2226395

Summary: rdma-core: FTBFS in Fedora rawhide/f39: rdma-core-46.0/redhat-linux-build/pyverbs/cq.c:7566:18: error: redefinition of '__Pyx_Enum_ibv_wc_status_to_py'
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: rdma-coreAssignee: Honggang LI <honli>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: dledford, honli, jarodwilson, kheib, mschmidt, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2168842, 2231791    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2023-07-25 20:03:09 UTC
rdma-core failed to build from source in Fedora rawhide/f39

https://koji.fedoraproject.org/koji/taskinfo?taskID=103702379


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Please fix rdma-core at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
rdma-core will be orphaned. Before branching of Fedora 40,
rdma-core will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2023-07-25 20:03:16 UTC
Created attachment 1979564 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2023-07-25 20:03:20 UTC
Created attachment 1979565 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2023-07-25 20:03:23 UTC
Created attachment 1979566 [details]
state.log

Comment 4 Petr Pisar 2023-07-27 06:36:19 UTC
From build.log:

FAILED: pyverbs/CMakeFiles/cq.cpython-312-x86_64-linux-gnu.dir/cq.c.o 
/usr/bin/gcc -Dcq_cpython_312_x86_64_linux_gnu_EXPORTS -I/builddir/build/BUILD/rdma-core-46.0/redhat-linux-build/include -I/usr/include/libnl3 -I/usr/include/drm -I/usr/include/python3.12 -O2 -flto=auto -ffat-l
to-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-pr
otector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wa
ll -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -Wformat=2 -Wcast-function-type -Wformat-nonliteral -Wdate-time -Wnested-externs -Wshadow -Wstrict-
prototypes -Wold-style-definition -Wredundant-decls -DNDEBUG -std=gnu11 -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_
FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64   -mtune=generic -fasynchronous-unwind-tabl
es -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings
 -Wformat=2 -Wcast-function-type -Wformat-nonliteral -Wdate-time -Wnested-externs -Wshadow -Wstrict-prototypes -Wold-style-definition -Wredundant-decls -fPIC -fno-strict-aliasing -Wno-unused-function -Wno-redun
dant-decls -Wno-shadow -Wno-cast-function-type -Wno-implicit-fallthrough -Wno-unknown-warning -Wno-unknown-warning-option -Wno-deprecated-declarations  -fno-var-tracking-assignments -MD -MT pyverbs/CMakeFiles/c
q.cpython-312-x86_64-linux-gnu.dir/cq.c.o -MF pyverbs/CMakeFiles/cq.cpython-312-x86_64-linux-gnu.dir/cq.c.o.d -o pyverbs/CMakeFiles/cq.cpython-312-x86_64-linux-gnu.dir/cq.c.o -c /builddir/build/BUILD/rdma-core-46.0/redhat-linux-build/pyverbs/cq.c
/builddir/build/BUILD/rdma-core-46.0/redhat-linux-build/pyverbs/cq.c:7566:18: error: redefinition of '__Pyx_Enum_ibv_wc_status_to_py'
 7566 | static PyObject *__Pyx_Enum_ibv_wc_status_to_py(enum ibv_wc_status __pyx_v_c_val) {
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/rdma-core-46.0/redhat-linux-build/pyverbs/cq.c:5653:18: note: previous definition of '__Pyx_Enum_ibv_wc_status_to_py' with type 'PyObject *(enum ibv_wc_status)' {aka 'struct _object *(enum ibv_wc_status)'}
 5653 | static PyObject *__Pyx_Enum_ibv_wc_status_to_py(enum ibv_wc_status __pyx_v_c_val) {
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


A difference between passing and failing build roots is at <https://koschei.fedoraproject.org/build/15862435>. An replacement of python3-Cython-0.29.35-2.fc39 with python3-cython-3.0.0-1.fc39 looks suspicious.

Comment 5 Fedora Release Engineering 2023-08-16 08:04:34 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.