From: Charles Arnold <carnold@suse.com>
To: Jan Beulich <jbeulich@suse.com>,
Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Julien Grall <julien@xen.org>, Juergen Gross <jgross@suse.com>,
xen-devel <xen-devel@lists.xenproject.org>,
Anthony Perard <anthony@xenproject.org>
Subject: Re: Build system mess in stubdom
Date: Tue, 9 Jul 2024 09:21:10 -0600 [thread overview]
Message-ID: <4e7028a3-b513-4a97-adef-dfc25d9607b9@suse.com> (raw)
In-Reply-To: <ad9b8dab-3f1c-4f26-845b-af88f96ee1ee@suse.com>
On 7/9/24 8:55 AM, Jan Beulich wrote:
> On 09.07.2024 15:49, Andrew Cooper wrote:
>> I'm trying to investigate why stubdom/ is fatally failing now with a
>> rebuilt ArchLinux container (GCC 14).
>>
>> It is ultimately:
>>
>>> ../../../../../newlib-1.16.0/newlib/libc/reent/signalr.c:61:14: error:
>>> implicit declaration of function ‘kill’; did you mean ‘_kill’?
>>> [-Wimplicit-function-declaration]
>>> 61 | if ((ret = _kill (pid, sig)) == -1 && errno != 0)
>>> | ^~~~~
>>> make[7]: *** [Makefile:483: lib_a-signalr.o] Error 1
>> which doesn't make sense, but is a consequence of the ifdefary in
>> newlib/libc/include/_syslist.h
> Charles, who is looking after our Xen packages, had run into exactly this.
> His workaround patch (added to the list of patches applied on top of
> newlib by stubdom/Makefile) is below, but in the given form I didn't expect
> it would be upstreamable. The diagnostics by the compiler may be a little
> misleading ...
This problem showed up only with gcc14 when it began treating what was
previously a warning as an error.
Charles
>
> Jan
>
> --- newlib-1.16.0/newlib/libc/stdlib/wcstoull.c
> +++ newlib-1.16.0/newlib/libc/stdlib/wcstoull.c
> @@ -127,6 +127,10 @@ PORTABILITY
>
> #ifndef _REENT_ONLY
>
> +#if __GNUC__ >= 14
> +#pragma GCC diagnostic ignored "-Wimplicit-function-declaration"
> +#endif
> +
> unsigned long long
> _DEFUN (wcstoull, (s, ptr, base),
> _CONST wchar_t *s _AND
> --- newlib-1.16.0/newlib/libc/reent/signalr.c
> +++ newlib-1.16.0/newlib/libc/reent/signalr.c
> @@ -49,6 +49,10 @@ DESCRIPTION
> <<errno>>.
> */
>
> +#if __GNUC__ >= 14
> +#pragma GCC diagnostic ignored "-Wimplicit-function-declaration"
> +#endif
> +
> int
> _DEFUN (_kill_r, (ptr, pid, sig),
> struct _reent *ptr _AND
> --- newlib-1.16.0/newlib/doc/makedoc.c
> +++ newlib-1.16.0/newlib/doc/makedoc.c
> @@ -798,6 +798,7 @@ DEFUN( iscommand,(ptr, idx),
> }
>
>
> +static unsigned int
> DEFUN(copy_past_newline,(ptr, idx, dst),
> string_type *ptr AND
> unsigned int idx AND
>
next prev parent reply other threads:[~2024-07-09 15:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-09 13:49 Build system mess in stubdom Andrew Cooper
2024-07-09 13:53 ` Andrew Cooper
2024-07-09 14:55 ` Jan Beulich
2024-07-09 15:18 ` Andrew Cooper
2024-07-09 15:21 ` Charles Arnold [this message]
2024-07-09 15:34 ` Anthony PERARD
2024-07-09 16:46 ` Andrew Cooper
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=4e7028a3-b513-4a97-adef-dfc25d9607b9@suse.com \
--to=carnold@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony@xenproject.org \
--cc=jbeulich@suse.com \
--cc=jgross@suse.com \
--cc=julien@xen.org \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/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.