Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74268 - Error compiling adabindx with gnat 3.4.1
Summary: Error compiling adabindx with gnat 3.4.1
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: ada team [OBSOLETE]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-13 03:08 UTC by Bobby D. Bryant
Modified: 2005-02-23 09:36 UTC (History)
0 users

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


Attachments
Modified .ebuild to fix the compilation problem under gnat 3.4.1 (adabindx-0.7.2-r1.ebuild,1.83 KB, text/plain)
2004-12-16 00:39 UTC, Bobby D. Bryant
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bobby D. Bryant 2004-12-13 03:08:20 UTC
When the emerge compilation gets to Interfaces.C.Strings.String_Lists (i-csstli.adb), you get a warning that Elmt_Size is not modified and thus could be declared a constant, but then it says "treated as error". Later, when it gets to the first package that with's Interfaces.C.Strings.String_Lists it complains that the with'd package "no longer exists"

FYI, you can work around it and get a clean emerge if you modify i-csstli.adb to make Elmt_Size a constant in the declaration.

Reproducible: Always
Steps to Reproduce:
emerge adabindx


Actual Results:  
emerge fails

Expected Results:  
emerge succedes

Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.9-gentoo-r4 i686)
=================================================================
System uname: 2.6.9-gentoo-r4 i686 AMD Athlon(TM) XP 2100+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1,sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -falign-functions=4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -falign-functions=4 -fomit-frame-pointer"
DISTDIR="/saves/portage/sources"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict userpriv
usersandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.osuosl.org/"
MAKEOPTS="-j2"
PKGDIR="/saves/portage/packages"
PORTAGE_TMPDIR="/saves/portage/temp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/saves/portage/saved-ebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X alsa amd apm avi berkdb bitmap-fonts bonobo cdr crypt cups doc dvd
emacs encode esd f77 fam flac foomatic foomaticdb fortran freetype gdbm gif gimp
gimpprint glade glut gnome gpm gstreamer gtk gtk2 gtkhtml guile image
imagemagick imlib imlib2 java javascript jpeg junit lcms libg++ libwww mad
mikmod mixer mmx mng motif mozilla mpeg mpeg4 mplayer music mysql ncurses nls
nptl offensive oggvorbis openal opengl openssh oss pam pdflib perl plotutils png
ppds python quicktime rage128 readline regex ruby sdk sdl slang sndfile spell
src sse ssl svga tcltk tcpd tetex tiff timidity truetype type1 unicode videos
x86 xine xml xml2 xmms xv zlib"
Comment 1 Bobby D. Bryant 2004-12-16 00:39:26 UTC
Created attachment 46104 [details]
Modified .ebuild to fix the compilation problem under gnat 3.4.1

This revised ebuild (dubbed "-r1") adds the following line to src_unpack(), to
fix broken compilation under gnat 3.4.1 -

sed -i -e "s/Elmt_Size : size_t/Elmt_Size : constant size_t/" lib/i-csst

I think this will work for older versions of gnat as well, but I have not tried
it.
Comment 2 David Holm (RETIRED) gentoo-dev 2005-02-23 09:36:57 UTC
Thank you Bobby, commited to CVS.