Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Gaël PORTAY" <gael.portay@gmail.com>
To: "Thomas Petazzoni" <thomas.petazzoni@bootlin.com>
Cc: "Samuel Martin" <s.martin49@gmail.com>,
	"Gaël PORTAY" <gael.portay@rtone.fr>,
	"Mahyar Koshkouei" <mahyar.koshkouei@gmail.com>,
	buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/2] package/rpi-utils: new package
Date: Thu, 25 Jul 2024 11:43:23 +0200	[thread overview]
Message-ID: <D2YITL40TOEJ.98932ZGHH1A9@gmail.com> (raw)
In-Reply-To: <20240725101027.77f7b4e4@windsurf>

Thomas,

On Thu Jul 25, 2024 at 10:10 AM CEST, Thomas Petazzoni wrote:
> Well, your patch was not including package/rpi-utils/Config.in, so the
> option BR2_PACKAGE_RPI_UTILS does not exist. Perhaps why it gets
> skipped?
>

So there is a build issue with the uclibc toolchains because of
reallocarray().

	gportay@archlinux ~/src/buildroot $ utils/test-pkg -p rpi-utils
	                    bootlin-armv5-uclibc [1/6]: FAILED
	                     bootlin-armv7-glibc [2/6]: OK
	                   bootlin-armv7m-uclibc [3/6]: SKIPPED
	                     bootlin-x86-64-musl [4/6]: OK
	                      br-arm-full-static [5/6]: SKIPPED
	                             arm-aarch64 [6/6]: OK

See:

	/home/gportay/br-test-pkg/bootlin-armv5-uclibc/build/rpi-utils-a1d522f0f1b50858a44fac80523a2bd80098e789/pinctrl/pinctrl.c: In function ‘do_gpio_poll_add’:
	/home/gportay/br-test-pkg/bootlin-armv5-uclibc/build/rpi-utils-a1d522f0f1b50858a44fac80523a2bd80098e789/pinctrl/pinctrl.c:268:18: error: implicit declaration of function ‘reallocarray’ [-Werror=implicit-function-declaration]
	  268 |     poll_gpios = reallocarray(poll_gpios, num_poll_gpios + 1,
	      |                  ^~~~~~~~~~~~
	/home/gportay/br-test-pkg/bootlin-armv5-uclibc/build/rpi-utils-a1d522f0f1b50858a44fac80523a2bd80098e789/pinctrl/pinctrl.c:268:16: error: assignment to ‘struct poll_gpio_state *’ from ‘int’ makes pointer from integer without a cast [-Werror=int-conversion]
	  268 |     poll_gpios = reallocarray(poll_gpios, num_poll_gpios + 1,
	      |                ^
	In function ‘gencmd’,
	    inlined from ‘main’ at /home/gportay/br-test-pkg/bootlin-armv5-uclibc/build/rpi-utils-a1d522f0f1b50858a44fac80523a2bd80098e789/vcgencmd/vcgencmd.c:152:14:
	/home/gportay/br-test-pkg/bootlin-armv5-uclibc/build/rpi-utils-a1d522f0f1b50858a44fac80523a2bd80098e789/vcgencmd/vcgencmd.c:109:4: warning: ‘strncat’ specified bound 1024 equals destination size [-Wstringop-overflow=]
	  109 |    strncat (  ~~~~~~~~~~

Do you want me to make a patch? or works around for it using Kconfig?

	config BR2_PACKAGE_RPI_UTILS
		(...)
		depends on !BR2_TOOLCHAIN_USES_UCLIBC # no reallocarray

	comment "rpi-utils needs a glibc or musl toolchain w/ threads"
	        depends on BR2_TOOLCHAIN_USES_UCLIBC

Regards,
Gaël
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2024-07-25  9:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-23 21:20 [Buildroot] [PATCH 0/2] rpi-utils replaces rpi-userland Gaël PORTAY
2024-07-23 21:20 ` [Buildroot] [PATCH 1/2] package/rpi-utils: new package Gaël PORTAY
2024-07-24 16:21   ` Thomas Petazzoni via buildroot
2024-07-25  8:05     ` Gaël PORTAY
2024-07-25  8:10       ` Thomas Petazzoni via buildroot
2024-07-25  9:43         ` Gaël PORTAY [this message]
2024-07-25 10:05           ` Waldemar Brodkorb
2024-07-25 10:16             ` Thomas Petazzoni via buildroot
2024-07-25 10:21             ` Gaël PORTAY
2024-07-23 21:20 ` [Buildroot] [PATCH 2/2] package/rpi-userland: package is deprecated Gaël PORTAY
2024-07-24 16:21   ` Thomas Petazzoni via buildroot
2024-07-25  9:53     ` Gaël PORTAY
2024-07-25 10:15       ` Thomas Petazzoni via buildroot
2024-07-25 11:05         ` Gaël PORTAY
2024-07-25 14:59           ` Thomas Petazzoni via buildroot
2024-07-31 11:42             ` Gaël PORTAY

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=D2YITL40TOEJ.98932ZGHH1A9@gmail.com \
    --to=gael.portay@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=gael.portay@rtone.fr \
    --cc=mahyar.koshkouei@gmail.com \
    --cc=s.martin49@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    /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