[Buildroot] [PATCH next v6 07/10] core: implement per-package SDK and target

Andreas Naumann dev at andin.de
Thu Dec 6 10:42:37 UTC 2018


Hi,

Am 06.12.18 um 11:28 schrieb Thomas Petazzoni:
> Hello,
> 
> On Thu, 6 Dec 2018 11:21:25 +0100, Andreas Naumann wrote:
> 
>> Just to make sure I just did the above using your ppsh-v6 branch with
>> the wandboard_defconfig. The only additional change was to use the
>> external linaro toolchain. After 'make'
> 
> Thanks!
> 
>>     $ readelf -d output/host/sbin/mkfs.ext3
>> shows
>>     0x000000000000001d (RUNPATH)            Bibliothek runpath:
>> [/local/gsrc/buildroot.upstream/output/per-package/host-e2fsprogs/host/lib]
>>
>> which is already unexpected, shouldn't it show .../output/host/lib?
> 
> Nope, this is expected. During the build output/host/lib doesn't exist,

of course

> it's only populated at the very end of the build in host-finalize. So
> indeed the RPATH of binaries point to various per-package host/lib
> folders. This is totally expected.

Hmm, at this stage the host-finalize step was already run, so now 
output/host does exist.

> 
>> After 'make prepare-sdk'
>>     $ readelf -d output/host/sbin/mkfs.ext3
>> shows
>>     0x000000000000001d (RUNPATH)            Bibliothek runpath: []
> 
> This is obviously not good :-)
> 
> Thanks for reporting that, I'll have a look. I guess it's simply the
> fixup of RPATH from absolute to relative that goes wrong.

Would moving the fix-rpath step from prepare-sdk to host-finalize hurt?


regards,
Andi

> 
> Best regards,
> 
> Thomas
> 


More information about the buildroot mailing list