Bug 623209

Summary: Ada program uses word size as 64 bit even when gnatmake is passed -m32 flag
Product: Red Hat Enterprise Linux 5 Reporter: Alan Matsuoka <alanm>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED WONTFIX QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: medium    
Version: 5.5CC: tao
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-11 15:54:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 590060    
Attachments:
Description Flags
test.tar.gz none

Description Alan Matsuoka 2010-08-11 15:47:43 UTC
Arch: x86_64

Problem Description:

The ADA system files that are part of the gcc-gnat package on a 64 bit system hard code word size (the size of an address or a pointer) as 64 bits. It does this even if you pass gnatmake the “-m32” flag.

How Reproducible:

Always

Steps to Reproduce:

Make and run the test program attached

Actual Results:

Opening the file
Writing the full integer
ADA.IO_EXCEPTIONS.DEVICE_ERROR
s-fileio.adb:1083
ADA_WRITE_TEST.FILE_WRITE_ERROR
ada_write_test.adb:58

Expected Results:

Opening the file
Writing the full integer
Closing the file
GOODBYE!

Additional Information:

The issue is fixed upstream with a package restructure. The adainclude and adalib contents have been put in a separate libgnat-devel package so that one may install libgnat-devel.i386 as well as libgnat-devel.x86_64 to get the desired files.

Comment 1 Alan Matsuoka 2010-08-11 15:48:55 UTC
Created attachment 438219 [details]
test.tar.gz

Comment 2 Jakub Jelinek 2010-08-11 15:54:25 UTC
In RHEL5, gnat only supports the primary platform.  The amount of changes for multiarch ada support was huge and are really not backportable.