comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <no.spam@no.spam.com>
Subject: Re: Ada on Mac
Date: Thu, 19 Apr 2007 14:43:34 +0200
Date: 2007-04-19T14:43:34+02:00	[thread overview]
Message-ID: <f07o5n$a1u$1@cernne03.cern.ch> (raw)
In-Reply-To: <1176971260.650981.269080@y80g2000hsf.googlegroups.com>

Hi,

Jerry wrote:

> There is a
> new "experimental" web site at http://www.macada.org/macada/macada/Welcome.html.

OK, thank you for the link.
The package installed correctly (not counting the fact that I have 
downloaded the i386 package whereas the labels in the installation 
window were always PPC - this seems to be a label-only issue).

The compiler works fine, but somehow I cannot link:

~/temp/ada $ gnatmake hello
gcc -c hello.adb
gnatbind -x hello.ali
gnatlink hello.ali
/usr/bin/ld: Undefined symbols:
__Unwind_Resume
__Unwind_ForcedUnwind
__Unwind_GetDataRelBase
__Unwind_GetIP
__Unwind_GetLanguageSpecificData
__Unwind_GetRegionStart
__Unwind_GetTextRelBase
__Unwind_RaiseException
__Unwind_SetGR
__Unwind_SetIP
collect2: ld returned 1 exit status
gnatlink: cannot call /usr/local/ada-4.2/bin/gcc
gnatmake: *** link failed.
~/temp/ada $

I have noticed that there is a separate toolchain, complete together 
with gcc, in /usr/local/ada-4.2/bin, so I have added that to my PATH (at 
the beginning).
Still, the linker fails.

Running gnatlink -v -v on the .ali file gives this output:

~/temp/ada $ gnatlink -v -v hello.ali

GNATLINK 4.2.0 20060409 (experimental)
Copyright 1995-2006, Free Software Foundation, Inc
gcc -c -gnatA -gnatWb -gnatiw -v -gnatws b~hello.adb
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /Users/drew/Developer/Compiler/gcc-head/configure 
--target=i686-apple-darwin8 --host=i686-apple-darwin8 
--build=i686-apple-darwin8 --prefix=/usr/local/ada-4.2 --disable-libssp 
--with-arch=pentium-m --with-tune=prescott --enable-languages=c,ada
Thread model: posix
gcc version 4.2.0 20060409 (experimental)
  /usr/local/ada-4.2/libexec/gcc/i686-apple-darwin8/4.2.0/gnat1 -quiet 
-dumpbase b~hello.adb -gnatA -gnatWb -gnatiw -gnatws -march=pentium-m 
-fPIC b~hello.adb -o /var/tmp//ccPT1Rjw.s
  as -arch i386 -force_cpusubtype_ALL -o b~hello.o /var/tmp//ccPT1Rjw.s
/usr/local/ada-4.2/bin/gcc b~hello.o ./hello.o -v -o hello -L./ 
-L/usr/local/ada-4.2/lib/gcc/i686-apple-darwin8/4.2.0/adalib/ 
/usr/local/ada-4.2/lib/gcc/i686-apple-darwin8/4.2.0/adalib/libgnat.a
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /Users/drew/Developer/Compiler/gcc-head/configure 
--target=i686-apple-darwin8 --host=i686-apple-darwin8 
--build=i686-apple-darwin8 --prefix=/usr/local/ada-4.2 --disable-libssp 
--with-arch=pentium-m --with-tune=prescott --enable-languages=c,ada
Thread model: posix
gcc version 4.2.0 20060409 (experimental)
  /usr/local/ada-4.2/libexec/gcc/i686-apple-darwin8/4.2.0/collect2 
-dynamic -arch i386 -weak_reference_mismatches non-weak -o hello 
-lcrt1.o -L./ 
-L/usr/local/ada-4.2/lib/gcc/i686-apple-darwin8/4.2.0/adalib/ 
-L/usr/local/ada-4.2/lib/gcc/i686-apple-darwin8/4.2.0 
-L/usr/local/ada-4.2/lib/gcc/i686-apple-darwin8/4.2.0/../../.. b~hello.o 
./hello.o 
/usr/local/ada-4.2/lib/gcc/i686-apple-darwin8/4.2.0/adalib/libgnat.a 
-lgcc -lSystem
/usr/bin/ld: Undefined symbols:
__Unwind_Resume
__Unwind_ForcedUnwind
__Unwind_GetDataRelBase
__Unwind_GetIP
__Unwind_GetLanguageSpecificData
__Unwind_GetRegionStart
__Unwind_GetTextRelBase
__Unwind_RaiseException
__Unwind_SetGR
__Unwind_SetIP
collect2: ld returned 1 exit status
gnatlink: cannot call /usr/local/ada-4.2/bin/gcc
~/temp/ada $

Any thoughts?

> **DO** join the mailing list which is very responsive.

comp.lang.ada is responsive, too! ;-)


-- 
Maciej Sobczak : http://www.msobczak.com/
Programming    : http://www.msobczak.com/prog/



  reply	other threads:[~2007-04-19 12:43 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-19  7:50 Ada on Mac Maciej Sobczak
2007-04-19  8:27 ` Jerry
2007-04-19 12:43   ` Maciej Sobczak [this message]
2007-04-19 13:28     ` Benjamin Place
2007-04-26  1:35     ` John B. Matthews
2007-04-26 10:26       ` Maciej Sobczak
  -- strict thread matches above, loose matches on Subject: below --
2008-09-10 23:08 Martin
2008-09-11  1:28 ` Michael Feldman
2008-09-11  8:36   ` Martin
2008-09-11  8:49   ` Jerry
2008-09-11 12:39     ` Samuel Tardieu
2008-09-11 14:12       ` Georg Bauhaus
2008-09-11 19:19         ` Simon Wright
2008-09-11 20:03           ` Jerry
2008-09-13  2:08     ` John B. Matthews
2008-09-15 19:34 ` Martin Krischik
2008-09-29 10:56   ` Ludovic Brenta
2008-09-30  5:58     ` Martin Krischik
2008-09-30 10:53       ` Ludovic Brenta
2008-09-30 13:50         ` Martin Krischik
2008-09-30 14:16           ` Ludovic Brenta
2000-05-09  0:00 don_harrison
2000-05-09  0:00 ` Robert Dewar
2000-05-15  0:00   ` John
2000-05-15  0:00     ` Wes Groleau
2000-05-16  0:00       ` james hopper
2000-05-09  0:00 ` Robert Dewar
replies disabled

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