comp.lang.ada
 help / color / mirror / Atom feed
* 64-bit for gcc-gnat-3.3.2
@ 2003-11-19  8:21 Adrian Hoe
  2003-12-07  9:21 ` Andreas Almroth
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian Hoe @ 2003-11-19  8:21 UTC (permalink / raw)


I have managed to build gcc-gnat 3.3.2 for Sparc/Solaris 9 but there is 
no support for 64-bit.

I pass -m64 to gnatmake and the following error messages appeared:

pyxis2% gnatmake transfer.adb -lgnat 
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2
.9/3.3.2/adalib/ -m64 
--RTS=/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/
gcc -c -lgnat -m64 
--RTS=/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/ tran
sfer.adb
s-stalib.ads:67:04: warning: types for unchecked conversion have 
different sizes
gcc: -lgnat: linker input file unused because linking not done
gcc -c -lgnat -m64 
--RTS=/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/ adaf
tp.adb
s-stalib.ads:67:04: warning: types for unchecked conversion have 
different sizes
gcc: -lgnat: linker input file unused because linking not done
gcc -c -lgnat -m64 
--RTS=/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/ adaf
tp-ftp.adb
s-stalib.ads:67:04: warning: types for unchecked conversion have 
different sizes
a-tags.adb:92:04: warning: types for unchecked conversion have different 
sizes
a-tags.adb:95: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:421:04: warning: types for unchecked conversion have 
different sizes
a-tags.adb:426:04: warning: types for unchecked conversion have 
different sizes
gcc: -lgnat: linker input file unused because linking not done
gnatbind -aO./ --RTS=/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/ 
-I- -x t
ransfer.ali
gnatlink -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/adalib/ 
transfer.al
i
ld: fatal: file b~transfer.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to transfer
collect2: ld returned 1 exit status
gnatlink: cannot call /usr/local/bin/gcc
gnatmake: *** link failed.


I believe my gcc-gnat 3.3.2 does not support 64 bit. How do I check? How 
  do I build gnat with 32- and 64-bit support? What have I missed?

Thanks.
-- 
Adrian Hoe
m a i l b o x AT a d r i a n h o e . c o m




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 64-bit for gcc-gnat-3.3.2
  2003-11-19  8:21 64-bit for gcc-gnat-3.3.2 Adrian Hoe
@ 2003-12-07  9:21 ` Andreas Almroth
  2003-12-08  9:03   ` Andreas Almroth
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Almroth @ 2003-12-07  9:21 UTC (permalink / raw)


Adrian Hoe wrote:
 > I have managed to build gcc-gnat 3.3.2 for Sparc/Solaris 9 but there is
 > no support for 64-bit.
 >

Do you have 64 bit support when compiling C programs?
On SPARC and other platforms, you must supply the --with-multilib option
to the configure script. This will build all supported variants of the
compiler (32 and 64 on SPARC).

<snip>

 > I believe my gcc-gnat 3.3.2 does not support 64 bit. How do I check? How
 >  do I build gnat with 32- and 64-bit support? What have I missed?
 >

I may be wrong here, but I don't think the Ada part of gcc supports 64
bit. That is my experience when trying to compile with gcc.
There are a few static settings which use 32 bit only.
I imagine if one replace 32 with 64 in system.ads interesting things
would start to happen... Only for the  bravest to try... ;-)


 > Thanks.

/Andreas




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 64-bit for gcc-gnat-3.3.2
  2003-12-07  9:21 ` Andreas Almroth
@ 2003-12-08  9:03   ` Andreas Almroth
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Almroth @ 2003-12-08  9:03 UTC (permalink / raw)


Andreas Almroth wrote:
> I may be wrong here, but I don't think the Ada part of gcc supports 64
> bit. That is my experience when trying to compile with gcc.
> There are a few static settings which use 32 bit only.
> I imagine if one replace 32 with 64 in system.ads interesting things
> would start to happen... Only for the  bravest to try... ;-)
> 

I have had a bit of a look through the source code, and it seems to be 
support for 64 bit integers, but the RTS does not seem to take this into 
account, unless you change the Integer type to be 64 bit, or change to 
Long_Integer in cases where it is needed.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-12-08  9:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-19  8:21 64-bit for gcc-gnat-3.3.2 Adrian Hoe
2003-12-07  9:21 ` Andreas Almroth
2003-12-08  9:03   ` Andreas Almroth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox