Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 42407

Summary: dev-ada/asis compilation fails
Product: Gentoo Linux Reporter: Sandro Magi <smagi>
Component: [OLD] DevelopmentAssignee: ada team [OBSOLETE] <ada+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sandro Magi 2004-02-21 12:36:08 UTC
'emerge dev-ada/asis' fails as follows:

---

asis-statements.adb:2228:35: (style) space not allowed
asis-statements.adb:2241:35: (style) space not allowed
asis-statements.adb:2253:35: (style) space not allowed
gnatmake: "../asis/asis-statements.adb" compilation error
make: *** [bld-objs] Error 4
make: Leaving directory `/var/tmp/portage/asis-3.15p/work/asis-3.15p-src/obj'

!!! ERROR: dev-ada/asis-3.15p failed.
!!! Function src_compile, Line 26, Exitcode 2
!!! Failed while compiling ASIS

---

I have dev-lang/gnat-5.0_pre20031005 installed, so perhaps the problem is related to the fact that the version do not exactly match. It seems like a stylistic/syntax error though.

Reproducible: Always
Steps to Reproduce:
1. emerge dev-ada/asis
2.
3.

Actual Results:  
Compilation failed. 

Expected Results:  
Compilation should have succeeded.
Comment 1 robertc96 2004-07-16 20:55:31 UTC
A patch is required to fix the unpacking of the file asis-statements.adb for the lines 2228, 2241, 2253.  It seems there is an inappropriate line feed before each of the respective lines which should be removed and inappropriate white space before each parenthesis of the respective lines.  Once removed the asis-statements.adb file compiles. 

However, once patched another compile error occurs.

gnatgcc -c -I./ -I../gnat -I../asis -O2 -march=i686 -fomit-frame-pointer -fPIC -gnatg -gnatwu -gnatwe -I- ../asis/a4g-contt-dp.adb
a4g-contt-dp.adb:301:37: warning: "Result_Unit_Id_List" may be referenced before it has a value
gnatmake: "../asis/a4g-contt-dp.adb" compilation error
make: *** [bld-objs] Error 4
make: Leaving directory `/var/tmp/portage/asis-3.15p/work/asis-3.15p-src/obj'

!!! ERROR: dev-ada/asis-3.15p failed.
!!! Function src_compile, Line 26, Exitcode 2
!!! Failed while compiling ASIS
Comment 2 Maxim Reznik 2005-02-23 09:34:06 UTC
I doubt ASIS for gnat-3.15 will work fine for gnat-5.0.
It seems we need ebuild for http://gnat-asis.sourceforge.net/.
Comment 3 George Shapovalov (RETIRED) gentoo-dev 2006-01-17 15:17:47 UTC
The requested ebuild is in portage, along with new matching gnat.

George