Package Details: ghdl-gcc-git 5.0.0dev.r9531.gc49b2038b-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: xiretza
Votes: 7
Popularity: 0.007875
First Submitted: 2015-12-02 22:51 (UTC)
Last Updated: 2024-08-30 16:19 (UTC)

Dependencies (2)

Required by (9)

Sources (3)

Latest Comments

1 2 3 4 Next › Last »

xiretza commented on 2024-08-30 16:18 (UTC)

Updated to use GCC 12, which supports _FORTIFY_SOURCE=3 thanks for the report :3

texinfo is already pulled in by base-devel, which is assumed to be installed.

deneb commented on 2024-08-30 15:53 (UTC) (edited on 2024-08-30 15:55 (UTC) by deneb)

Build currently fails with the ootb /etc/makepkg.conf because of -D_FORTIFY_SOURCE=3, with this rather silly error:

/usr/include/features.h:434:5: error: #warning _FORTIFY_SOURCE > 2 is treated like 2 on this platform [-Werror=cpp]
  434 | #   warning _FORTIFY_SOURCE > 2 is treated like 2 on this platform
      |     ^~~~~~~

Also, the build fails if the makeinfo executable isn't present, so presumably this package should makedepend on core/texinfo.

xiretza commented on 2024-03-16 11:32 (UTC)

Indeed that fixes it, thanks!

smallAndSimple commented on 2024-03-16 09:47 (UTC)

I think the problem is LTO, I fixed it recently. Try with !lto in the options, and --disable-lto in gcc configure, that should fix it.

xiretza commented on 2024-03-12 21:56 (UTC)

I can reproduce, but I have no idea what to do about it. Updating the gcc tarball to 12.3.0 does not help.

CaporalWinnie commented on 2024-03-08 20:37 (UTC)

can't compile. I get this obscure message from an assembler file.

/tmp/ccaZtBkV.s: Error: invalid attempt to declare external version name as default in symbol `__gttf2@@GCC_4.3.0'

originating from:

# @multilib_dir@ is not really necessary, but sometimes it has
# more uses than just a directory name.
/bin/sh /home/user/.cache/paru/clone/ghdl-gcc-git/src/gcc-11.2.0/libgcc/../mkinstalldirs .
/home/user/.cache/paru/clone/ghdl-gcc-git/src/gcc-build/./gcc/xgcc -B/home/user/.cache/paru/clone/ghdl-gcc-git/src/gcc-build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include    -O2  -march=x86-64 -mtune=generic -O2  -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2          -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/home/user/.cache/paru/clone/ghdl-gcc-git/src=/usr/src/debug/ghdl-gcc-git -flto=auto -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag -Wold-style-definition  -isystem ./include  -fpic -mlong-double-80 -DUSE_ELF_SYMVER -fcf-protection -mshstk -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o ./libgcc_s.so.1.tmp -march=x86-64 -mtune=generic -O2 -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/home/user/.cache/paru/clone/ghdl-gcc-git/src=/usr/src/debug/ghdl-gcc-git -flto=auto -B./ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _mulhc3_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _divhc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _bswapsi2_s.o _bswapdi2_s.o _clrsbsi2_s.o _clrsbdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _divdi3_s.o _moddi3_s.o _divmoddi4_s.o _udivdi3_s.o _umoddi3_s.o _udivmoddi4_s.o _udiv_w_sdiv_s.o cpuinfo_s.o sfp-exceptions_s.o addtf3_s.o divtf3_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o fixtfti_s.o fixunstfti_s.o floattitf_s.o floatuntitf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o getf2_s.o letf2_s.o eqtf2_s.o _divtc3_s.o _multc3_s.o _powitf2_s.o enable-execute-stack_s.o unwind-dw2_s.o unwind-dw2-fde-dip_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o libgcc.a -lc && rm -f ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && (echo "/* GNU ld script"; echo "   Use the shared library, but some functions are only in"; echo "   the static library.  */"; echo "GROUP ( libgcc_s.so.1 -lgcc )" ) > ./libgcc_s.so
/tmp/ccaZtBkV.s: Assembler messages:
/tmp/ccaZtBkV.s: Error: invalid attempt to declare external version name as default in symbol `__gttf2@@GCC_4.3.0'
make[3]: *** [/tmp/ccdY2oWn.mk:2: /tmp/ccAwWh8u.ltrans0.ltrans.o] Error 1
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:995: libgcc_s.so] Error 1
make[2]: Leaving directory '/home/user/.cache/paru/clone/ghdl-gcc-git/src/gcc-build/x86_64-pc-linux-gnu/libgcc'
make[1]: *** [Makefile:12800: all-target-libgcc] Error 2
make[1]: Leaving directory '/home/user/.cache/paru/clone/ghdl-gcc-git/src/gcc-build'
make: *** [Makefile:944: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'ghdl-gcc-git-3.0.0dev.r7048.g7028d03e5-1':

delafthi commented on 2022-12-15 15:52 (UTC)

The issue seems to be fixed for now.

delafthi commented on 2022-12-14 08:43 (UTC) (edited on 2022-12-14 08:43 (UTC) by delafthi)

Currently, I get the following build errors:

checking for the correct version of mpc.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.

It seems that the recent update of libmpc breaks the build of this package. Do you experience the same issues? I'm not sure whether this problem is ghdl specific or concerns all packages that include mpc. For me only ghdl threw this error.

csantosb commented on 2022-11-20 11:01 (UTC)

Check your MAKEFLAGS under /etc/makepkg.conf.

delafthi commented on 2022-11-02 12:27 (UTC)

Why does this package not build with make -j$(nproc)? Compiling on all cores would reduce the compile time. Especially, because this package follows the master branch and updates/rebuilds are quite often.