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!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed-0.progon.net!progon.net!news-zh.switch.ch!switch.ch!cernne03.cern.ch!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Ada on Mac Date: Thu, 19 Apr 2007 14:43:34 +0200 Organization: CERN News Message-ID: References: <1176971260.650981.269080@y80g2000hsf.googlegroups.com> NNTP-Posting-Host: pb-d-128-141-44-112.cern.ch Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: cernne03.cern.ch 1176986615 10302 128.141.44.112 (19 Apr 2007 12:43:35 GMT) X-Complaints-To: news@@cern.ch NNTP-Posting-Date: Thu, 19 Apr 2007 12:43:35 +0000 (UTC) User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) In-Reply-To: <1176971260.650981.269080@y80g2000hsf.googlegroups.com> Xref: g2news1.google.com comp.lang.ada:15118 Date: 2007-04-19T14:43:34+02:00 List-Id: 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/