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,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.238.65 with SMTP id vi1mr17382077pbc.7.1340732880978; Tue, 26 Jun 2012 10:48:00 -0700 (PDT) Path: l9ni22770pbj.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: 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 12:47:58 -0500 Organization: Aioe.org NNTP Server Message-ID: 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-26T12:47:58-05:00 List-Id: 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