From: Brandon Maier via buildroot <buildroot@buildroot.org>
To: "Fiona Klute" <fiona.klute@gmx.de>, <buildroot@buildroot.org>
Subject: Re: [Buildroot] [PATCH 1/1] package/busybox: fix menuconfig with GCC 14
Date: Fri, 26 Jul 2024 17:03:29 +0000 [thread overview]
Message-ID: <D2ZMT39VEGGC.MPRGW26K8LD2@collins.com> (raw)
In-Reply-To: <20240726160152.2182074-1-fiona.klute@gmx.de>
Hi Fiona,
On Fri Jul 26, 2024 at 4:01 PM UTC, Fiona Klute via buildroot wrote:
> From: "Fiona Klute (WIWA)" <fiona.klute@gmx.de>
>
> GCC 14 errors out on the implicit return type of "main() {}". The
> patch also removes the /dev/null redirection of GCC stderr that hid
> the actual problem.
I tested this on my Fedora 40 machine, look good!
Reviewed-by: Brandon Maier <brandon.maier@collins.com>
Tested-by: Brandon Maier <brandon.maier@collins.com>
Thanks,
Brandon
>
> Signed-off-by: Fiona Klute (WIWA) <fiona.klute@gmx.de>
> ---
> ...-failing-saying-ncurses-is-not-found.patch | 38 +++++++++++++++++++
> 1 file changed, 38 insertions(+)
> create mode 100644 package/busybox/0009-menuconfig-gcc-failing-saying-ncurses-is-not-found.patch
>
> diff --git a/package/busybox/0009-menuconfig-gcc-failing-saying-ncurses-is-not-found.patch b/package/busybox/0009-menuconfig-gcc-failing-saying-ncurses-is-not-found.patch
> new file mode 100644
> index 0000000000..7b78c01984
> --- /dev/null
> +++ b/package/busybox/0009-menuconfig-gcc-failing-saying-ncurses-is-not-found.patch
> @@ -0,0 +1,38 @@
> +From ctxnop@gmail.com Sun Jul 21 12:10:52 2024
> +From: ctxnop@gmail.com (Nop)
> +Date: Sun, 21 Jul 2024 14:10:52 +0200
> +Subject: [PATCH] menuconfig: GCC failing saying ncurses is not found
> +
> +Newer GCC increased diagnostics levels resulting in considering the
> +test code to be invalid. The resulting message was misleading, saying
> +that ncurses was not found, while the check failed for an unrelated
> +reason which was hidden because GCC stderr was redirected to
> +/dev/null.
> +
> +Signed-off-by: ctxnop <ctxnop@gmail.com>
> +Upstream: http://lists.busybox.net/pipermail/busybox/2024-July/090840.html
> +[Fiona: rephrased commit message for clarity]
> +Signed-off-by: Fiona Klute (WIWA) <fiona.klute@gmx.de>
> +---
> + scripts/kconfig/lxdialog/check-lxdialog.sh | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh
> +b/scripts/kconfig/lxdialog/check-lxdialog.sh
> +index 5075ebf2d..c644d1d48 100755
> +--- a/scripts/kconfig/lxdialog/check-lxdialog.sh
> ++++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
> +@@ -45,9 +45,9 @@ trap "rm -f $tmp" 0 1 2 3 15
> +
> + # Check if we can link to ncurses
> + check() {
> +- $cc -x c - -o $tmp 2>/dev/null <<'EOF'
> ++ $cc -x c - -o $tmp <<'EOF'
> + #include CURSES_LOC
> +-main() {}
> ++int main() { return 0; }
> + EOF
> + if [ $? != 0 ]; then
> + echo " *** Unable to find the ncurses libraries or the" 1>&2
> +--
> +2.45.2
> --
> 2.45.2
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-07-26 17:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-26 16:01 [Buildroot] [PATCH 1/1] package/busybox: fix menuconfig with GCC 14 Fiona Klute via buildroot
2024-07-26 17:03 ` Brandon Maier via buildroot [this message]
2024-07-27 14:37 ` Thomas Petazzoni via buildroot
2024-09-01 8:58 ` Peter Korsgaard
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=D2ZMT39VEGGC.MPRGW26K8LD2@collins.com \
--to=buildroot@buildroot.org \
--cc=brandon.maier@collins.com \
--cc=fiona.klute@gmx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.