From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: "Jérôme Pouiller" <jezz@sysmic.org>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/lxc: fix m68k build with gcc 12
Date: Mon, 1 Apr 2024 14:42:01 +0200 [thread overview]
Message-ID: <ZgqrmSR1rXd6sGat@landeda> (raw)
In-Reply-To: <20240331085319.8585-1-fontaine.fabrice@gmail.com>
Fabrice, All,
On 2024-03-31 10:53 +0200, Fabrice Fontaine spake thusly:
> Fix the following m68k build failure with gcc 12:
>
> In file included from ../src/lxc/syscall_wrappers.h:19,
> from ../src/lxc/mount_utils.h:15,
> from ../src/lxc/conf.h:24,
> from ../src/lxc/log.h:19,
> from ../src/lxc/storage/btrfs.c:20:
> ../src/lxc/syscall_numbers.h:423:25: error: macro names must be identifiers
> 423 | #define -1
> | ^
>
> Fixes:
> - http://autobuild.buildroot.org/results/f40a517eba86838b11b4b1d6a8a05b8233a3394d
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> ...-lxc-syscall_numbers.h-drop-define-1.patch | 133 ++++++++++++++++++
> 1 file changed, 133 insertions(+)
> create mode 100644 package/lxc/0001-src-lxc-syscall_numbers.h-drop-define-1.patch
>
> diff --git a/package/lxc/0001-src-lxc-syscall_numbers.h-drop-define-1.patch b/package/lxc/0001-src-lxc-syscall_numbers.h-drop-define-1.patch
> new file mode 100644
> index 0000000000..4a944e35b1
> --- /dev/null
> +++ b/package/lxc/0001-src-lxc-syscall_numbers.h-drop-define-1.patch
> @@ -0,0 +1,133 @@
> +From 82fe01821cd5cb8548598d7d93b07d6ef3f6b604 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Sat, 30 Mar 2024 16:50:46 +0100
> +Subject: [PATCH] src/lxc/syscall_numbers.h: drop define -1
> +
> +Drop "#define -1" to avoid the following m68k build failure with gcc 12:
> +
> +In file included from ../src/lxc/syscall_wrappers.h:19,
> + from ../src/lxc/mount_utils.h:15,
> + from ../src/lxc/conf.h:24,
> + from ../src/lxc/log.h:19,
> + from ../src/lxc/storage/btrfs.c:20:
> +../src/lxc/syscall_numbers.h:423:25: error: macro names must be identifiers
> + 423 | #define -1
> + | ^
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/f40a517eba86838b11b4b1d6a8a05b8233a3394d
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Upstream: https://github.com/lxc/lxc/commit/82fe01821cd5cb8548598d7d93b07d6ef3f6b604
> +---
> + src/lxc/syscall_numbers.h | 13 -------------
> + 1 file changed, 13 deletions(-)
> +
> +diff --git a/src/lxc/syscall_numbers.h b/src/lxc/syscall_numbers.h
> +index 58840a5981..5e659d1b81 100644
> +--- a/src/lxc/syscall_numbers.h
> ++++ b/src/lxc/syscall_numbers.h
> +@@ -53,7 +53,6 @@
> + #elif defined __loongarch64
> + #define __NR_keyctl 219
> + #else
> +- #define -1
> + #warning "__NR_keyctl not defined for your architecture"
> + #endif
> + #endif
> +@@ -92,7 +91,6 @@
> + #elif defined __loongarch64
> + #define __NR_memfd_create 279
> + #else
> +- #define -1
> + #warning "__NR_memfd_create not defined for your architecture"
> + #endif
> + #endif
> +@@ -129,7 +127,6 @@
> + #elif defined __loongarch64
> + #define __NR_pivot_root 41
> + #else
> +- #define -1
> + #warning "__NR_pivot_root not defined for your architecture"
> + #endif
> + #endif
> +@@ -166,7 +163,6 @@
> + #elif defined __loongarch64
> + #define __NR_setns 268
> + #else
> +- #define -1
> + #warning "__NR_setns not defined for your architecture"
> + #endif
> + #endif
> +@@ -203,7 +199,6 @@
> + #elif defined __loongarch64
> + #define __NR_sethostname 161
> + #else
> +- #define -1
> + #warning "__NR_sethostname not defined for your architecture"
> + #endif
> + #endif
> +@@ -272,7 +267,6 @@
> + #elif defined __loongarch64
> + #define __NR_signalfd4 74
> + #else
> +- #define -1
> + #warning "__NR_signalfd4 not defined for your architecture"
> + #endif
> + #endif
> +@@ -309,7 +303,6 @@
> + #elif defined __loongarch64
> + #define __NR_unshare 97
> + #else
> +- #define -1
> + #warning "__NR_unshare not defined for your architecture"
> + #endif
> + #endif
> +@@ -346,7 +339,6 @@
> + #elif defined __loongarch64
> + #define __NR_bpf 280
> + #else
> +- #define -1
> + #warning "__NR_bpf not defined for your architecture"
> + #endif
> + #endif
> +@@ -383,7 +375,6 @@
> + #elif defined __loongarch64
> + #define __NR_faccessat 48
> + #else
> +- #define -1
> + #warning "__NR_faccessat not defined for your architecture"
> + #endif
> + #endif
> +@@ -440,7 +431,6 @@
> + #elif defined __loongarch64
> + #define __NR_seccomp 277
> + #else
> +- #define -1
> + #warning "__NR_seccomp not defined for your architecture"
> + #endif
> + #endif
> +@@ -477,7 +467,6 @@
> + #elif defined __loongarch64
> + #define __NR_gettid 178
> + #else
> +- #define -1
> + #warning "__NR_gettid not defined for your architecture"
> + #endif
> + #endif
> +@@ -518,7 +507,6 @@
> + #elif defined __loongarch64
> + #define __NR_execveat 281
> + #else
> +- #define -1
> + #warning "__NR_execveat not defined for your architecture"
> + #endif
> + #endif
> +@@ -759,7 +747,6 @@
> + #elif defined __loongarch64
> + #define __NR_personality 92
> + #else
> +- #define -1
> + #warning "__NR_personality not defined for your architecture"
> + #endif
> + #endif
> --
> 2.43.0
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-04-01 12:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-31 8:53 [Buildroot] [PATCH 1/1] package/lxc: fix m68k build with gcc 12 Fabrice Fontaine
2024-04-01 12:42 ` Yann E. MORIN [this message]
2024-04-28 19:34 ` 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=ZgqrmSR1rXd6sGat@landeda \
--to=yann.morin.1998@free.fr \
--cc=buildroot@buildroot.org \
--cc=fontaine.fabrice@gmail.com \
--cc=jezz@sysmic.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.