This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/42518] New: Alignment issue prevents building 64 bit RTS on Snow Leopard
- From: "simon at pushface dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Dec 2009 22:19:52 -0000
- Subject: [Bug ada/42518] New: Alignment issue prevents building 64 bit RTS on Snow Leopard
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
While attempting to compile a-direct.adb the build fails with
/Users/simon/gcc-build/./gcc/xgcc -B/Users/simon/gcc-build/./gcc/
-B/opt/gcc-4.4.2-x86_64/x86_64-apple-darwin10.2.0/bin/
-B/opt/gcc-4.4.2-x86_64/x86_64-apple-darwin10.2.0/lib/ -isystem
/opt/gcc-4.4.2-x86_64/x86_64-apple-darwin10.2.0/include -isystem
/opt/gcc-4.4.2-x86_64/x86_64-apple-darwin10.2.0/sys-include -c -g -O2 -fPIC
-pipe -fno-common -W -Wall -gnatpg a-direct.adb -o
a-direct.o
a-direct.ads:424:09: alignment for "Search_Typeb82s" must be at least 8
a-direct.ads:424:09: alignment for "Search_Typer80s" must be at least 8
a-direct.ads:424:09: alignment for "Search_Typet77s" must be at least 8
make[6]: *** [a-direct.o] Error 1
I constructed a small test case
with Ada.Finalization;
package Bug_Investigation is
type C is new Ada.Finalization.Controlled with null record;
end Bug_Investigation;
which failed in the same way:
$ /Users/simon/gcc-build/./gcc/xgcc -B/Users/simon/gcc-build/./gcc/
-B/opt/gcc-4.4.2-x86_64/x86_64-apple-darwin10.2.0/bin/
-B/opt/gcc-4.4.2-x86_64/x86_64-apple-darwin10.2.0/lib/ -isystem
/opt/gcc-4.4.2-x86_64/x86_64-apple-darwin10.2.0/include -isystem
/opt/gcc-4.4.2-x86_64/x86_64-apple-darwin10.2.0/sys-include -c -g -O2 -fPIC
-pipe -fno-common -W -Wall -gnatpg bug_investigation.ads
-o bug_investigation.o
bug_investigation.ads:3:09: alignment for "Cb43s" must be at least 8
bug_investigation.ads:3:09: alignment for "Cr41s" must be at least 8
bug_investigation.ads:3:09: alignment for "Ct38s" must be at least 8
For info, Xcode 3.2.1.
$ /Users/simon/gcc-build/./gcc/xgcc -v
Using built-in specs.
Target: x86_64-apple-darwin10.2.0
Configured with: ../gcc-4.4.2/configure --prefix=/opt/gcc-4.4.2-x86_64
--with-gmp=/opt/gnu --with-mpfr=/opt/gnu --disable-multilib
--enable-languages=c,ada --build=x86_64-apple-darwin10.2.0
Thread model: posix
gcc version 4.4.2 (GCC)
--
Summary: Alignment issue prevents building 64 bit RTS on Snow
Leopard
Product: gcc
Version: 4.4.2
Status: UNCONFIRMED
Severity: blocker
Priority: P3
Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: simon at pushface dot org
GCC build triplet: x86_64-apple-darwin10.2.0
GCC host triplet: i386-apple-darwin10.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42518