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-Thread: 103376,970adb6ef07d5ccf X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!63.218.45.10!nx01.iad01.newshosting.com!newshosting.com!post01.iad01!roadrunner.com!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: Ada on Mac Organization: wright.edu References: <1176971260.650981.269080@y80g2000hsf.googlegroups.com> User-Agent: MT-NewsWatcher/3.5.1 (Intel Mac OS X) Date: Wed, 25 Apr 2007 21:35:18 -0400 Message-ID: X-Complaints-To: abuse@rr.com Xref: g2news1.google.com comp.lang.ada:15297 Date: 2007-04-25T21:35:18-04:00 List-Id: In article , Maciej Sobczak 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: . 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! ;-)