Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273252 - sci-electronics/ghdl-0.27 fails to compile
Summary: sci-electronics/ghdl-0.27 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The Soldering-Iron Brotherhood
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-08 20:53 UTC by Iwan Aucamp
Modified: 2009-06-20 03:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iwan Aucamp 2009-06-08 20:53:28 UTC
gnatgcc -c -I./ -I../../.././gcc/vhdl/grt -gnatec../../.././gcc/vhdl/grt/grt.adc -O -g -I- /var/tmp/portage/sci-electronics/ghdl-0.27/work/gcc-4.2.4/gcc/vhdl/grt/grt-lib.adb
gnatgcc -c -I./ -I../../.././gcc/vhdl/grt -gnatec../../.././gcc/vhdl/grt/grt.adc -O -g -I- /var/tmp/portage/sci-electronics/ghdl-0.27/work/gcc-4.2.4/gcc/vhdl/grt/grt-modules.adb
grt-vcd.ads:24:09: tagged types not allowed in no run time mode
gnatmake: "/var/tmp/portage/sci-electronics/ghdl-0.27/work/gcc-4.2.4/gcc/vhdl/grt/grt-modules.adb" compilation error
make[4]: *** [run-bind.adb] Error 4
make[4]: Leaving directory `/var/tmp/portage/sci-electronics/ghdl-0.27/work/gcc-4.2.4/host-i686-pc-linux-gnu/gcc/vhdl'
make[3]: *** [ghdllib] Error 2
make[3]: Leaving directory `/var/tmp/portage/sci-electronics/ghdl-0.27/work/gcc-4.2.4/host-i686-pc-linux-gnu/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sci-electronics/ghdl-0.27/work/gcc-4.2.4'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sci-electronics/ghdl-0.27/work/gcc-4.2.4'
make: *** [all] Error 2
 * 
 * ERROR: sci-electronics/ghdl-0.27 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line  821:  Called die
 * The specific snippet of code:
 *       emake -j1 || die "Compilation failed"
 *  The die message:
 *   Compilation failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sci-electronics/ghdl-0.27/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-electronics/ghdl-0.27/temp/environment'.
 * 

>>> Failed to emerge sci-electronics/ghdl-0.27, Log file:

>>>  '/var/tmp/portage/sci-electronics/ghdl-0.27/temp/build.log'


Reproducible: Always

Steps to Reproduce:
1. emerge -v sci-electronics/ghdl


Actual Results:  
grt-vcd.ads:24:09: tagged types not allowed in no run time mode

Expected Results:  
should compile











$ emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-i686-Intel-R-_Core-TM-2_Duo_CPU_E4500_@_2.20GHz-with-glibc2.0
Timestamp of tree: Mon, 08 Jun 2009 18:30:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--bwlimit=10"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/lottanzb /usr/portage/local/layman/science /usr/portage/local/layman/dev-zero /usr/portage/local/layman/sabayon /usr/portage/local/layman/sunrise /usr/portage-local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X accessibility acl bash-completion berkdb bzip2 cli cracklib crypt cups cxx dbus doc dri ffmpeg fortran gdbm gecko gpm hal iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl pppd python readline reflection session slit spl ssl sysfs tcpd toolbar unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias        auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile        authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires        ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation        rewrite setenvif speling status unique_id userdir usertrack vhost_alias proxy" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 hiyuh 2009-06-11 11:52:50 UTC
I'm stuck too. :D

Iwan,
Which version of dev-lang/gnat-gcc are you using?
Mine is 4.3.3.
And I'll test w/ 4.2.3 later.
Comment 2 scosu 2009-06-11 14:43:15 UTC
Hi

i had this problem, too. But this patch helped: http://www.mail-archive.com/ghdl-discuss@gna.org/msg00370.html . Don't know if everything works fine because i'm just a beginner in vhdl and especially ghdl ;). But it compiled successfully
Comment 3 hiyuh 2009-06-12 02:21:29 UTC
w/ dev-lang/gnat-gcc-4.2.3 is OK to me.
devs, please correct this dep. or, add patch of comment #2. :) 
Comment 4 Denis Dupeyron (RETIRED) gentoo-dev 2009-06-12 07:04:31 UTC
(In reply to comment #3)
> w/ dev-lang/gnat-gcc-4.2.3 is OK to me.
> devs, please correct this dep. or, add patch of comment #2. :) 

The patch in comment #2 doesn't work except for the simplest test cases. So what we need is to build with a 4.2 version of gnat-gcc. Unfortunately this isn't as simple as depending on dev-lang/gnat-gcc:4.2 since gnat-gcc is slotted and if for any reason you also have a later slot than 4.2 installed then it will pick this later version and will fail to compile. I'm working on something but it still doesn't work. If you have ideas feel free to submit them here.

Denis.
Comment 5 Denis Dupeyron (RETIRED) gentoo-dev 2009-06-20 03:49:35 UTC
I have finally found a way to fix this without revbump. I'm not totally happy yet with the ebuild, but at least it works. Thanks to all of you for reporting this.

Denis.