comp.lang.ada
 help / color / mirror / Atom feed
From: rm@gunlab.com.ru (Roman V. Isaev)
Subject: Re: OpenBSD 3.5 & GNAT
Date: 5 Jun 2004 15:42:57 -0700
Date: 2004-06-05T15:42:57-07:00	[thread overview]
Message-ID: <d3ba4d4c.0406051442.47563ddb@posting.google.com> (raw)
In-Reply-To: d3ba4d4c.0406031512.606a4217@posting.google.com

rm@gunlab.com.ru (Roman V. Isaev) wrote in message news:<d3ba4d4c.0406031512.606a4217@posting.google.com>...
> > > 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?



      parent reply	other threads:[~2004-06-05 22:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-03 10:52 OpenBSD 3.5 & GNAT Roman V. Isaev
2004-06-03 11:20 ` Jeff C,
2004-06-03 23:12   ` Roman V. Isaev
2004-06-04  6:15     ` Craig Carey
2004-06-04 10:43       ` Adrian Knoth
2004-06-04 23:51         ` Craig Carey
2004-06-05 22:42     ` Roman V. Isaev [this message]
replies disabled

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