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,5fad37e7b6e75b9d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.8.199 with SMTP id t7mr3193327pba.3.1319288231716; Sat, 22 Oct 2011 05:57:11 -0700 (PDT) Path: d5ni43388pbc.0!nntp.google.com!news2.google.com!news3.google.com!feeder.news-service.com!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Linking problem in GPS 2011 Date: Sat, 22 Oct 2011 14:57:09 +0200 Organization: A noiseless patient Spider Message-ID: <878vodjiai.fsf@ludovic-brenta.org> References: <5140065e-51a7-446d-8b86-13bd59b92bde@x7g2000yqn.googlegroups.com> <87fwimjd6b.fsf@ludovic-brenta.org> <4befa02e-7854-4b66-8312-1b9a8eece5cf@f36g2000vbm.googlegroups.com> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="A2j0+JRWXRJRZZCiWTUNkQ"; logging-data="26834"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18FIRcYHPuAwIMhjBDWdnEL" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:iswYzzJWWDmHJGHYkdRQIXo3QHw= sha1:QUsw28qkaOIglv5WRK4M4fQdXaU= Xref: news2.google.com comp.lang.ada:14149 Content-Type: text/plain; charset=us-ascii Date: 2011-10-22T14:57:09+02:00 List-Id: Hans Petter Ladim writes: > Thanks for quick answer! > > The command: > $ dpkg -L libc6-dev | grep /crt1.o > Gives: > /usr/lib/x86_64-linux-gnu/crt1.o > > The command: > $ /usr/gnat/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/ld --verbose | grep > SEARCH_DIR | tr ' ' '\n' > Gives: > SEARCH_DIR("/usr/gnat/x86_64-pc-linux-gnu/lib64"); > SEARCH_DIR("/usr/gnat/lib64"); > SEARCH_DIR("/usr/local/lib64"); > SEARCH_DIR("/lib64"); > SEARCH_DIR("/usr/lib64"); > SEARCH_DIR("/usr/gnat/x86_64-pc-linux-gnu/lib"); > SEARCH_DIR("/usr/gnat/lib"); > SEARCH_DIR("/usr/local/lib"); > SEARCH_DIR("/lib"); > SEARCH_DIR("/usr/lib"); OK, that confirms my suspicions. > And command export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu does not > help. Still same error message. ld will not see the LD_LIBRARY_PATH unless you start it from the same shell where you did the export, i.e. try to launch a terminal and say: export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu gnatmake -d -P/home/hp/gpsproject/pwm/pwm.gpr gps in the same terminal window. Is that what you did? > I belive the version of GPS you get from installing through apt-get is > somewhat old? I don't know what version your distribution contains but the latest in Debian testing are gnat-4.4 4.4.6-5 and gnat-gps 4.3-6. Note that GPS is only the integrated development environment; the compiler is gnat. What do you prefer: a "somewhat old" compiler that works, or a "somewhat new" compiler that doesn't work? Is there any particular feature of the "somewhat new" tools that is absent from the Debian packages and that you need? > I hope to fix this problem using GPS 2011. > > Any more ideas? :) * Check that ld sees the LD_LIBRARY_PATH environment variable as I explained above. If this works then you can make the solution permanent by adding this to your ~/.xsessionrc: export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu This change will take effect after you log out and log back in. * If that still fails, log in as root and say: ln -s /usr/lib/x86_64-linux-gnu/*.o /usr/lib but this is only a temporary hack, not a proper solution. -- Ludovic Brenta.