Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Niklas Cassel via buildroot <buildroot@buildroot.org>
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>,
	Damien Le Moal <Damien.LeMoal@wdc.com>,
	Jesse Taube <mr.bossman075@gmail.com>,
	Giulio Benetti <giulio.benetti@micronovasrl.com>,
	Greg Ungerer <gerg@kernel.org>,
	"buildroot@buildroot.org" <buildroot@buildroot.org>,
	Romain Naour <romain.naour@smile.fr>,
	"Yann E . MORIN" <yann.morin.1998@free.fr>
Subject: Re: [Buildroot] [PATCH] package/elf2flt: Fix build by updating to v2023.04
Date: Mon, 21 Aug 2023 09:43:42 +0000	[thread overview]
Message-ID: <ZOMxzkz3gZNcs2BN@x1-carbon> (raw)
In-Reply-To: <20230820234926.1dc52113@windsurf>

On Sun, Aug 20, 2023 at 11:49:26PM +0200, Thomas Petazzoni wrote:
> Hello Jesse,
> 
> On Fri, 18 Aug 2023 23:08:49 -0400
> Jesse Taube <mr.bossman075@gmail.com> wrote:
> 
> > In elf2flt Greg Ungerer committed "elf2flt: remove use of BFD_VMA_FMT":
> > 
> > "In binutils-2.40 the BFD_VMA_FMT definition used for printf style
> > formatting specifiers has been removed. For reference this was done in
> > commit b82817674f46 ("Don't use BFD_VMA_FMT in binutils") in the
> > binutils git development tree.
> > 
> > BFD_VMA_FMT is used in a number of places in the elf2flt code to output
> > bfd offsets, values and the like. So it is broken when using the bfd
> > code from binutils-2.40 and newer.
> > 
> > According to the binutils change PRIx64 (and friends) is used to replace
> > it, with appropriate casts to keep it clean for 32 and 64 bit platforms.
> > Change the elf2flt.c use of it in the same way to fix."
> > 
> > This patch updates elf2flt to version v2023.04, and rebases all the
> > Buildroot patches.
> > 
> > Signed-off-by: Jesse Taube <Mr.Bossman075@gmail.com>
> 
> Could you clarify which build failure this is fixing? The commit title
> says "fix build" but you don't explain which build failure is being
> fixed.
> 
> If it's the BFD_VMA_FMT issue, it has already been fixed by commit
> https://gitlab.com/buildroot.org/buildroot/-/commit/d79f9c9f416ac5da90cd428916cff0b5288cb03a
> in which we have backported the upstream commit you're referring to.
> 
> That being said, bumping the version of elf2flt is certainly a good
> idea moving forward. However, we should be careful when doing this, as
> updating elf2flt has several times in the past proven to come with a
> number of regressions.

If you can build and boot test:
riscv64, xtensa, and m68k then I'm very much in favor of a bump!

(Personally, I have kind of given up hope of upstream elf2flt,
but it's nice to see some activity after almost 2 years of some
of these issues being known and having open pull requests.
Now if they would merge the riscv patches, then I would be even
more surprised :p)

For riscv you can boot test using the defconfig:
qemu_riscv64_nommu_virt_defconfig

Unfortunately, I don't remember which defconfig I used to test m68k and
xtensa.

I do remember that Thomas reported a build error that was only seen when
explictly enabling BR2_PACKAGE_GDB, so it would be nice if you could enable
that as well. (It wasn't enabled by default in some of the defconfigs.)


Kind regards,
Niklas
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2023-08-21  9:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-19  3:08 [Buildroot] [PATCH] package/elf2flt: Fix build by updating to v2023.04 Jesse Taube
2023-08-20 21:49 ` Thomas Petazzoni via buildroot
2023-08-21  9:43   ` Niklas Cassel via buildroot [this message]
2023-08-21 17:17     ` Jesse T

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZOMxzkz3gZNcs2BN@x1-carbon \
    --to=buildroot@buildroot.org \
    --cc=Damien.LeMoal@wdc.com \
    --cc=Niklas.Cassel@wdc.com \
    --cc=bernd.kuhls@t-online.de \
    --cc=gerg@kernel.org \
    --cc=giulio.benetti@micronovasrl.com \
    --cc=mr.bossman075@gmail.com \
    --cc=romain.naour@smile.fr \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=yann.morin.1998@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox