Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] 32-bit host tools for ti-cgt-pru package
@ 2020-01-12 20:00 Ash Charles
  2020-01-12 20:10 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Ash Charles @ 2020-01-12 20:00 UTC (permalink / raw)
  To: buildroot

Hello,

I maintain the ti-cgt-pru buildroot package and noticed recently that the
build was failing during extraction.  For this package, the downloaded
software is packaged in a installer (i.e. not coming from a git repo or a
tar.gz...) -- execute the downloaded file with appropriate arguments and
the software is extracted to the appropriate build directories.
Unfortunately, it seems like the downloaded installer requires a host
32-bit glibc to actually execute (e.g. on a Fedora host, "dnf install
glibc:i686" allowed the package to build successfully).

How might I fix-up this build breakage?

Thoughts:
- a 64-bit version of the installer package is not available :(
- it seems like overkill to add a system requirement for buildroot on
glibc-32 for one random package
- it is a while since I've worked with buildroot so please forgive me if
I'm missing something obvious!

Thanks,
--Ash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200112/f58b2e95/attachment.html>

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

* [Buildroot] 32-bit host tools for ti-cgt-pru package
  2020-01-12 20:00 [Buildroot] 32-bit host tools for ti-cgt-pru package Ash Charles
@ 2020-01-12 20:10 ` Thomas Petazzoni
  2020-01-12 20:14   ` Ash Charles
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2020-01-12 20:10 UTC (permalink / raw)
  To: buildroot

Hello Ash,

On Sun, 12 Jan 2020 15:00:21 -0500
Ash Charles <ashcharles@gmail.com> wrote:

> I maintain the ti-cgt-pru buildroot package and noticed recently that the
> build was failing during extraction.  For this package, the downloaded
> software is packaged in a installer (i.e. not coming from a git repo or a
> tar.gz...) -- execute the downloaded file with appropriate arguments and
> the software is extracted to the appropriate build directories.
> Unfortunately, it seems like the downloaded installer requires a host
> 32-bit glibc to actually execute (e.g. on a Fedora host, "dnf install
> glibc:i686" allowed the package to build successfully).
> 
> How might I fix-up this build breakage?
> 
> Thoughts:
> - a 64-bit version of the installer package is not available :(
> - it seems like overkill to add a system requirement for buildroot on
> glibc-32 for one random package
> - it is a while since I've worked with buildroot so please forgive me if
> I'm missing something obvious!

We do have an option named BR2_HOSTARCH_NEEDS_IA32_LIBS which packages
that are pre-built for x86-32 can depend on. When this option is
selected, Buildroot will refuse to start the build if the system is
x86-64 and doesn't have the 32-bit compat libraries. We already use it
in a few packages, and some external toolchains.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] 32-bit host tools for ti-cgt-pru package
  2020-01-12 20:10 ` Thomas Petazzoni
@ 2020-01-12 20:14   ` Ash Charles
  0 siblings, 0 replies; 3+ messages in thread
From: Ash Charles @ 2020-01-12 20:14 UTC (permalink / raw)
  To: buildroot

On Sun, Jan 12, 2020 at 3:10 PM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
<snip>
> We do have an option named BR2_HOSTARCH_NEEDS_IA32_LIBS which packages
> that are pre-built for x86-32 can depend on. When this option is
> selected, Buildroot will refuse to start the build if the system is
> x86-64 and doesn't have the 32-bit compat libraries. We already use it
> in a few packages, and some external toolchains.
Perfect -- thanks for the hint.  I figured I was missing something :).
I'll test out and hope to submit a patch adding this option.

--Ash

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

end of thread, other threads:[~2020-01-12 20:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-12 20:00 [Buildroot] 32-bit host tools for ti-cgt-pru package Ash Charles
2020-01-12 20:10 ` Thomas Petazzoni
2020-01-12 20:14   ` Ash Charles

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