comp.lang.ada
 help / color / mirror / Atom feed
* gnat compilation fails with missing symbols
@ 1998-05-27  0:00 Andreas Jungmaier
  1998-05-27  0:00 ` Robert Dewar
  1998-05-28  0:00 ` Robert Dewar
  0 siblings, 2 replies; 4+ messages in thread
From: Andreas Jungmaier @ 1998-05-27  0:00 UTC (permalink / raw)



Hello all,

in my quest :) for compiling gcc with gnat from the  sources,
I have stumbled across the following message several times,
regardless whether I do this with gcc-2.7.2.1, gcc-2.7.2.3 or 
even gcc-2.8.1, so I am not sure what is going wrong.
In the bind/link part of compilation in the ada-dir, when

gcc  -DIN_GCC   -O2   -o ../gnat1 `cat ../stamp-objlist` b_gnat1.o....

is run, followed by a long list of object files, that pops up:
a-misc.o: In function `yyparse':
a-misc.o(.text+0x16): undefined reference to `__builtin_setjmp'
a-raise.o: In function `__gnat_raise_nodefer_with_msg':
a-raise.o(.text+0xc4): undefined reference to `__builtin_longjmp'      

Now, I have done an nm search in all directories of the distribution,
but, as you may already have guessed, I didn't find what I was looking
for.
The system I am working on is RedHat-5.0, with glibc-2.0.7, gcc-2.7.2.1
from the gnat-3.10p-binary distribution, and I modified the ada
source files 5iosinte.ads/5losinte.ads with the following diff
<    type sigset_t is new unsigned_long;
---
>    type sigset_t is array (1 .. 32) of unsigned_long;
>    pragma Pack (sigset_t);    
as well as a-init.c with
39a40,41
> #define NULL 0
>                    

Any ideas ? 

-------------------------------------------------------------------------
Andreas Jungmaier  		ajung@teisa.unican.es
-------------------------------------------------------------------------





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gnat compilation fails with missing symbols
  1998-05-27  0:00 gnat compilation fails with missing symbols Andreas Jungmaier
@ 1998-05-27  0:00 ` Robert Dewar
  1998-05-28  0:00   ` Ronald Cole
  1998-05-28  0:00 ` Robert Dewar
  1 sibling, 1 reply; 4+ messages in thread
From: Robert Dewar @ 1998-05-27  0:00 UTC (permalink / raw)



<<is run, followed by a long list of object files, that pops up:
a-misc.o: In function `yyparse':
a-misc.o(.text+0x16): undefined reference to `__builtin_setjmp'
a-raise.o: In function `__gnat_raise_nodefer_with_msg':
a-raise.o(.text+0xc4): undefined reference to `__builtin_longjmp'
>>

You are using the wrong C compiler. Read the directions carefully and
follow them exactly!





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gnat compilation fails with missing symbols
  1998-05-27  0:00 gnat compilation fails with missing symbols Andreas Jungmaier
  1998-05-27  0:00 ` Robert Dewar
@ 1998-05-28  0:00 ` Robert Dewar
  1 sibling, 0 replies; 4+ messages in thread
From: Robert Dewar @ 1998-05-28  0:00 UTC (permalink / raw)



<<a-misc.o: In function `yyparse':
a-misc.o(.text+0x16): undefined reference to `__builtin_setjmp'
a-raise.o: In function `__gnat_raise_nodefer_with_msg':
a-raise.o(.text+0xc4): undefined reference to `__builtin_longjmp'
>>

This is typical of using the wrong C compiler. It is important to follow
the instructions carefully and exactly.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gnat compilation fails with missing symbols
  1998-05-27  0:00 ` Robert Dewar
@ 1998-05-28  0:00   ` Ronald Cole
  0 siblings, 0 replies; 4+ messages in thread
From: Ronald Cole @ 1998-05-28  0:00 UTC (permalink / raw)



dewar@merv.cs.nyu.edu (Robert Dewar) writes:
> <<is run, followed by a long list of object files, that pops up:
> a-misc.o: In function `yyparse':
> a-misc.o(.text+0x16): undefined reference to `__builtin_setjmp'
> a-raise.o: In function `__gnat_raise_nodefer_with_msg':
> a-raise.o(.text+0xc4): undefined reference to `__builtin_longjmp'
> >>
> 
> You are using the wrong C compiler. Read the directions carefully and
> follow them exactly!

What Robert means is that there are patches in the GNAT source tree to
be applied to gcc-2.7.2.x so that it will support GNAT.  If you are
using a gcc built without those patches, then "you are using the wrong
C compiler".

-- 
Forte International, P.O. Box 1412, Ridgecrest, CA  93556-1412
Ronald Cole <ronald@forte-intl.com>      Phone: (760) 499-9142
President, CEO                             Fax: (760) 499-9152
My PGP fingerprint: 15 6E C7 91 5F AF 17 C4  24 93 CB 6B EB 38 B5 E5




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-05-28  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-05-27  0:00 gnat compilation fails with missing symbols Andreas Jungmaier
1998-05-27  0:00 ` Robert Dewar
1998-05-28  0:00   ` Ronald Cole
1998-05-28  0:00 ` Robert Dewar

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