Bug 623209 - Ada program uses word size as 64 bit even when gnatmake is passed -m32 flag
Summary: Ada program uses word size as 64 bit even when gnatmake is passed -m32 flag
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gcc
Version: 5.5
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jakub Jelinek
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks: 590060
TreeView+ depends on / blocked
 
Reported: 2010-08-11 15:47 UTC by Alan Matsuoka
Modified: 2018-10-27 11:58 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-11 15:54:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
test.tar.gz (1.33 KB, application/x-gzip)
2010-08-11 15:48 UTC, Alan Matsuoka
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.