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=2.0 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f96b82f9bd22d18a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.220.230 with SMTP id pz6mr17450537pbc.3.1340734137797; Tue, 26 Jun 2012 11:08:57 -0700 (PDT) Path: l9ni22828pbj.0!nntp.google.com!news2.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" 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 13:08:55 -0500 Organization: Aioe.org NNTP Server Message-ID: References: Reply-To: nma@12000.org NNTP-Posting-Host: KdJUrTuvv3Zv/s8pPxNluw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-06-26T13:08:55-05:00 List-Id: solved it! here it is, in case someone else hits this problem: >export LIBRARY_PATH=/usr/lib/i386-linux-gnu/ >gnatmake -gnat2012 t44.adb gcc -c -gnat2012 t44.adb gnatbind -x t44.ali gnatlink t44.ali I do not know why it happens, but the above will fix it. --Nasser On 6/26/2012 12:47 PM, Nasser M. Abbasi wrote: > I've see this error before, and I googled it. But the > solutions I found not helping. > > Does any one know how to make gnat see crt1.o? > > I installed gnat 2012 ok. Followed all the questions, > and all went well. It installed to /usr/gnat. > I am on linux. > > Now when I try to compile a file, I get this error: > > ------------------------------ >> gnatmake t44.adb > gnatbind -x t44.ali > gnatlink t44.ali > /usr/gnat/libexec/gcc/i686-pc-linux-gnu/4.5.4/ld: crt1.o: No such file: No such file or directory > collect2: ld returned 1 exit status > gnatlink: error when calling /usr/gnat/bin/gcc > gnatmake: *** link failed. > -------------------------- > > locate shows this > > ---------------------------- >> locate crt1.o > /usr/lib/i386-linux-gnu/Mcrt1.o > /usr/lib/i386-linux-gnu/Scrt1.o > /usr/lib/i386-linux-gnu/crt1.o > /usr/lib/i386-linux-gnu/gcrt1.o > -------------------------- > > and > > ----------------------------- >> sudo apt-get install libc6-dev > [sudo] password for me: > Reading package lists... Done > Building dependency tree > Reading state information... Done > libc6-dev is already the newest version > --------------------------------- > > and > > --------------------------- >> which gnatmake > /usr/gnat/bin/gnatmake >> gnatmake -v > > GNATMAKE GPL 2012 (20120509) > ---------------------------------- > > and > -------------- >> echo $PATH > /usr/gnat/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games > --------------- > > SO, I think I just need to tell it to use the crt1.o > in /usr/lib/i386-linux-gnu/crt1.o, right? > > I forgot how to do that. Do I need to run some Linux > command or something? the gnat README did not say > another, other that to run the doinstall script, which > I did ofcourse. > > thank you, > --Nasser >