Bug 2171618 - nextpnr: FTBFS in Fedora rawhide/f38
Summary: nextpnr: FTBFS in Fedora rawhide/f38
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nextpnr
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gabriel Somlo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F38FTBFS
TreeView+ depends on / blocked
 
Reported: 2023-02-20 11:56 UTC by Fedora Release Engineering
Modified: 2023-03-11 03:10 UTC (History)
3 users (show)

Fixed In Version: nextpnr-1-20.20230226git14050f9.fc37 nextpnr-1-20.20230226git14050f9.fc36 nextpnr-1-20.20230226git14050f9.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-07 01:32:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Fedora Release Engineering 2023-02-20 11:56:32 UTC
nextpnr failed to build from source in Fedora rawhide/f38

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


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Please fix nextpnr 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,
nextpnr will be orphaned. Before branching of Fedora 39,
nextpnr 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 2 Thomas Rodgers 2023-02-22 19:45:22 UTC
/builddir/build/BUILD/nextpnr-78dabb7b8f2279090b61447d1ebd04385061fc61/common/kernel/hashlib.h:79:29: error: 'uint32_t' was not declared in this scope
   79 | template <> struct hash_ops<uint32_t> : hash_int_ops
      |                             ^~~~~~~~
/builddir/build/BUILD/nextpnr-78dabb7b8f2279090b61447d1ebd04385061fc61/common/kernel/hashlib.h:22:1: note: 'uint32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
   21 | #include "nextpnr_assertions.h"
  +++ |+#include <cstdint>
   22 | #include "nextpnr_namespaces.h"

The attached patch was accepted upstream yesterday.

Comment 3 Gabriel Somlo 2023-02-22 20:01:52 UTC
Thanks for the cstdint patch! There's another issue related to trellis, nextpnr, and pybind11 that's still in the process of being debugged (that also prevents nextpnr from building against any upadted trellis dependency) that results in the following build-time error on F37+ due to (I suspect) the new pybind11-devel-2.10.3-* version:

> ...
> Traceback (most recent call last):
>   File "/builddir/build/BUILD/nextpnr-
> 78dabb7b8f2279090b61447d1ebd04385061fc61/ecp5/trellis_import.py",
> line 21, in <module>
>     import pytrellis
> ImportError: generic_type: cannot initialize type "KeysView[int]": an
> object with that name is already defined
> gmake[2]: *** [ecp5/CMakeFiles/chipdb-ecp5-bbas.dir/build.make:80:
> ecp5/chipdb/chipdb-25k.bba] Error 1
> ...

I'll submit a new set of build requests for 37, 38, and rawhide as soon as that's sorted.

Comment 4 Fedora Update System 2023-02-26 22:12:36 UTC
FEDORA-2023-eab331e129 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-eab331e129

Comment 5 Fedora Update System 2023-02-26 22:12:49 UTC
FEDORA-2023-0dcf40573a has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-0dcf40573a

Comment 6 Fedora Update System 2023-02-26 22:13:05 UTC
FEDORA-2023-1eaf2f2ed6 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-1eaf2f2ed6

Comment 7 Fedora Update System 2023-02-27 01:18:51 UTC
FEDORA-2023-0dcf40573a has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-0dcf40573a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-0dcf40573a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2023-02-27 01:34:34 UTC
FEDORA-2023-eab331e129 has been pushed to the Fedora 38 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-eab331e129

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2023-02-27 02:40:59 UTC
FEDORA-2023-1eaf2f2ed6 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-1eaf2f2ed6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-1eaf2f2ed6

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2023-03-07 01:32:59 UTC
FEDORA-2023-0dcf40573a has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2023-03-07 01:39:41 UTC
FEDORA-2023-1eaf2f2ed6 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2023-03-11 03:10:32 UTC
FEDORA-2023-eab331e129 has been pushed to the Fedora 38 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.