| Summary: | gnatmake -m32 linking fails | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Ron Pucul <repucul> |
| Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
| Status: | CLOSED ERRATA | QA Contact: | qe-baseos-tools-bugs |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.2 | CC: | law, mpolacek, pzhukov |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | gcc-4.4.7-3 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-02-12 22:28:30 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Ron Pucul
2011-10-17 17:40:29 UTC
Do you have all of libgnat{,-devel}-4.4*.{i686,x86_64}.rpm installed?
Since RHEL 6.2 External Beta has begun, and this bug remains unresolved, it has been rejected as it is not proposed as exception or blocker. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. The Gnat packages that are currently installed:(rpm -qa |grep -i gnat) gcc-gnat-4.4.5-6.el6.x86_64 libgnat-devel-4.4.5-6.el6.i686 libgnat-4.4.5-6.el6.i686 libgnat-devel-4.4.5-6.el6.x86_64 libgnat-4.4.5-6.el6.x86_64 If we use the "-m32 --RTS=32" flags (added --RT=32 flag) it works. Suggest the use of this option be mentioned where the -m32 option is in the gcc & gnat pages (http://gcc.gnu.org/onlinedocs/gcc-4.4.4/gnat_ugn_unw/Switches-for-gnatmake.html#S) or equiv. OR earlier. works for me:
$ /bin/echo -e ' procedure Foo is\n begin\n null;\n end Foo;' >foo.adb;rm -f foo.{,all,o};gnatmake -m32 foo.adb;
gcc -c -m32 --RTS=32 foo.adb
gnatbind --RTS=32 -x foo.ali
gnatlink foo.ali -m32
$ rpm -qa | grep -e "gcc\|gnat"
libgnat-4.4.7-3.el6.i686
libgnat-4.4.7-3.el6.x86_64
libgnat-devel-4.4.7-3.el6.i686
libgcc-4.4.7-3.el6.x86_64
libgnat-devel-4.4.7-3.el6.x86_64
gcc-gnat-4.4.7-3.el6.x86_64
libgcc-4.4.7-3.el6.i686
gcc-4.4.7-3.el6.x86_64
gcc-c++-4.4.7-3.el6.x86_64
Yes -- Appears gnatmake has been fixed in gcc-4.4.7-3 to add the --RTS=32 flag to the compilation/bind. Should be fixed then. This was fixed in RHEL 6.4 |