From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Linking problem in GPS 2011
Date: Sat, 22 Oct 2011 14:57:09 +0200
Date: 2011-10-22T14:57:09+02:00 [thread overview]
Message-ID: <878vodjiai.fsf@ludovic-brenta.org> (raw)
In-Reply-To: 4befa02e-7854-4b66-8312-1b9a8eece5cf@f36g2000vbm.googlegroups.com
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.
next prev parent reply other threads:[~2011-10-22 12:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-21 19:41 Linking problem in GPS 2011 Hans Petter Ladim
2011-10-21 20:35 ` Ludovic Brenta
2011-10-22 10:52 ` Hans Petter Ladim
2011-10-22 11:05 ` Pascal Obry
2011-10-22 12:57 ` Ludovic Brenta [this message]
2011-10-22 13:22 ` Simon Wright
2011-10-22 13:32 ` Pascal Obry
2011-10-22 13:31 ` Pascal Obry
2011-10-22 10:57 ` Pascal Obry
2011-10-24 10:47 ` Alex R. Mosteo
2011-10-31 20:50 ` Hans Petter Ladim
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox