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=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: problems with gnat on yosemite macox Date: Sun, 19 Oct 2014 14:55:13 +0100 Organization: A noiseless patient Spider Message-ID: References: <26a219c5-e2f4-4edf-bd52-f36c2a7692ac@googlegroups.com> <2f562bea-0d06-458f-b88f-2999abda4950@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="110351425d23d895aa4e17b47c8a8886"; logging-data="32741"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YwwY9F6udmMKvNqyYQgZA7cc/VErBvGg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:AZMGGJEyHBGvoBmkTQXEq/dHQm4= sha1:ksZA6q3seUZwx34o9TbvI9oPK8w= Xref: number.nntp.giganews.com comp.lang.ada:189892 Date: 2014-10-19T14:55:13+01:00 List-Id: Leo Brewin writes: > I just tried compiling my Hello World code using your > gcc-4.9.1-yosemite version and I still get problems. The good news is > that the 13.4 vs. 14.0.0 issue is resolved but the linker issue > remains. Should I be setting some options for the linker? > > which gnatmake > /opt/gcc-4.9.1-yosemite/bin/gnatmake > > gnatmake lcb01.adb > > gnatbind -x lcb01.ali > gnatlink lcb01.ali > Undefined symbols for architecture x86_64: > "__Unwind_Backtrace", referenced from: > ___gnat_backtrace in libgnat.a(tracebak.o) > ... and more of the same ... > ld: symbol(s) not found for architecture x86_64 > collect2: error: ld returned 1 exit status > gnatlink: error when calling /opt/gcc-4.9.1-yosemite/bin/gcc > gnatmake: *** link failed. It works for me. Could you build with "gnatmake lcb01.adb -largs -Wl,-v" to print the command line passed to ld?