* [Buildroot] LD_LIBRARY_PATH variable
@ 2015-09-15 20:55 Ran Shalit
2015-09-15 21:05 ` Arnout Vandecappelle
0 siblings, 1 reply; 4+ messages in thread
From: Ran Shalit @ 2015-09-15 20:55 UTC (permalink / raw)
To: buildroot
Hello,
I have some strange issue, in which I have to export LD_LIBRARY_PATH
(.../output/host/usr/lib), otherwise the build fails on not ""cannot
open shared object file: No such file or directory.... " during build
(with the make command without any arguments).
The strange thing is that I done it several times before without
specifying the export command, so I really don't understand what
happened in my host environment that requires this additional command.
But now I get a new error during build:
fakeroot: preload library `libfakeroot.so' not found, aborting.
On checking I do see that it exist in .../output/host/usr/lib
Is there any idea what's wrong ?
Regards,
Ran
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] LD_LIBRARY_PATH variable
2015-09-15 20:55 [Buildroot] LD_LIBRARY_PATH variable Ran Shalit
@ 2015-09-15 21:05 ` Arnout Vandecappelle
2015-09-16 5:45 ` Ran Shalit
0 siblings, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2015-09-15 21:05 UTC (permalink / raw)
To: buildroot
On 15-09-15 22:55, Ran Shalit wrote:
> Hello,
>
> I have some strange issue, in which I have to export LD_LIBRARY_PATH
> (.../output/host/usr/lib), otherwise the build fails on not ""cannot
> open shared object file: No such file or directory.... " during build
> (with the make command without any arguments).
> The strange thing is that I done it several times before without
> specifying the export command, so I really don't understand what
> happened in my host environment that requires this additional command.
>
> But now I get a new error during build:
> fakeroot: preload library `libfakeroot.so' not found, aborting.
>
> On checking I do see that it exist in .../output/host/usr/lib
> Is there any idea what's wrong ?
Have you moved your output directory to a different location? Everything that
is built for the host will look for shared libraries using an absolute path, so
if you move it to a different place, it will fail. There were some patches to
convert the absolute paths to relative paths using patchelf, but that was not
yet ready for committing.
But specifically for fakeroot: that's just a script, and the path is hardcoded
in it. Look in host/usr/bin/fakeroot.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] LD_LIBRARY_PATH variable
2015-09-15 21:05 ` Arnout Vandecappelle
@ 2015-09-16 5:45 ` Ran Shalit
2015-09-16 6:55 ` Baruch Siach
0 siblings, 1 reply; 4+ messages in thread
From: Ran Shalit @ 2015-09-16 5:45 UTC (permalink / raw)
To: buildroot
Hi Arnout,
> But specifically for fakeroot: that's just a script, and the path is hardcoded in it. Look in host/usr/bin/fakeroot.
That solved the issue for me !
But from where did fakeroot took this absolute path ?
Thank you!
Ran
On Wed, Sep 16, 2015 at 12:05 AM, Arnout Vandecappelle <arnout@mind.be> wrote:
> On 15-09-15 22:55, Ran Shalit wrote:
>> Hello,
>>
>> I have some strange issue, in which I have to export LD_LIBRARY_PATH
>> (.../output/host/usr/lib), otherwise the build fails on not ""cannot
>> open shared object file: No such file or directory.... " during build
>> (with the make command without any arguments).
>> The strange thing is that I done it several times before without
>> specifying the export command, so I really don't understand what
>> happened in my host environment that requires this additional command.
>>
>> But now I get a new error during build:
>> fakeroot: preload library `libfakeroot.so' not found, aborting.
>>
>> On checking I do see that it exist in .../output/host/usr/lib
>> Is there any idea what's wrong ?
>
> Have you moved your output directory to a different location? Everything that
> is built for the host will look for shared libraries using an absolute path, so
> if you move it to a different place, it will fail. There were some patches to
> convert the absolute paths to relative paths using patchelf, but that was not
> yet ready for committing.
>
> But specifically for fakeroot: that's just a script, and the path is hardcoded
> in it. Look in host/usr/bin/fakeroot.
>
>
> Regards,
> Arnout
>
>
> --
> Arnout Vandecappelle arnout at mind be
> Senior Embedded Software Architect +32-16-286500
> Essensium/Mind http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] LD_LIBRARY_PATH variable
2015-09-16 5:45 ` Ran Shalit
@ 2015-09-16 6:55 ` Baruch Siach
0 siblings, 0 replies; 4+ messages in thread
From: Baruch Siach @ 2015-09-16 6:55 UTC (permalink / raw)
To: buildroot
Hi Ran,
On Wed, Sep 16, 2015 at 08:45:54AM +0300, Ran Shalit wrote:
> > But specifically for fakeroot: that's just a script, and the path is
> > hardcoded in it. Look in host/usr/bin/fakeroot.
>
> That solved the issue for me !
>
> But from where did fakeroot took this absolute path ?
fakeroot is just a shell script. It looks for libfakeroot.so in the
directories listed in the $PATHS variable. See the $PATHS assignment in
output/host/usr/bin/fakeroot.
baruch
> On Wed, Sep 16, 2015 at 12:05 AM, Arnout Vandecappelle <arnout@mind.be>
> wrote:
> > On 15-09-15 22:55, Ran Shalit wrote:
> >> Hello,
> >>
> >> I have some strange issue, in which I have to export LD_LIBRARY_PATH
> >> (.../output/host/usr/lib), otherwise the build fails on not ""cannot
> >> open shared object file: No such file or directory.... " during build
> >> (with the make command without any arguments).
> >> The strange thing is that I done it several times before without
> >> specifying the export command, so I really don't understand what
> >> happened in my host environment that requires this additional command.
> >>
> >> But now I get a new error during build:
> >> fakeroot: preload library `libfakeroot.so' not found, aborting.
> >>
> >> On checking I do see that it exist in .../output/host/usr/lib
> >> Is there any idea what's wrong ?
> >
> > Have you moved your output directory to a different location? Everything that
> > is built for the host will look for shared libraries using an absolute path, so
> > if you move it to a different place, it will fail. There were some patches to
> > convert the absolute paths to relative paths using patchelf, but that was not
> > yet ready for committing.
> >
> > But specifically for fakeroot: that's just a script, and the path is hardcoded
> > in it. Look in host/usr/bin/fakeroot.
> >
> >
> > Regards,
> > Arnout
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-09-16 6:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-15 20:55 [Buildroot] LD_LIBRARY_PATH variable Ran Shalit
2015-09-15 21:05 ` Arnout Vandecappelle
2015-09-16 5:45 ` Ran Shalit
2015-09-16 6:55 ` Baruch Siach
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.