Package Details: nextpnr-git r2866.9b962804-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: custom:ISC
Conflicts: nextpnr
Provides: nextpnr
Submitter: grahamedgecombe
Maintainer: grahamedgecombe
Last Packager: grahamedgecombe
Votes: 12
Popularity: 0.35
First Submitted: 2018-08-02 17:35
Last Updated: 2021-01-03 22:38

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

xiretza commented on 2021-03-12 21:39

@jamonterrell: see my comment below yours, the VCS package guidelines actually tell you how to add the submodules to source=() properly.

jamonterrell commented on 2021-03-12 21:30

This is currently not working due to git submodules not being updated before build (causes -lpthreads error).

Fix below:

diff --git a/PKGBUILD b/PKGBUILD
index f2d607c..a1fe78c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,6 +22,8 @@ pkgver() {
 build() {
   cd "$srcdir/nextpnr"

+  git submodule init
+  git submodule update
   mkdir -p build
   cd build

xiretza commented on 2021-03-10 22:45

Since https://github.com/YosysHQ/nextpnr/pull/607, nextpnr now has a submodule for abseil-cpp that has to be added to source and initialized accordingly. Also there's a warning about -DICEBOX_ROOT= being deprecated, see @rpls' comment.

rpls commented on 2021-01-18 20:46

nextpnr now supports another FPGA architecture with "Project Oxide". I added a package for the requirements and validated it with the examples provided by prjoxide. Also the icestorm requirement is now referenced as ICESTORM_INSTALL_PREFIX in the CMake script.

diff --git a/PKGBUILD b/PKGBUILD
index f2d607c..4c33916 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ url='https://github.com/YosysHQ/nextpnr'
 license=('custom:ISC')
 depends=('boost-libs' 'python' 'qt5-base')
 makedepends=('boost' 'cmake' 'eigen' 'git' 'icestorm' 'prjtrellis'
-             'prjtrellis-db')
+             'prjtrellis-db' 'prjoxide')
 provides=('nextpnr')
 conflicts=('nextpnr')
 source=('nextpnr::git+https://github.com/YosysHQ/nextpnr.git')
@@ -26,9 +26,10 @@ build() {
   cd build

   cmake \
-    -DARCH=generic\;ice40\;ecp5 \
-    -DICEBOX_ROOT=/usr/share/icebox \
+    -DARCH=generic\;ice40\;ecp5\;nexus \
+    -DICESTORM_INSTALL_PREFIX=/usr \
     -DTRELLIS_INSTALL_PREFIX=/usr \
+    -DOXIDE_INSTALL_PREFIX=/usr \
     -DBUILD_TESTS=ON \
     -DCMAKE_BUILD_TYPE=RelWithDebInfo \
     -DCMAKE_INSTALL_PREFIX=/usr \

zoe1337 commented on 2020-12-18 19:30

shouldn't this PKGBUILD depend on prjtrellis instead of trellis?

xiretza commented on 2020-12-08 12:06

nextpnr now no longer builds the GUI by default, could you add a -DBUILD_GUI=ON to the cmake invocation?

ignilux commented on 2020-11-12 14:02

For what it's worth, I had the same build error with a fresh icestorm-git build/install. When I aborted nextpnr-git and installed trellis-git FIRST, then nextpnr-git builds fine.

marzoul commented on 2020-03-21 09:37

Follow-up : python issue is caused by wrong detection of python version from repo. No known solution yet. https://github.com/YosysHQ/nextpnr/issues/411

marzoul commented on 2020-03-19 22:24

Hi, I have a build error. Is there a missing python-related dependency ?

In file included from /home/adrien/Dev/AUR/nextpnr-git/src/nextpnr/gui/pythontab.cc:22:
/home/adrien/Dev/AUR/nextpnr-git/src/nextpnr/common/pybindings.h:24:10: fatal error: Python.h: No such file or directory
   24 | #include <Python.h>
      |          ^~~~~~~~~~
compilation terminated.
make[2]: *** [generated/gui/ice40/CMakeFiles/gui_ice40.dir/build.make:210: generated/gui/ice40/CMakeFiles/gui_ice40.dir/pythontab.cc.o] Error 1
make[2]: Leaving directory '/home/adrien/Dev/AUR/nextpnr-git/src/nextpnr/build'
make[1]: *** [CMakeFiles/Makefile2:660: generated/gui/ice40/CMakeFiles/gui_ice40.dir/all] Error 2
make[1]: Leaving directory '/home/adrien/Dev/AUR/nextpnr-git/src/nextpnr/build'
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().

xiretza commented on 2020-02-21 07:11

@guturise: rebuild trellis(-git).