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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,21541ce5f449bd0 X-Google-Attributes: gid103376,public Path: g2news1.google.com!postnews1.google.com!not-for-mail From: rm@gunlab.com.ru (Roman V. Isaev) Newsgroups: comp.lang.ada Subject: Re: OpenBSD 3.5 & GNAT Date: 5 Jun 2004 15:42:57 -0700 Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 195.151.20.194 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1086475377 8354 127.0.0.1 (5 Jun 2004 22:42:57 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 5 Jun 2004 22:42:57 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:1142 Date: 2004-06-05T15:42:57-07:00 List-Id: rm@gunlab.com.ru (Roman V. Isaev) wrote in message news:... > > > Is there any way to install GNAT on new OpenBSD systems 3.4 and 3.5? > > > They switched to ELF and they don't have GNAT package anymore. I tried > > > to install old package, enabled a.out, but when I try to run gnatmake > > > I get an error: > > > Bad magic: ld.so > > > Apparently ld.so is an ELF binary too. Any clues? I googled for > > > answers but did not find anything... > > Can you find a complete gcc 3.4 release binary for OpenBSD and use that? > Can't find so far. I wonder is it possible to run old GNAT with a.out > emulation, or they made it impossible? Ugh. I found a way to run GNAT from OpenBSD 3.3 on OpenBSD 3.4. I had to make /emul/a.out directory and untar base33.tgz and comp33.tgz there, all details in there in compat_aout. GNAT did compile simple Ada programs, but when I tried to compile AWS it complained a lot about pragmas and when I finally got library it refused to link. I get a bunch of errors about unresolved _inflate and _deflate references, no matter how much -lz flags I gave... Anyway, GNAT from OpenBSD 3.3 produces a.out binaries. I downloaded GCC 3.4 and tried to compile it. When I compile it with default GCC from OpenBSD 3.4 I get normal C compiler, but no Ada compiler at all. When I try to compile GCC 3.4 with GCC 3.2.2 from previous OpenBSD release it DOES find Ada I get a big bunch of errors like this: .... /tmp//ccV19391.s:11387: Error: cannot represent relocation type BFD_RELOC_386_PLT32 /tmp//ccV19391.s:11391: Error: cannot represent relocation type BFD_RELOC_386_PLT32 /tmp//ccV19391.s:11418: Error: cannot represent relocation type BFD_RELOC_386_GOTPC /tmp//ccV19391.s:11461: Error: cannot represent relocation type BFD_RELOC_386_PLT32 /tmp//ccV19391.s:11469: Error: cannot represent relocation type BFD_RELOC_386_PLT32 /tmp//ccV19391.s:11477: Error: cannot represent relocation type BFD_RELOC_386_PLT32 gmake[1]: *** [regex.o] Error 1 gmake[1]: Leaving directory `/usr/local/src/gcc-3.4.0/libiberty' gmake: *** [all-libiberty] Error 2 Any clues? May be I did not install something important? By the way, is it possible to compile part of GCC 3.4 with system GCC and Ada part with 3.2.2?