From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c396904d69a851b4,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!newspeer1-win.ntli.net!newsfe3-win.ntli.net.POSTED!53ab2750!not-for-mail From: "Dr. Adrian Wrigley" Subject: Progress with 32-bit compiles with 64-bit compiler and related GLADE issues User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Message-Id: Newsgroups: comp.lang.ada MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Tue, 28 Mar 2006 01:24:13 GMT NNTP-Posting-Host: 82.10.238.153 X-Trace: newsfe3-win.ntli.net 1143509053 82.10.238.153 (Tue, 28 Mar 2006 02:24:13 BST) NNTP-Posting-Date: Tue, 28 Mar 2006 02:24:13 BST Organization: NTL Xref: g2news1.google.com comp.lang.ada:3665 Date: 2006-03-28T01:24:13+00:00 List-Id: 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.