Bug 2099182 - F37FailsToInstall: uhd
Summary: F37FailsToInstall: uhd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: uhd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2098866
Blocks: PYTHON3.11 F37FTBFS F37FailsToInstall 2098711 2098713 2098714 2098715 2098716 2098717 2098718
TreeView+ depends on / blocked
 
Reported: 2022-06-20 09:44 UTC by Miro Hrončok
Modified: 2022-06-21 14:15 UTC (History)
2 users (show)

Fixed In Version: uhd-4.2.0.0-3.fc37
Clone Of:
Environment:
Last Closed: 2022-06-21 14:01:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2022-06-20 09:44:23 UTC
Hello,

Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (mhroncok).

Your package (uhd) Fails To Install in Fedora 37:

can't install uhd:
  - nothing provides python(abi) = 3.10 needed by uhd-4.2.0.0-2.fc37.x86_64
  
If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.


If you don't react accordingly to the policy for FTBFS/FTI bugs (https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/), your package may be orphaned in 8+ weeks.


P.S. The data was generated solely from koji buildroot, so it might be newer than the latest compose or the content on mirrors. To reproduce, use the koji/local repo only, e.g. in mock:

    $ mock -r fedora-37-x86_64 --disablerepo='*' --enablerepo=local install uhd


P.P.S. If this bug has been reported in the middle of upgrading multiple dependent packages, please consider using side tags: https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/#updating-inter-dependent-packages

Thanks!

Comment 1 Miro Hrončok 2022-06-20 10:10:42 UTC
This bugzilla is likely a fallout from the Python 3.11 rebuild.

If your package (or some of the dependencies it has) failed to rebuild during the Python 3.11 rebuild, they now fail to install. To fix this, packages need to be rebuilt in Rawhide.

We will slowly triage the bugzillas, but we'd appreciate your help.

If you know this is blocked by an existing reported build failure or another package not yet rebuilt with Python 3.11, please mark it as such by using the "Depends On"/"Blocks" bugzilla fields. That will help us determine what failures to prioritize.

If this is not Python 3.11 related, please remove the PYTHON3.11 blocking tracker.

Thank you and sorry for the inconvenience. Let me know if you need any help.

Comment 2 Jaroslav Škarvada 2022-06-20 20:49:04 UTC
Waiting for python-cheetah.

Comment 3 Miro Hrončok 2022-06-21 11:40:46 UTC
May be a problem in pybind11:

[ 59%] Building CXX object lib/CMakeFiles/uhd.dir/usrp/usrp2/usrp2_iface.cpp.o
cd /builddir/build/BUILD/uhd-4.2.0.0/host/redhat-linux-build/lib && /usr/bin/g++ -DBOOST_ASIO_DISABLE_STD_EXPERIMENTAL_STRING_VIEW -DBOOST_ASIO_DISABLE_STD_STRING_VIEW -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_DYN_LINK -DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_DATE_TIME_NO_LIB -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_SERIALIZATION_DYN_LINK -DBOOST_SERIALIZATION_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DBOOST_UNIT_TEST_FRAMEWORK_DYN_LINK -DBOOST_UNIT_TEST_FRAMEWORK_NO_LIB -DHAVE_CONFIG_H -DUHD_DLL_EXPORTS -DUHD_LOG_CONSOLE_COLOR -DUHD_LOG_CONSOLE_LEVEL=2 -DUHD_LOG_FILE_LEVEL=2 -DUHD_LOG_MIN_LEVEL=1 -I/builddir/build/BUILD/uhd-4.2.0.0/host/redhat-linux-build/include -I/builddir/build/BUILD/uhd-4.2.0.0/host/include -I/builddir/build/BUILD/uhd-4.2.0.0/host/lib/include -I/builddir/build/BUILD/uhd-4.2.0.0/host/redhat-linux-build/lib/include -I/builddir/build/BUILD/uhd-4.2.0.0/host/lib/deps/flatbuffers/include -I/builddir/build/BUILD/uhd-4.2.0.0/host/redhat-linux-build/lib/ic_reg_maps -I/builddir/build/BUILD/uhd-4.2.0.0/host/lib/convert -I/builddir/build/BUILD/uhd-4.2.0.0/host/redhat-linux-build/lib/convert -I/builddir/build/BUILD/uhd-4.2.0.0/host/lib/usrp -I/builddir/build/BUILD/uhd-4.2.0.0/host/lib/usrp/common/ad9361_driver -I/builddir/build/BUILD/uhd-4.2.0.0/host/lib/usrp/common -I/builddir/build/BUILD/uhd-4.2.0.0/host/redhat-linux-build/lib/transport/nirio/lvbitx -I/usr/include/libusb-1.0 -I/builddir/build/BUILD/uhd-4.2.0.0/host/lib/deps/rpclib/include -I/usr/include/python3.11 -I/builddir/build/BUILD/uhd-4.2.0.0/host/lib/deps/pybind11/include -I/builddir/build/BUILD/uhd-4.2.0.0/host/redhat-linux-build/_cmrc/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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-tables -fstack-clash-protection -fcf-protection -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG -fPIC   -Wall -Wextra -Wsign-compare -std=gnu++14 -MD -MT lib/CMakeFiles/uhd.dir/usrp/usrp2/usrp2_iface.cpp.o -MF CMakeFiles/uhd.dir/usrp/usrp2/usrp2_iface.cpp.o.d -o CMakeFiles/uhd.dir/usrp/usrp2/usrp2_iface.cpp.o -c /builddir/build/BUILD/uhd-4.2.0.0/host/lib/usrp/usrp2/usrp2_iface.cpp
In file included from /builddir/build/BUILD/uhd-4.2.0.0/host/lib/deps/pybind11/include/pybind11/attr.h:11,
                 from /builddir/build/BUILD/uhd-4.2.0.0/host/lib/deps/pybind11/include/pybind11/pybind11.h:43,
                 from /builddir/build/BUILD/uhd-4.2.0.0/host/lib/deps/pybind11/include/pybind11/embed.h:11,
                 from /builddir/build/BUILD/uhd-4.2.0.0/host/lib/usrp/mpmd/sim_find.cpp:14:
/builddir/build/BUILD/uhd-4.2.0.0/host/lib/deps/pybind11/include/pybind11/cast.h: In function 'std::string pybind11::detail::error_string()':
/builddir/build/BUILD/uhd-4.2.0.0/host/lib/deps/pybind11/include/pybind11/cast.h:422:36: error: invalid use of incomplete type 'PyFrameObject' {aka 'struct _frame'}
  422 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
      |                                    ^~
In file included from /usr/include/python3.11/Python.h:42,
                 from /builddir/build/BUILD/uhd-4.2.0.0/host/lib/usrp/mpmd/sim_find.cpp:13:
/usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of 'PyFrameObject' {aka 'struct _frame'}
   22 | typedef struct _frame PyFrameObject;
      |                ^~~~~~
/builddir/build/BUILD/uhd-4.2.0.0/host/lib/deps/pybind11/include/pybind11/cast.h:422:75: error: expected primary-expression before '>' token
  422 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
      |                                                                           ^
/builddir/build/BUILD/uhd-4.2.0.0/host/lib/deps/pybind11/include/pybind11/cast.h:422:77: error: expected primary-expression before ')' token
  422 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
      |                                                                             ^
/builddir/build/BUILD/uhd-4.2.0.0/host/lib/deps/pybind11/include/pybind11/cast.h:424:29: error: invalid use of incomplete type 'PyFrameObject' {aka 'struct _frame'}
  424 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
      |                             ^~
/usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of 'PyFrameObject' {aka 'struct _frame'}
   22 | typedef struct _frame PyFrameObject;
      |                ^~~~~~
/builddir/build/BUILD/uhd-4.2.0.0/host/lib/deps/pybind11/include/pybind11/cast.h:424:64: error: expected primary-expression before '>' token
  424 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
      |                                                                ^
/builddir/build/BUILD/uhd-4.2.0.0/host/lib/deps/pybind11/include/pybind11/cast.h:424:66: error: expected primary-expression before ')' token
  424 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
      |                                                                  ^
/builddir/build/BUILD/uhd-4.2.0.0/host/lib/deps/pybind11/include/pybind11/cast.h:425:26: error: invalid use of incomplete type 'PyFrameObject' {aka 'struct _frame'}
  425 |             frame = frame->f_back;
      |                          ^~
/usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of 'PyFrameObject' {aka 'struct _frame'}
   22 | typedef struct _frame PyFrameObject;
      |                ^~~~~~

Comment 5 Miro Hrončok 2022-06-21 11:42:05 UTC
https://github.com/pybind/pybind11/pull/2932

Comment 6 Miro Hrončok 2022-06-21 11:55:37 UTC
Or maybe rather https://github.com/pybind/pybind11/pull/3694 -- will try that in Copr to see if it works and helps.

Comment 7 Miro Hrončok 2022-06-21 12:00:17 UTC
Oh, we already fixed this in the past, but uhd bundles pybind11. Consider unbundling it.

Comment 8 Miro Hrončok 2022-06-21 12:16:46 UTC
Trying with:

BuildRequires:  pybind11-devel

...
-DPYBIND11_INCLUDE_DIR="%{_includedir}/pybind11/"


Not sure how to delete the bundled copy because I cannot find it. uhd-4.2.0.0/host/lib/deps/pybind11 is populated during build somehow, but I don't where from :D

Comment 10 Fedora Update System 2022-06-21 13:58:38 UTC
FEDORA-2022-ae2dd4c83d has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-ae2dd4c83d

Comment 11 Fedora Update System 2022-06-21 14:01:18 UTC
FEDORA-2022-ae2dd4c83d has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.