Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Can we build static host tools (e.g. tar)?
@ 2025-01-14 16:24 Grant Edwards
  2025-01-23 17:22 ` Arnout Vandecappelle via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: Grant Edwards @ 2025-01-14 16:24 UTC (permalink / raw)
  To: buildroot

I'm having problems with the SDK that Buildroot builds.  Things like
opkg-build are failing because they're using buildroot's SDK version
of tar, and the glibc version isn't compatible between the host where
the sdk was built and the devleoper host where the sdk is being used.

--
Grant

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] Can we build static host tools (e.g. tar)?
  2025-01-14 16:24 [Buildroot] Can we build static host tools (e.g. tar)? Grant Edwards
@ 2025-01-23 17:22 ` Arnout Vandecappelle via buildroot
  2025-01-23 17:40   ` Grant Edwards
  0 siblings, 1 reply; 3+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2025-01-23 17:22 UTC (permalink / raw)
  To: Grant Edwards, buildroot



On 14/01/2025 17:24, Grant Edwards wrote:
> I'm having problems with the SDK that Buildroot builds.  Things like
> opkg-build are failing because they're using buildroot's SDK version
> of tar, and the glibc version isn't compatible between the host where
> the sdk was built and the devleoper host where the sdk is being used.

  The SDK is meant to be relocatable, but it is very hard to make it possible to 
just run anywhere. Static linking can help but even with -static you may still 
get a shared binary. So even if we do that, there's no guarantee that it will 
work on another build machine.

  BTW I'm surprised you complain about tar - the compiler should have the same 
issue, no?

  Regards,
  Arnout
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] Can we build static host tools (e.g. tar)?
  2025-01-23 17:22 ` Arnout Vandecappelle via buildroot
@ 2025-01-23 17:40   ` Grant Edwards
  0 siblings, 0 replies; 3+ messages in thread
From: Grant Edwards @ 2025-01-23 17:40 UTC (permalink / raw)
  To: buildroot; +Cc: buildroot

On 2025-01-23, Arnout Vandecappelle via buildroot <buildroot@buildroot.org> wrote:

> On 14/01/2025 17:24, Grant Edwards wrote:
>> I'm having problems with the SDK that Buildroot builds.  Things like
>> opkg-build are failing because they're using buildroot's SDK version
>> of tar, and the glibc version isn't compatible between the host where
>> the sdk was built and the devleoper host where the sdk is being used.
>
>   The SDK is meant to be relocatable, but it is very hard to make it possible to 
> just run anywhere. Static linking can help but even with -static you may still 
> get a shared binary. So even if we do that, there's no guarantee that it will 
> work on another build machine.

Right, but it should reduce the areas that could cause problems
(though static binaries would probably end up being absurding large).

>   BTW I'm surprised you complain about tar - the compiler should have the same 
> issue, no?

The change that's tripping us up was at glibc 2.38.  So far, the only
change we've run into using the SDK that wasn't compatible was in
libacl, and the only thing that uses that in the SDK (at least for us)
is tar.

Our temporary work-around is to go into the sdk tree on the affected
hosts and replace 'tar' with a symlink to the host's native
tar. Eventually those hosts will get OS updates that will allow the
SDK's tar to work again.

--
Grant

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-23 17:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-14 16:24 [Buildroot] Can we build static host tools (e.g. tar)? Grant Edwards
2025-01-23 17:22 ` Arnout Vandecappelle via buildroot
2025-01-23 17:40   ` Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox