Progress with 32-bit compiles with 64-bit compiler and related GLADE issues

Progress with 32-bit compiles with 64-bit compiler and related GLADE issues

Post by Dr. Adrian » Wed, 29 Mar 2006 10:24:13


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://www.yqcomputer.com/

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.
 
 
 

1. [CHANGED] VS 64-bit...VS 32-bit and Windows 32-bit on CPU 64-bit

2. 32-bit Number * 32-bit Number = 64-bit result -> What about 32-bit operators?

In comp.lang.javascript message < XXXX@XXXXX.COM >, Sun, 3 May
2009 22:57:31, Lasse Reichstein Nielsen < XXXX@XXXXX.COM > posted:

Good.

The FAQ apparently contains no mention of 32-bit within JavaScript, and
no instance of the operators | ~ ^ >> >>> << . There're not often asked
about, but they fairly often appear in solutions here.

Using >>>0 seems to be the way to get an unsigned result from a signed
one by apparently adding 2^32 if necessary. That might be wanted by the
OP. The reverse is done by |0 .

I have a page partly about those operators, "JavaScript Uses of
Operators",
<URL: http://www.yqcomputer.com/ ; (I must update it to
answer the question I just asked myself) ... (I did).

<FAQENTRY> Something about 32-bit.
<FAQENTRY> Which parts of JavaScript get no mention in the FAQ?

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL: http://www.yqcomputer.com/ ; - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)

3. compiling on 32-bit vs. 64-bit (gcc fails on 64-bit)

4. Windows 7 64 bit - FileMaker 32 bit: MySQL-driver 64 bit or 32 bit?

5. 64-Bit Compiler Would Help Sell More 32-Bit Compilers

6. 32-Bit TAPISRV with 64-Bit RemoteSP (and 32-Bit TapiClient) ge

7. retail Home Premium 32-bit to Ultimate 32-bit to Ultimate 64-bit.

8. Ubuntu 32-bit, 32-bit PAE, 64-bit Kernel Benchmarks

9. 32-Bit TAPISRV with 64-Bit RemoteSP (and 32-Bit TapiClient) gets n

10. 32-bit Number * 32-bit Number = 64-bit result

11. 32-Bit TAPISRV with 64-Bit RemoteSP (and 32-Bit TapiClient) gets no incoming calls

12. Can I install 64-bit VM on 32-bit OS running on 64-bit CPU?

13. Can you run 64-bit and 32-bit SQL server on same 64-bit Server

14. AIX 64-bit kernel vs. 32-bit with 64-bit extensions