Package Details: ghdl-mcode-git 2.0.0dev.r6945.gaee3585af-4

Git Clone URL: (read-only, click to copy)
Package Base: ghdl-mcode-git
Description: VHDL simulator - mcode back-end
Upstream URL:
Licenses: GPL2
Conflicts: ghdl, ghdl-gcc-git, ghdl-llvm-git
Provides: ghdl, ghdl-git
Submitter: marzoul
Maintainer: marzoul (xiretza)
Last Packager: xiretza
Votes: 1
Popularity: 0.000000
First Submitted: 2015-12-02 23:02 (UTC)
Last Updated: 2022-01-17 16:19 (UTC)

Required by (8)

Sources (1)

Latest Comments

xiretza commented on 2021-12-28 15:44 (UTC) (edited on 2021-12-28 15:45 (UTC) by xiretza)

Dependency updates (ditto for -llvm):

diff --git a/PKGBUILD b/PKGBUILD
index 2445e1d..60a2c02 100644
@@ -14,11 +14,10 @@ makedepends=('git')
        'python-pytest' 'python-pydecor' 'python-pyvhdlmodel>=0.12'
-       'python-pymetaclasses' 'python-pyattributes' 'python-pyterminalui'
+       'python-pytooling' 'python-pyattributes' 'python-pytooling-terminalui'
-       'python-pydecor: for pyGHDL'
-       'python-pyvhdlmodel: for pyGHDL.dom'
+       'python-pyghdl: python bindings and utilities'


Additionally, this is required before ./configure for proper debug package support:

    export ADA_FLAGS="$CFLAGS -fno-strict-aliasing"

marzoul commented on 2021-08-29 16:17 (UTC)

Other workaround on user side is to skip check with makepkg --nocheck. This removes the need for these python dependencies.

xiretza commented on 2021-08-29 14:18 (UTC) (edited on 2021-08-29 14:20 (UTC) by xiretza)

Editing the pkgver in a VCS package doesn't actually do anything, as it is generated during build. Just rebuilding python-pyvhdlmodel-git and changing the ghdl depends to python-pyvhdlmodel>=0.12 should do the trick.

istvank commented on 2021-08-29 12:41 (UTC) (edited on 2021-08-29 12:44 (UTC) by istvank)

Update fails at check() stage on my Arch installation due to a dependency on python-pyvhdlmodel v0.12.0.


The python unittests provided with GHDL depend on the latest python-pyvhdlmodel now.

I had the following, now outdated dependency installed:

community/python-pyvhdlmodel 0.11.1-1 (46.0 KiB 318.0 KiB) 
    An abstract language model of VHDL written in Python
Workaround that worked for me now

I had to replace my outdated pyvhdlmodel with latest:


by installing the AUR package with

yay -Syu --editmenu

and editing the pkgver in the PKGBUILD to point to v0.12.0:


After allowing yay to remove the conflicting old dependency, GHDL-mcode-git update was successful.

Hope this helps someone. This workaround will not be necessary soon I guess.

eduardosm commented on 2021-08-22 10:13 (UTC)

I think you should trim one digit from the commit hash, so it matches the output of pkgver():


xiretza commented on 2021-07-12 12:43 (UTC)

checkdepends now additionally requires 'python-pymetaclasses' 'python-pyattributes' 'python-pyterminalui'.

xiretza commented on 2021-03-23 16:06 (UTC)

Due to upstream changes to the include directory structure, the mkdir/ln hack in check() should be replaced with a make install.vpi.local.

xiretza commented on 2021-02-19 21:09 (UTC)

Hey, mcode and llvm backends now support running make test in-tree with only a minor patch:

diff --git a/PKGBUILD b/PKGBUILD
index 419789f..17b2046 100644
@@ -1,16 +1,22 @@
 # Maintainer: Adrien Prost-Boucle <>

 pkgdesc='VHDL simulator - LLVM back-end'

 provides=("ghdl=$pkgver" "ghdl-git=$pkgver")
 conflicts=('ghdl' 'ghdl-gcc-git' 'ghdl-mcode-git')
 makedepends=('gcc-ada' 'git' 'llvm' 'clang')
+       'python-pydecor: for pyGHDL'
+       'python-pyvhdlmodel: for pyGHDL.dom'
+       'gcc-ada: for libghdl'
+checkdepends=('python-pytest' 'python-pydecor' 'python-pyvhdlmodel')

@@ -49,6 +55,15 @@ build() {

+check() {
+       cd "${srcdir}/ghdl"
+       mkdir include
+       ln -s ../src/grt/vpi_user.h include/
+       make test
 package() {
        cd "${srcdir}/ghdl"

I've also included fixes to license and arch that were found by namcap.