From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: Semyon Kolganov <semenak94@mail.ru>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/mpir: fix build with host gcc >= 14
Date: Sat, 20 Jul 2024 22:50:39 +0200 [thread overview]
Message-ID: <20240720225039.4599e455@windsurf> (raw)
In-Reply-To: <20240720122908.453217-1-fontaine.fabrice@gmail.com>
On Sat, 20 Jul 2024 14:29:08 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fix the following build failure with host gcc >= 14 which enables
> -Werror=implicit-function-declaration
> (https://gcc.gnu.org/gcc-14/porting_to.html):
>
> configure:9998: checking build system compiler /usr/bin/gcc
> configure:10011: /usr/bin/gcc conftest.c
> conftest.c: In function 'main':
> conftest.c:4:3: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
> 4 | exit(0);
> | ^~~~
> conftest.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
> +++ |+#include <stdlib.h>
> 1 | int
> conftest.c:4:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
> 4 | exit(0);
> | ^~~~
> conftest.c:4:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
> configure:10014: $? = 1
> configure:10021: result: no
> configure:10026: error: Specified CC_FOR_BUILD doesn't seem to work
>
> Fixes:
> - http://autobuild.buildroot.org/results/3ab381f06d5dc030039b6f6f8d19feb55cf3367d
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> ...-Fix-configure-failures-with-Xcode12.patch | 116 ++++++++++++++++++
> package/mpir/mpir.mk | 2 +
> 2 files changed, 118 insertions(+)
> create mode 100644 package/mpir/0002-Fix-configure-failures-with-Xcode12.patch
I had investigated the issue as well, and came to the exact same
conclusion, so: patch applied. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-07-20 20:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-20 12:29 [Buildroot] [PATCH 1/1] package/mpir: fix build with host gcc >= 14 Fabrice Fontaine
2024-07-20 20:50 ` Thomas Petazzoni via buildroot [this message]
2024-08-29 6:05 ` 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=20240720225039.4599e455@windsurf \
--to=buildroot@buildroot.org \
--cc=fontaine.fabrice@gmail.com \
--cc=semenak94@mail.ru \
--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