gnat on x32

34 views
Skip to first unread message

Daniel Schepler

unread,
Sep 7, 2014, 1:51:25 PM9/7/14
to x32...@googlegroups.com
Is gnat-4.9 supposed to work on x32, or is it currently unsupported?  I'm suspecting it's unsupported: when I tried to build a cross-compiler from x86_64 to x32, I got numerous errors in the standard library build like

/home/builder/gcc-4.9/gcc-4.9-4.9.1/build/./gcc/xgcc -B/home/builder/gcc-4.9/gcc-4.9-4.9.1/build/./gcc/ -c -g -O2  -W -Wall -gnatpg -nostdinc -g  \
      a-tags.adb -o a-tags.o
a-tags.adb:82:04: warning: types for unchecked conversion have different sizes
a-tags.adb:85:04: warning: types for unchecked conversion have different sizes
a-tags.adb:90:04: warning: types for unchecked conversion have different sizes
a-tags.adb:93:04: warning: types for unchecked conversion have different sizes
a-tags.adb:96:04: warning: types for unchecked conversion have different sizes
a-tags.adb:102:04: warning: types for unchecked conversion have different sizes
a-tags.adb:105:04: warning: types for unchecked conversion have different sizes
a-tags.adb:108:04: warning: types for unchecked conversion have different sizes
a-tags.adb:111:04: warning: types for unchecked conversion have different sizes
a-tags.adb:766:07: warning: types for unchecked conversion have different sizes
../gcc-interface/Makefile:2834: recipe for target 'a-tags.o' failed
make[7]: *** [a-tags.o] Error 1

And in src/gcc/ada/system-linux-x86_64.ads, it looks like it does declare System.Memory_Size := 2**64, unconditionally.

Daniel Schepler

unread,
Sep 7, 2014, 2:29:16 PM9/7/14
to x32...@googlegroups.com
On closer inspection, the Ada build files do contain some support for x32, but it seems it's not being activated in my case.  Maybe that's because I'm not compiling x32 as multilib, but as the primary target using --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnux32 --with-abi=mx32?
Reply all
Reply to author
Forward
0 new messages