Package Details: nextpnr-git 0.7.r158.g17943a5-1

Git Clone URL: https://aur.archlinux.org/nextpnr-git.git (read-only, click to copy)
Package Base: nextpnr-git
Description: Portable FPGA place and route tool
Upstream URL: https://github.com/YosysHQ/nextpnr
Licenses: ISC
Conflicts: nextpnr
Provides: nextpnr
Submitter: grahamedgecombe
Maintainer: xiota (thotypous)
Last Packager: xiota
Votes: 25
Popularity: 0.34
First Submitted: 2018-08-02 17:35 (UTC)
Last Updated: 2025-01-21 23:27 (UTC)

Required by (5)

Sources (2)

Latest Comments

1 2 3 4 Next › Last »

xiota commented on 2025-01-20 21:01 (UTC)

@aaruni96 Disabled ng-ultra architecture. Package should build without test failure now. Upstream indicates this will be the default soon.

@Relih I did not see that error. pybind11 is headers only, so shouldn't be trying to link. Maybe try building in clean chroot.

Relih commented on 2025-01-17 07:31 (UTC)

Building fails because it cannot find pybind11 headers:

[ 11%] Building CXX object CMakeFiles/nextpnr-generic.dir/3rdparty/oourafft/fftsg.cc.o
[ 11%] Building CXX object CMakeFiles/nextpnr-generic.dir/3rdparty/oourafft/fftsg2d.cc.o
[ 12%] Linking CXX executable nextpnr-generic
/usr/bin/ld: cannot find -lpybind11_headers: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/nextpnr-generic.dir/build.make:899: nextpnr-generic] Error 1
make[1]: *** [CMakeFiles/Makefile2:731: CMakeFiles/nextpnr-generic.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: nextpnr-git-exit status 4

Pybind11 is installed however

⚡➜ ~ yay -Qs pybind11
local/pybind11 2.13.6-2
    A lightweight header-only library that exposes C++ types in Python and vice versa

aaruni96 commented on 2025-01-05 12:17 (UTC)

Build fails because himbaechel-test fails. Logs are here:

Test project /home/user/.cache/yay/nextpnr-git/src/nextpnr/build
Connected to MAKE jobserver
    Start 1: generic-test
1/6 Test #1: generic-test .....................   Passed    0.02 sec
    Start 2: ice40-test
2/6 Test #2: ice40-test .......................   Passed    0.01 sec
    Start 3: ecp5-test
3/6 Test #3: ecp5-test ........................   Passed    0.01 sec
    Start 4: nexus-test
4/6 Test #4: nexus-test .......................   Passed    0.01 sec
    Start 5: gowin-test
5/6 Test #5: gowin-test .......................   Passed    0.01 sec
    Start 6: himbaechel-test
6/6 Test #6: himbaechel-test ..................***Exception: SegFault  0.11 sec

83% tests passed, 1 tests failed out of 6

Total Test time (real) =   0.17 sec

The following tests FAILED:
      6 - himbaechel-test (SEGFAULT)

Logs for the failed test :

6/6 Test: himbaechel-test
Command: "/home/user/.cache/yay/nextpnr-git/src/nextpnr/build/nextpnr-himbaechel-test"
Directory: /home/user/.cache/yay/nextpnr-git/src/nextpnr/build
"himbaechel-test" start time: Jan 04 06:25 EST
Output:
----------------------------------------------------------
[==========] Running 5 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 5 tests from NGUltraLutDffTest
[ RUN      ] NGUltraLutDffTest.pack_constants
Info: Using uarch 'ng-ultra' for device 'NG-ULTRA'
ERROR: Unable to read chipdb /home/user/.cache/yay/nextpnr-git/src/nextpnr/build/share/himbaechel/ng-ultra/chipdb-ng-ultra.bin
unknown file: Failure
Unknown C++ exception thrown in SetUp().
<end of output>
Test time =   0.11 sec
----------------------------------------------------------
Test Failed.
"himbaechel-test" end time: Jan 04 06:25 EST
"himbaechel-test" time elapsed: 00:00:00
----------------------------------------------------------

pera commented on 2024-10-19 20:40 (UTC)

I couldn't build this package with the current version of prjapicula (nextpnr master branch depends on the yet to be released apicula master branch) so I have created this new package that builds from source and retrieves the pickle artifacts generated by github actions (instead of running the fuzzers): https://aur.archlinux.org/packages/apicula-git

sf101 commented on 2024-10-19 16:04 (UTC)

When I try to compile nextpnr-git (after compiling prjtrellis-db-git), I get

    vagrant: [ 99%] Building CXX object CMakeFiles/nextpnr-himbaechel-test.dir/himbaechel/uarch/xilinx/xilinx.cc.o
    vagrant: [ 99%] Building CXX object CMakeFiles/nextpnr-himbaechel-test.dir/himbaechel/uarch/xilinx/xilinx_place.cc.o
    vagrant: [ 99%] Linking CXX executable nextpnr-himbaechel-test
    vagrant: [ 99%] Built target nextpnr-himbaechel-test
    vagrant: [ 99%] Built target chipdb-himbaechel-example
    vagrant: [ 99%] Generating ../../../share/himbaechel/gowin/chipdb-GW1N-1.bin
    vagrant: Traceback (most recent call last):
    vagrant:   File "/home/vagrant/.cache/paru/clone/nextpnr-git/src/nextpnr/himbaechel/uarch/gowin/gowin_arch_gen.py", line 1470, in <module>
    vagrant:     main()
    vagrant:   File "/home/vagrant/.cache/paru/clone/nextpnr-git/src/nextpnr/himbaechel/uarch/gowin/gowin_arch_gen.py", line 1429, in main
    vagrant:     create_packages(ch, db)
    vagrant:   File "/home/vagrant/.cache/paru/clone/nextpnr-git/src/nextpnr/himbaechel/uarch/gowin/gowin_arch_gen.py", line 1227, in create_packages
    vagrant:     if variant in db.sip_cst and pkgname in db.sip_cst[variant]:
    vagrant:                   ^^^^^^^^^^
    vagrant: AttributeError: 'Device' object has no attribute 'sip_cst'
    vagrant: make[2]: *** [himbaechel/uarch/gowin/CMakeFiles/chipdb-himbaechel-gowin.dir/build.make:82: share/himbaechel/gowin/chipdb-GW1N-1.bin] Error 1
    vagrant: make[1]: *** [CMakeFiles/Makefile2:1771: himbaechel/uarch/gowin/CMakeFiles/chipdb-himbaechel-gowin.dir/all] Error 2
    vagrant: make: *** [Makefile:146: all] Error 2
    vagrant: ==> ERROR: A failure occurred in build().
    vagrant:     Aborting...
    vagrant: error: failed to build 'nextpnr-git-0.7.r29.gf0859503-1':
    vagrant: error: packages failed to build: nextpnr-git-0.7.r29.gf0859503-1

Is there perhaps a dependency missing?

yjun commented on 2024-09-06 16:21 (UTC) (edited on 2024-09-06 16:24 (UTC) by yjun)

Considering the latest documentation and discussions, it appears that Gowin will be replaced by a new architecture called himbaechel-gowin. Should we update the PKGBUILD file accordingly?

nextpnr-himbaechel

Gowin: Remove nextpnr-gowin

apicula

sf101 commented on 2024-04-29 18:16 (UTC)

Please consider adding support for himbaechel, it is needed for some boards such as the Tang Nano 9K.

_ARCHS=('generic' 'ice40' 'ecp5' 'nexus' 'gowin' 'himbaechel')
    himbaechel)
      makedepends+=('prjapicula')
      _CONFIG+=('-DHIMBAECHEL_GOWIN_DEVICES=all')
      ;;

xiretza commented on 2023-09-17 13:05 (UTC)

Thanks, I've fixed the dependency specification for prjtrellis-db. After that I got spurious GCC segfaults while building, but I don't think there's much the package can do about those anyway - here it is for posterity anyway:

In file included from /build/nextpnr-git/src/nextpnr/common/kernel/basectx.h:34,
                 from /build/nextpnr-git/src/nextpnr/common/kernel/arch_api.h:26,
                 from /build/nextpnr-git/src/nextpnr/common/kernel/base_arch.h:27,
                 from /build/nextpnr-git/src/nextpnr/common/kernel/nextpnr.h:23,
                 from /build/nextpnr-git/src/nextpnr/common/kernel/design_utils.h:21,
                 from /build/nextpnr-git/src/nextpnr/common/kernel/design_utils.cc:21:
/build/nextpnr-git/src/nextpnr/common/kernel/nextpnr_types.h:217:93: internal compiler error: Segmentation fault
  217 |     CellInfo(Context *ctx, IdString name, IdString type) : ctx(ctx), name(name), type(type){};
      |                                                                                             ^
0x1ad33c8 internal_error(char const*, ...)
    ???:0
0x95979b ggc_set_mark(void const*)
    ???:0
0x8b7c67 gt_ggc_mx_lang_tree_node(void*)
    ???:0
0x8b8313 gt_ggc_mx_lang_tree_node(void*)
    ???:0
0x8b9896 gt_ggc_mx_lang_tree_node(void*)
    ???:0
0xba0c73 gt_ggc_mx_vec_tree_va_gc_(void*)
    ???:0
0x8b9a47 gt_ggc_mx_lang_type(void*)
    ???:0
0x8b8045 gt_ggc_mx_lang_tree_node(void*)
    ???:0
0x8b9441 gt_ggc_mx_lang_tree_node(void*)
    ???:0
0x8b8034 gt_ggc_mx_lang_tree_node(void*)
    ???:0
0x8b9417 gt_ggc_mx_lang_tree_node(void*)
    ???:0
0x8b7f94 gt_ggc_mx_lang_tree_node(void*)
    ???:0
0x8b7e2d gt_ggc_mx_lang_tree_node(void*)
    ???:0
0x8b8305 gt_ggc_mx_lang_tree_node(void*)
    ???:0
0x8b97b4 gt_ggc_mx_lang_tree_node(void*)
    ???:0
0xba0c73 gt_ggc_mx_vec_tree_va_gc_(void*)
    ???:0
0x8b9a47 gt_ggc_mx_lang_type(void*)
    ???:0
0x8b8045 gt_ggc_mx_lang_tree_node(void*)
    ???:0
0x8b9441 gt_ggc_mx_lang_tree_node(void*)
    ???:0
0x8b8034 gt_ggc_mx_lang_tree_node(void*)
    ???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.archlinux.org/> for instructions.
make[2]: *** [CMakeFiles/nextpnr-nexus-test.dir/build.make:146: CMakeFiles/nextpnr-nexus-test.dir/common/kernel/design_utils.cc.o] Error 1