comp.lang.ada
 help / color / mirror / Atom feed
* Progress with 32-bit compiles with 64-bit compiler and related GLADE issues
@ 2006-03-28  1:24 Dr. Adrian Wrigley
  0 siblings, 0 replies; only message in thread
From: Dr. Adrian Wrigley @ 2006-03-28  1:24 UTC (permalink / raw)


Hi all!

Progress so far...

I have been using the x86_64 GNAT, version 4.1.0 to compile
32-bit and 64-bit code. (I'm on Fedora Core 5 at the moment!)

The "-m32" option didn't work for GNAT without a bit of
messing around.  First I had to install a 32-bit libgnat.a, but
that didn't work until I put in a link from libgnat-4.1.a
into /usr/lib  (it should get it from a separate
x86_64-redhat-linux/4.1.0/32 directory, but doesn't.

Running "gnatmake -m32 ..." now builds working 32-bit executables,
but I am left with the warning:

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-lin...
  ux/4.1.0/adalib//libgnat-4.1.so when searching for -lgnat-4.1

since it is still looking in the directory for the wrong architecture :(

Is anyone out there routinely using the compiler for 32-bit
and 64-bit compilations with the same compiler?  How can I
fully specify the libraries in gnatlink, removing the incorrect
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.0/adalib/ parameter when
compiling 32-bit?  Was my compiler built properly? - it compiles
and links 32-bit C OK, but not Ada :(

Moving on, I have been trying to use the x86_64 "gate" from GtkAda to
build GUIs.  It always crashes in gate-in.exe with a segmentation fault.
This issue has been discussed at:

http://lists.adacore.com/pipermail/gtkada/2005-October/003434.html

but so far, no-one seems to have a solution or diagnosis.
Is anyone out there using "gate" successfully on x86_64 Linux?
I get the impression that "gate" is broken in many 64-bit Linuxes.

Finally, I'm hoping to run Annex E programs with 32- and 64-bit
partitions with GLADE.  Unfortunately, I can't seem to get
gnatdist to build 32-bit code, since the "-m32" compiler
argument is always rejected. I expect to use:

gnatdist guidist.cfg -cargs -m32

but it always gives "gnatdist: *** wrong argument(s)" error.
In fact, I can only get certain "-cargs" arguments to pass through
properly (depending on initial letter?).  Everything else gives
the argument error.

The GLADE mailing list seems to be rather spammed at the moment,
so I thought I'd try my luck here...

Thanks for any suggestions!
--
Adrian

PS: I know an ACT support contract might seem sensible, but for
a small-scale operation, the cost is prohibitive at the moment.




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-28  1:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-28  1:24 Progress with 32-bit compiles with 64-bit compiler and related GLADE issues Dr. Adrian Wrigley

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