[Buildroot] host-gcc-final not reinstalling target libraries (or: howto clean target directory)

Arnout Vandecappelle arnout at mind.be
Tue Mar 12 18:00:43 UTC 2019



On 12/03/2019 12:42, Norbert Lange wrote:
> Hello,
> 
> I had some aged buildroot installation with several library versions
> in the resulting target images. So now I cam up with the idea just to
> recreate the target system with those 2 commands:
> 
> rm build/*/.stamp_target*installed target
> make
> 
> Well, it *almost* worked, the only package that does not reinstall the
> target files that way is host-gcc-final, the filesystem is then
> lacking critical DSOs like libatomic, libstdc++.
> 
> So is there any way to fix this, or any recommendation on how a
> "target-clean" would look like (ideally get make to provide a
> target-clean).

 The reason that no target-clean exists is that it doesn't work.

 In the specific case of gcc, it's because the target stuff is installed by
host-gcc-final, so you have to remove host-gcc-final-*/.stamp_host_installed.
But other things are likely going to break in various other ways.

 Regards,
 Arnout




More information about the buildroot mailing list