Package Details: ghdl-gcc-git 3.0.0dev.r7048.g7028d03e5-1

Git Clone URL: https://aur.archlinux.org/ghdl-gcc-git.git (read-only, click to copy)
Package Base: ghdl-gcc-git
Description: VHDL simulator - GCC back-end
Upstream URL: https://github.com/ghdl/ghdl
Licenses: GPL2
Conflicts: ghdl, ghdl-llvm-git, ghdl-mcode-git
Provides: ghdl, ghdl-git
Submitter: marzoul
Maintainer: marzoul (xiretza)
Last Packager: marzoul
Votes: 4
Popularity: 0.000000
First Submitted: 2015-12-02 22:51 (UTC)
Last Updated: 2022-03-29 16:15 (UTC)

Required by (8)

Sources (3)

Latest Comments

xiretza commented on 2022-05-14 10:37 (UTC)

Should be fixed by upstream PR 2057.

lawq commented on 2022-05-13 20:36 (UTC)

This is broken for me atm

netlists-disp_dot.ads:19:06: warning: unnecessary with of ancestor [-gnatwr]
gnatmake: "/home/rootabega/.cache/paru/clone/ghdl-gcc-git/src/ghdl/src/synth/netlists-disp_dot.adb" compilation error
make: *** [Makefile:440: lib/libghdl-3_0_0_dev.so] Error 4
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'ghdl-gcc-git-3.0.0dev.r7048.g7028d03e5-1':
error: packages failed to build: ghdl-gcc-git-3.0.0dev.r7048.g7028d03e5-1

marzoul commented on 2021-12-01 13:57 (UTC)

Thank you for reporting. I have changed the URL of sources. But I followed official gcc instructions at https://gcc.gnu.org/install/prerequisites.html. This should be more robust.

KEKE_046 commented on 2021-12-01 11:34 (UTC)

The isl.gforge.inria.fr mirror appears to be down, preventing the downloading of isl. ISL site seems to be https://libisl.sourceforge.io/ now.

marzoul commented on 2021-07-06 21:47 (UTC) (edited on 2021-07-06 21:49 (UTC) by marzoul)

Thank you Shinmen and runecaster for your help. Indeed I had forgotten about an edited makepkg.conf, and your solution works. I have pushed the change.

runecaster commented on 2021-07-06 19:11 (UTC) (edited on 2021-07-06 19:13 (UTC) by runecaster)

Shinmen, here is a workaround for this problem: Temporarily remove "-Wformat Werror=format-security \" from your /etc/makepkg.conf and rebuild it.

Same compiler flags appear to be the problem when building arm-linux-gnueabi-gcc (See comment from LyuFiFi).

marzou, initially I got the same errors as Shinmen, so please check your makepkg.conf if you have altered it.

marzoul commented on 2021-05-24 12:11 (UTC)

Hi Shinmen, I tried and it compiles on my side. I also tested from scratch (removed previous src/) and with fresh system update, it also compiles fine. Maybe your system has outdated gcc version, or you need to remove your old src/ ?

Shinmen commented on 2021-05-24 00:21 (UTC)

Whem i try to install has a erro on build,

''' /home/shinmen/.cache/yay/ghdl-gcc-git/src/gcc-10.3.0/libcpp/expr.c: In function ‘unsigned int cpp_classify_number(cpp_reader, const cpp_token, const char, location_t)’: /home/shinmen/.cache/yay/ghdl-gcc-git/src/gcc-10.3.0/libcpp/expr.c:801:35: error: format not a string literal and no format arguments [-Werror=format-security] 801 | cpp_warning_with_line (pfile, CPP_W_LONG_LONG, virtual_location, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 802 | 0, message); | ~~~~~~~~~~~ /home/shinmen/.cache/yay/ghdl-gcc-git/src/gcc-10.3.0/libcpp/expr.c:804:38: error: format not a string literal and no format arguments [-Werror=format-security] 804 | cpp_pedwarning_with_line (pfile, CPP_W_LONG_LONG, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 805 | virtual_location, 0, message); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: some warnings being treated as errors make[2]: [Makefile:224: expr.o] Error 1 make[2]: Leaving directory '/home/shinmen/.cache/yay/ghdl-gcc-git/src/gcc-build/build-x86_64-pc-linux-gnu/libcpp' make[1]: [Makefile:2854: all-build-libcpp] Error 2 make[1]: Leaving directory '/home/shinmen/.cache/yay/ghdl-gcc-git/src/gcc-build' make: * [Makefile:942: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... error making: ghdl-gcc-git '''

xiretza commented on 2021-03-02 19:19 (UTC)

Hi, libghdl links against libgnat, so it depends on gcc-ada (see also the packages in the repos).

marzoul commented on 2020-04-25 08:30 (UTC)

Hi, nothing against, it just had low criticality. Pushed. Also enabled parallel compilation of ghdllib now that it has been fixed.

csantosb commented on 2020-04-23 18:34 (UTC)

Hi, anything against moving forward to gcc 9.3 ?

marzoul commented on 2019-12-02 23:27 (UTC)

Nice attention to detail, thank you :-) Changes pushed.

xiretza commented on 2019-12-02 21:35 (UTC)

Cheers for changing the pkgver() formatting! I've found one other thing that would be nice to have though: if the provides= for ghdl is changed to be versioned (provides=("ghdl=$pkgver")), then other packages (such as ghdlsynth-beta, which I would then be able to upload) can depend on ghdl>0.36, which can be fulfilled by this package right now and the main package after the next release. Additionally, providing ghdl-git from all the different -git packages would probably make sense.

marzoul commented on 2019-09-24 06:08 (UTC)

One must never skip testing especially when in a hurry... install is fixed, thanks for reporting.

xiretza commented on 2019-09-23 21:01 (UTC)

@marzoul: are you sure libiberty files should be kept (which is the opposite of what ak-fau's patch suggested)? Right now I can't install the built package because /usr/include/libiberty/* and /usr/lib/libiberty.a conflict with gcc.

marzoul commented on 2019-08-11 14:25 (UTC)

Hi ak-fau, thank you for the suggestion. It is now in the package.

ak-fau commented on 2019-08-07 13:09 (UTC) (edited on 2019-08-07 17:20 (UTC) by ak-fau)

Hello marzoul.

Would you please consider the following patch in order to keep VPI library and its header file in the package.

Thank you,

A.

diff --git a/PKGBUILD b/PKGBUILD
index 2e51661..07eabf1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -146,9 +146,11 @@ package() {

    # Remove gcc-specific files, keep only what is related to ghdl
    cd "${pkgdir}"
-   rm -rf "usr/"{include,share/{locale,man}}
+   rm -rf "usr/share/"{locale,man}
+   rm -rf "usr/include/libiberty"
    find "usr/lib" \
        -maxdepth 1 -mindepth 1 -not -name 'gcc' -not -name 'ghdl' \
+       -not -name 'libghdlvpi.so' \
        -exec rm -rf {} +
    find "usr/lib/gcc/${_machine}/${_version}" \
        -maxdepth 1 -mindepth 1 -not -name 'ghdl*' \  

marzoul commented on 2016-11-27 21:40 (UTC)

Should be fixed with my latest hacks. But it's rather fragile, so I'll contact the developers because what we need could be allowed in a generic way.

marzoul commented on 2016-11-19 10:19 (UTC)

Thanks for reporting! Indeed compilation of libs has changed. However as-is your fix requires that a version of GHDL with std lib is already installed in the system. I'm investigating...

swolix commented on 2016-11-18 21:51 (UTC)

Hi, vhdl libraries are not installed (anymore?), I made the following changes to the PKGBUILD (although I'm not entirely sure this is the proper way); diff --git a/PKGBUILD b/PKGBUILD index 5018274..3e773a2 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -37,8 +37,8 @@ md5sums=( pkgver() { cd "${srcdir}/ghdl" - # GHDL version (extracted from version.ads) - _distver=`sed -n -e 's/.*GHDL \([0-9.a-z]*\) (.*/\1/p' src/version.ads` + # GHDL version (extracted from version.in) + _distver=`sed -n -e 's/.*GHDL \([0-9.a-z]*\) (.*/\1/p' src/version.in` # Date of the last git commit _gitver=`git log -n 1 --date=short | sed -n -e 's/.*Date:\s*\([0-9-]*\).*/\1/p' | tr -d -` @@ -106,18 +106,27 @@ build() { #--without-cloog --without-isl make + + # Build libraries + cd ${srcdir}/ghdl + make ghdllib } package() { + # Install toolchain cd "${srcdir}/gcc-build" - - # Make a full install make DESTDIR="${pkgdir}" install + # Install libraries + cd ${srcdir}/ghdl + make DESTDIR="${pkgdir}" install + + cd "${srcdir}/gcc-build" + # Remove gcc-specific files, keep only what is related to ghdl rm -rf "${pkgdir}"/usr/{share/{locale,gcc-${_gccver},man/man7},include} find "${pkgdir}"/usr/lib \ - -maxdepth 1 -mindepth 1 -not -name 'gcc' \ + -maxdepth 1 -mindepth 1 -not -name 'gcc' -and -not -name ghdl \ -exec rm -rf '{}' + find "${pkgdir}"/usr/lib/gcc/$(./gcc/xgcc -dumpmachine)/${_gccver} \ -maxdepth 1 -mindepth 1 -not -name 'vhdl' -not -name 'ghdl1' \

marzoul commented on 2016-10-30 19:35 (UTC)

Thanks for the comment. I'll push the updates when test compilation is finished.

swolix commented on 2016-10-30 09:50 (UTC)

version.ads seems to be renamed to version.in