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: a07f3367d7,f96b82f9bd22d18a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.196.232 with SMTP id ip8mr18153415pbc.6.1340752635719; Tue, 26 Jun 2012 16:17:15 -0700 (PDT) Path: l9ni23623pbj.0!nntp.google.com!news2.google.com!goblin3!goblin.stu.neva.ru!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: how to fix crt1.o: No such file or directory (link error for gnat)? after installing gnat 2012 on linux Date: Tue, 26 Jun 2012 23:17:12 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Date: Tue, 26 Jun 2012 23:17:12 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="DkTdSjxOCm6DqG+Uf7eArg"; logging-data="16948"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HGJhlCkysY2POHeiRJ42F0Iw50qrZwQ8=" User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) Cancel-Lock: sha1:uzz7WMUAQGD1MhN4WnPhiyWK998= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2012-06-26T23:17:12+00:00 List-Id: On Tue, 26 Jun 2012 13:08:55 -0500, Nasser M. Abbasi wrote: > solved it! > > here it is, in case someone else hits this problem: > >>export LIBRARY_PATH=/usr/lib/i386-linux-gnu/ ... > > I do not know why it happens, but the above will fix it. The basic problem is that some Linux distributions (Debian,Ubuntu) support multilib (libs for various target machines, e.g. cross-compiling for Arm, AVR or even Windows, or even just 32 and 64 bit x86), and some tool chains don't. If you are using Debian or Ubuntu, but installing another Gnat, this is possible. export LIBRARY_PATH seems to be the easiest fix. Or install Debian's own Gnat package, as appropriate. - Brian