comp.lang.ada
 help / color / mirror / Atom feed
From: "John B. Matthews" <nospam@nospam.com>
Subject: Re: Ada on Mac
Date: Wed, 25 Apr 2007 21:35:18 -0400
Date: 2007-04-25T21:35:18-04:00	[thread overview]
Message-ID: <nospam-047543.21351825042007@news-server.woh.rr.com> (raw)
In-Reply-To: f07o5n$a1u$1@cernne03.cern.ch

In article <f07o5n$a1u$1@cernne03.cern.ch>,
 Maciej Sobczak <no.spam@no.spam.com> wrote:
> Hi,
> Jerry wrote:
> > There is a new "experimental" web site at 
> > http://www.macada.org/macada/macada/Welcome.html.
> [...]
> 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.

The missing symbols are in libgcc_s.1.dylib. Depending on your 
LD_LIBRARY PATH, you may have to specify the search path, too:

gnatmake hello -largs -L/usr/local/ada-4.2/lib -lgcc_s.1

This is a problem in the 4.2 compiler; it's fixed in 4.3, but that has 
other problems; 3.3 is very stable, but a tad old:-)

See also the mailing list archive: 
<http://hermes.gwu.edu/cgi-bin/wa?A2=ind0704&L=gnat-osx&D=0&P=3092>. 

John
--
jmatthews at wright dot edu

> 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! ;-)



  parent reply	other threads:[~2007-04-26  1:35 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
2007-04-19 13:28     ` Benjamin Place
2007-04-26  1:35     ` John B. Matthews [this message]
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