toolchain: add BR2_TOOLCHAIN_HAS_GCC_BUG_101766
PATCH v2 1/2 toolchain: add BR2_TOOLCHAIN_HAS_GCC_BUG_101766
BR2_TOOLCHAIN_HAS_GCC_BUG_101766 will be used to fix a build a build failure on attr and elfutils with microblaze
--- toolchain/Config.in | 8 ++++++++ 1 file changed, 8 insertions(+)
toolchain/Config.in +8 -0
@@ -210,6 +210,14 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_101737 bool default y if BR2_sh +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101766 +# Microblaze gcc can't use .symver attribute leading to: +# error: symver is only supported on ELF platforms +# however __has_attribute(symver) returns true +config BR2_TOOLCHAIN_HAS_GCC_BUG_101766 + bool + default y if BR2_microblaze || BR2_microblazeel + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101915 # ICE: in extract_insn, at recog.c:2294 on microblaze. # This bug still exists in gcc = 12.1.0
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/2 package/attr: affected by gcc bug 101766
attr is affected by gcc bug 101766 since version 1.5.2 and
https://git.savannah.nongnu.org/cgit/attr.git/commit/?id=11b9069098b4d4c23efb06c9457a085b784354d4
resulting in the following build failure on microblaze since commit b31b91296e7f985b909f104f06a098adddef1fea:
libattr/syscalls.c:133:10: error: symver is only supported on ELF platforms
133 | # pragma GCC visibility pop
| ^~~
So let's disable package attr and packages depending on it.
Fixes:
- http://autobuild.buildroot.org/results/29c76e02becedf922bd7dc0533338c078bf77d2a
---
Changes v1 -> v2 (after review of Giulio Benetti):
- Update commit log
- Update casync and lua-flu
package/acl/Config.in | 4 ++++ package/attr/Config.in | 4 ++++ package/casync/Config.in | 4 ++++ package/lua-flu/Config.in | 4 ++++ package/systemd/Config.in | 4 ++++ 5 files changed, 20 insertions(+)
package/acl/Config.in +4 -0
@@ -1,5 +1,6 @@ config BR2_PACKAGE_ACL bool "acl" + depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_101766 # attr select BR2_PACKAGE_ATTR help POSIX Access Control Lists, which are used to define more
@@ -8,3 +9,6 @@ config BR2_PACKAGE_ACL This package also provides libacl. http://savannah.nongnu.org/projects/acl + +comment "acl needs a toolchain not affected by GCC bug 101766" + depends on BR2_TOOLCHAIN_HAS_GCC_BUG_101766
package/attr/Config.in +4 -0
@@ -1,7 +1,11 @@ config BR2_PACKAGE_ATTR bool "attr" + depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_101766 help Commands for Manipulating Filesystem Extended Attributes. This package also provides libattr. http://savannah.nongnu.org/projects/attr + +comment "attr needs a toolchain not affected by GCC bug 101766" + depends on BR2_TOOLCHAIN_HAS_GCC_BUG_101766
package/casync/Config.in +4 -0
@@ -1,6 +1,7 @@ config BR2_PACKAGE_CASYNC bool "casync" depends on BR2_TOOLCHAIN_USES_GLIBC # scandirat() is not implemented by musl and uclibc-ng + depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_101766 # acl select BR2_PACKAGE_ACL select BR2_PACKAGE_LIBCURL select BR2_PACKAGE_OPENSSL
@@ -11,3 +12,6 @@ config BR2_PACKAGE_CASYNC comment "casync needs a glibc toolchain" depends on !BR2_TOOLCHAIN_USES_GLIBC + +comment "casync needs a toolchain not affected by GCC bug 101766" + depends on BR2_TOOLCHAIN_HAS_GCC_BUG_101766
package/lua-flu/Config.in +4 -0
@@ -4,6 +4,7 @@ config BR2_PACKAGE_LUA_FLU depends on BR2_TOOLCHAIN_HAS_THREADS # libfuse depends on BR2_USE_MMU # libfuse depends on !BR2_PACKAGE_LUA_5_4 + depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_101766 # attr select BR2_PACKAGE_ATTR select BR2_PACKAGE_LIBFUSE help
@@ -17,3 +18,6 @@ config BR2_PACKAGE_LUA_FLU comment "lua-flu needs a toolchain w/ threads, dynamic library, Lua <= 5.3" depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || BR2_PACKAGE_LUA_5_4 + +comment "lua-flu needs a toolchain not affected by GCC bug 101766" + depends on BR2_TOOLCHAIN_HAS_GCC_BUG_101766
package/systemd/Config.in +4 -0
@@ -451,6 +451,7 @@ config BR2_PACKAGE_SYSTEMD_RFKILL config BR2_PACKAGE_SYSTEMD_SMACK_SUPPORT bool "enable SMACK support" + depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_101766 # attr select BR2_PACKAGE_ATTR select BR2_PACKAGE_SMACK help
@@ -463,6 +464,9 @@ config BR2_PACKAGE_SYSTEMD_SMACK_SUPPORT When this feature is enabled, Systemd mounts smackfs and manages security labels for sockets. +comment "SMACK support needs a toolchain not affected by GCC bug 101766" + depends on BR2_TOOLCHAIN_HAS_GCC_BUG_101766 + config BR2_PACKAGE_SYSTEMD_SYSEXT bool "enable sysext support" help
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2, 2/2] package/attr: affected by gcc bug 101766
Hello Fabrice,
Quoted 9 lines · On Tue, 16 Jan 2024 07:58:31 +0100 Fabrice Fontaine…
attr is affected by gcc bug 101766 since version 1.5.2 and
https://git.savannah.nongnu.org/cgit/attr.git/commit/?id=11b9069098b4d4c23efb06c9457a085b784354d4
resulting in the following build failure on microblaze since commitb31b91296e7f985b909f104f06a098adddef1fea:
libattr/syscalls.c:133:10: error: symver is only supported on ELF platforms
133 | # pragma GCC visibility pop| ^~~
Quoted 7 lines
So let's disable package attr and packages depending on it.
Fixes:
- http://autobuild.buildroot.org/results/29c76e02becedf922bd7dc0533338c078bf77d2aReviewed-by Giulio Benetti <[email protected]>Signed-off-by Fabrice Fontaine <[email protected]>
I don't like this very much. It's annoying to propagate this dependency to all reverse dependencies of attr, and make it unavailable on Microblaze for this silly reason. So I came up with the attached patch for attr, which rather detects if __attribute__(__symver__) works or not, and fall backs to another mechanism if not (this fallback already exists in the attr code).
Could you have a look at my proposal, and if it suits you, submit it upstream and as a patch to Buildroot ? :-)
(Yeah, I know I'm pushing some of the work for you, my goal is to be able to continue review/merge other patches)
Thanks a lot!
Thomas
Signature · 3 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com
From 1be7c2251040f1152de9ceb5263e6e96fa5c3d75 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <[email protected]>
Date: Tue, 6 Feb 2024 15:33:15 +0100
Subject: [PATCH] configure.ac: add detection of symver gcc attribute
--- configure.ac | 15 +++++++++++++++ libattr/syscalls.c | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-)
configure.ac +15 -0
@@ -57,6 +57,21 @@ AS_CASE([$host_os], [linux*], [os_linux=yes]) AM_CONDITIONAL([OS_LINUX], [test "x$os_linux" = "xyes"]) +AC_CACHE_CHECK(whether __attribute__((__symver__())) is supported, + gcc_cv_symver_attribute, + [cat > conftest.c <<EOF +void foo (void) {} +__typeof(foo) foo __attribute__ ((__symver__("foo@foo"))); +EOF + gcc_cv_symver_attribute=no + if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then \ + gcc_cv_symver_attribute=yes + fi + rm -f conftest.[cs] +]) +AS_IF([test $gcc_cv_symver_attribute = yes], + [AC_DEFINE(HAVE_SYMVER_ATTRIBUTE, [], [GCC supports symver attribute])]) + AC_CONFIG_COMMANDS([include/attr], [dnl rm -rf include/attr
libattr/syscalls.c +1 -1
@@ -32,7 +32,7 @@* fall back to traditional .symver asm directive otherwise. */ #ifdef __has_attribute -# if __has_attribute (__symver__) +# if defined(HAVE_SYMVER_ATTRIBUTE )# define SYMVER (cn, vn) __typeof(cn) cn __attribute__((__symver__(vn)))# elif __has_attribute (__no_reorder__)/*
Signature · 1 line
2.43.0
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2, 2/2] package/attr: affected by gcc bug 101766
Hi Thomas, Fabrice,
Quoted 29 lines · Thomas Petazzoni via buildroot
Hello Fabrice,
Quoted 9 lines · On Tue, 16 Jan 2024 07:58:31 +0100 Fabrice Fontaine…
attr is affected by gcc bug 101766 since version 1.5.2 and
https://git.savannah.nongnu.org/cgit/attr.git/commit/?id=11b9069098b4d4c23efb06c9457a085b784354d4
resulting in the following build failure on microblaze since commitb31b91296e7f985b909f104f06a098adddef1fea:
libattr/syscalls.c:133:10: error: symver is only supported on ELF platforms
133 | # pragma GCC visibility pop| ^~~Quoted 7 lines
So let's disable package attr and packages depending on it.
Fixes:
- http://autobuild.buildroot.org/results/29c76e02becedf922bd7dc0533338c078bf77d2aReviewed-by Giulio Benetti <[email protected]>Signed-off-by Fabrice Fontaine <[email protected]>I don't like this very much. It's annoying to propagate this dependency to all reverse dependencies of attr, and make it unavailable on Microblaze for this silly reason. So I came up with the attached patch for attr, which rather detects if
__attribute__(__symver__)works or not, and fall backs to another mechanism if not (this fallback already exists in the attr code).
Quoted 2 lines
Could you have a look at my proposal, and if it suits you, submit it upstream and as a patch to Buildroot ? :-)
I deal with attached patch.
Signature · 2 lines
Giulio Benetti CEO&CTO@Benetti Engineering sas
Quoted 5 lines
(Yeah, I know I'm pushing some of the work for you, my goal is to be able to continue review/merge other patches)
Thanks a lot!
Quoted 7 lines
Thomas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 1/1 package/attr: fix build failure on Microblaze architecture
In reply to Thomas Petazzoni via buildrootOn Microblaze architecture __has_attribute(__symver__) support is broken and always return true even if symver is not supported so let's add a local patch pending upstream to detect if symver is supported during autoreconf.
Fixes:
http://autobuild.buildroot.org/results/29c76e02becedf922bd7dc0533338c078bf77d2a
--- ...dd-detection-of-symver-gcc-attribute.patch | 56 +++++++++++++++++++ package/attr/attr.mk | 3 + 2 files changed, 59 insertions(+) create mode 100644 package/attr/0002-configure.ac-add-detection-of-symver-gcc-attribute.patch
package/attr/0002-configure.ac-add-detection-of-symver-gcc-attribute.patch new file +56 -0
@@ -0,0 +1,56 @@ +From 1be7c2251040f1152de9ceb5263e6e96fa5c3d75 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 6 Feb 2024 15:33:15 +0100 +Subject: [PATCH] configure.ac: add detection of symver gcc attribute + +Upstream: https://lists.gnu.org/archive/html/savannah-hackers-public/2024-02/msg00009.html + +Signed-off-by: Thomas Petazzoni <[email protected]> +Signed-off-by: Giulio Benetti <[email protected]> +--- + configure.ac | 15 +++++++++++++++ + libattr/syscalls.c | 2 +- + 2 files changed, 16 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 7e362e9..98477b5 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -57,6 +57,21 @@ AS_CASE([$host_os], + [linux*], [os_linux=yes]) + AM_CONDITIONAL([OS_LINUX], [test "x$os_linux" = "xyes"]) + ++AC_CACHE_CHECK(whether __attribute__((__symver__())) is supported, ++ gcc_cv_symver_attribute, ++ [cat > conftest.c <<EOF ++void foo (void) {} ++__typeof(foo) foo __attribute__ ((__symver__("foo@foo"))); ++EOF ++ gcc_cv_symver_attribute=no ++ if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then \ ++ gcc_cv_symver_attribute=yes ++ fi ++ rm -f conftest.[cs] ++]) ++AS_IF([test $gcc_cv_symver_attribute = yes], ++ [AC_DEFINE(HAVE_SYMVER_ATTRIBUTE, [], [GCC supports symver attribute])]) ++ + AC_CONFIG_COMMANDS([include/attr], + [dnl + rm -rf include/attr +diff --git a/libattr/syscalls.c b/libattr/syscalls.c +index 907560a..caa70bc 100644 +--- a/libattr/syscalls.c ++++ b/libattr/syscalls.c +@@ -32,7 +32,7 @@ + * fall back to traditional .symver asm directive otherwise. + */ + #ifdef __has_attribute +-# if __has_attribute(__symver__) ++# if defined(HAVE_SYMVER_ATTRIBUTE) + # define SYMVER(cn, vn) __typeof(cn) cn __attribute__((__symver__(vn))) + # elif __has_attribute(__no_reorder__) + /* +-- +2.43.0 +
package/attr/attr.mk +3 -0
@@ -11,6 +11,9 @@ ATTR_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (libraries) ATTR_LICENSE_FILES = doc/COPYING doc/COPYING.LGPL ATTR_CPE_ID_VENDOR = attr_project +# Flag added for patch dealing with symver in configure.ac +ATTR_AUTORECONF = YES + ATTR_INSTALL_STAGING = YES ATTR_CONF_OPTS = --disable-nls
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [External] - [PATCH] package/attr: fix build failure on Microblaze architecture
All,
Would it make sense to patch GCC for Microblaze to address these at the compiler level instead of constantly patching the packages?
I tested https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101766#c6 back when we were solving this problem for xz and had no issues https://gcc.gnu.org/pipermail/gcc/2023-March/240834.html
Quoted 111 lines
-----Original Message-----
From: buildroot <[email protected]> On Behalf Of Giulio Benetti
Sent: Tuesday, February 6, 2024 9:54 AM
To: [email protected]; Thomas Petazzoni <[email protected]>
Cc: Giulio Benetti <[email protected]>; Fabrice Fontaine <[email protected]>
Subject: [External] - [Buildroot] [PATCH] package/attr: fix build failure on Microblaze architectureOn Microblaze architecture
__has_attribute(__symver__)support is broken and always return true even if symver is not supported so let's add a local patch pending upstream to detect if symver is supported during autoreconf.Fixes:
http://autobuild.buildroot.org/results/29c76e02becedf922bd7dc0533338c078
bf77d2aSigned-off-by Giulio Benetti <[email protected]>--- ...dd-detection-of-symver-gcc-attribute.patch | 56 +++++++++++++++++++ package/attr/attr.mk | 3 + 2 files changed, 59 insertions(+) create mode 100644 package/attr/0002-configure.ac-add-detection-of-symver-gcc-attribute.patch
(quoted diff) +0
-0attribute.patch b/package/attr/0002-configure.ac-add-detection-of-symver- gcc-attribute.patch
new file mode 100644
index 0000000000..15bd266d7bpackage/attr/0002-configure.ac-add-detection-of-symver-gcc-attribu new file +2
-0+++ te.patch@@ -0,0 +1,56 @@ +From 1be7c2251040f1152de9ceb5263e6e96fa5c3d75 Mon Sep 17 00:00:002001
package/attr/0002-configure.ac-add-detection-of-symver-gcc-attribu new file +56
-0+From: Thomas Petazzoni <[email protected]> +Date: Tue, 6 Feb 2024 15:33:15 +0100 +Subject: [PATCH] configure.ac: add detection of symver gcc attribute + +Upstream: +https://lists.gnu.org/archive/html/savannah-hackers-public/2024-02/msg0 +0009.html + +Signed-off-by: Thomas Petazzoni <[email protected]> +Signed-off-by: Giulio Benetti <[email protected]> +--- + configure.ac | 15 +++++++++++++++ + libattr/syscalls.c | 2 +- + 2 files changed, 16 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac index 7e362e9..98477b5 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -57,6 +57,21 @@ AS_CASE([$host_os], + [linux*], [os_linux=yes]) + AM_CONDITIONAL([OS_LINUX], [test "x$os_linux" = "xyes"]) + ++AC_CACHE_CHECK(whether __attribute__((__symver__())) is supported, ++ gcc_cv_symver_attribute, ++ [cat > conftest.c <<EOF ++void foo (void) {} ++__typeof(foo) foo __attribute__ ((__symver__("foo@foo"))); EOF ++ gcc_cv_symver_attribute=no ++ if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then \ ++ gcc_cv_symver_attribute=yes ++ fi ++ rm -f conftest.[cs] ++]) ++AS_IF([test $gcc_cv_symver_attribute = yes], ++ [AC_DEFINE(HAVE_SYMVER_ATTRIBUTE, [], [GCC supports symver ++attribute])]) ++ + AC_CONFIG_COMMANDS([include/attr], + [dnl + rm -rf include/attr +diff --git a/libattr/syscalls.c b/libattr/syscalls.c index +907560a..caa70bc 100644 +--- a/libattr/syscalls.c ++++ b/libattr/syscalls.c +@@ -32,7 +32,7 @@ + * fall back to traditional .symver asm directive otherwise. + */ + #ifdef __has_attribute +-# if __has_attribute(__symver__) ++# if defined(HAVE_SYMVER_ATTRIBUTE) + # define SYMVER(cn, vn) __typeof(cn) cn +__attribute__((__symver__(vn))) # elif __has_attribute(__no_reorder__) + /* +-- +2.43.0 +package/attr/attr.mk index renamed from package/attr/attr.mk +0
-0
6ecf5c53f4..f4f911333a100644package/attr/attr.mk +0
-0@@ -11,6 +11,9 @@ ATTR_LICENSE = GPL-2.0+ (programs), LGPL-2.1+(libraries)
ATTR_LICENSE_FILES= doc/COPYING doc/COPYING.LGPLATTR_CPE_ID_VENDOR=attr_projectpackage/attr/attr.mk +3
-1+# Flag added for patch dealing with symver in configure.ac +ATTR_AUTORECONF = YES + ATTR_INSTALL_STAGING = YES ATTR_CONF_OPTS = --disable-nls --2.34.1
Quoted 7 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [External] - [PATCH] package/attr: fix build failure on Microblaze architecture
Hi Vincent,
my thought is,
Quoted 3 lines · Vincent Fazio
All,
Would it make sense to patch GCC for Microblaze to address these at the compiler level instead of constantly patching the packages?
until gcc is not fixed yes, but,
Quoted 1 line
I tested https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101766#c6 back when we were solving this problem for xz and had no issues https://gcc.gnu.org/pipermail/gcc/2023-March/240834.html
this absolutely makes sense. It would great if you could backport those patches for all gcc versions we deal with like I've done time ago fo OpenRisc and when they merge them upstream we can drop them after bumping gcc versions with that patch applied.
Signature · 2 lines
Giulio Benetti CEO&CTO@Benetti Engineering sas
Quoted 112 lines
Quoted 112 lines
-----Original Message-----
From: buildroot <[email protected]> On Behalf Of Giulio Benetti
Sent: Tuesday, February 6, 2024 9:54 AM
To: [email protected]; Thomas Petazzoni <[email protected]>
Cc: Giulio Benetti <[email protected]>; Fabrice Fontaine <[email protected]>
Subject: [External] - [Buildroot] [PATCH] package/attr: fix build failure on Microblaze architectureOn Microblaze architecture
__has_attribute(__symver__)support is broken and always return true even if symver is not supported so let's add a local patch pending upstream to detect if symver is supported during autoreconf.Fixes:
http://autobuild.buildroot.org/results/29c76e02becedf922bd7dc0533338c078
bf77d2aSigned-off-by Giulio Benetti <[email protected]>--- ...dd-detection-of-symver-gcc-attribute.patch | 56 +++++++++++++++++++ package/attr/attr.mk | 3 + 2 files changed, 59 insertions(+)create mode 100644 package/attr/0002-configure.ac-add-detection-of-
symver-gcc-attribute.patch(quoted diff) +0
-0attribute.patch b/package/attr/0002-configure.ac-add-detection-of-symver- gcc-attribute.patch
new file mode 100644
index 0000000000..15bd266d7bpackage/attr/0002-configure.ac-add-detection-of-symver-gcc-attribu new file +2
-0+++ te.patch@@ -0,0 +1,56 @@ +From 1be7c2251040f1152de9ceb5263e6e96fa5c3d75 Mon Sep 17 00:00:002001
package/attr/0002-configure.ac-add-detection-of-symver-gcc-attribu new file +56
-0+From: Thomas Petazzoni <[email protected]> +Date: Tue, 6 Feb 2024 15:33:15 +0100 +Subject: [PATCH] configure.ac: add detection of symver gcc attribute + +Upstream: +https://lists.gnu.org/archive/html/savannah-hackers-public/2024-02/msg0 +0009.html + +Signed-off-by: Thomas Petazzoni <[email protected]> +Signed-off-by: Giulio Benetti <[email protected]> +--- + configure.ac | 15 +++++++++++++++ + libattr/syscalls.c | 2 +- + 2 files changed, 16 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac index 7e362e9..98477b5 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -57,6 +57,21 @@ AS_CASE([$host_os], + [linux*], [os_linux=yes]) + AM_CONDITIONAL([OS_LINUX], [test "x$os_linux" = "xyes"]) + ++AC_CACHE_CHECK(whether __attribute__((__symver__())) is supported, ++ gcc_cv_symver_attribute, ++ [cat > conftest.c <<EOF ++void foo (void) {} ++__typeof(foo) foo __attribute__ ((__symver__("foo@foo"))); EOF ++ gcc_cv_symver_attribute=no ++ if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then \ ++ gcc_cv_symver_attribute=yes ++ fi ++ rm -f conftest.[cs] ++]) ++AS_IF([test $gcc_cv_symver_attribute = yes], ++ [AC_DEFINE(HAVE_SYMVER_ATTRIBUTE, [], [GCC supports symver ++attribute])]) ++ + AC_CONFIG_COMMANDS([include/attr], + [dnl + rm -rf include/attr +diff --git a/libattr/syscalls.c b/libattr/syscalls.c index +907560a..caa70bc 100644 +--- a/libattr/syscalls.c ++++ b/libattr/syscalls.c +@@ -32,7 +32,7 @@ + * fall back to traditional .symver asm directive otherwise. + */ + #ifdef __has_attribute +-# if __has_attribute(__symver__) ++# if defined(HAVE_SYMVER_ATTRIBUTE) + # define SYMVER(cn, vn) __typeof(cn) cn +__attribute__((__symver__(vn))) # elif __has_attribute(__no_reorder__) + /* +-- +2.43.0 +package/attr/attr.mk index renamed from package/attr/attr.mk +0
-0
6ecf5c53f4..f4f911333a100644package/attr/attr.mk +0
-0@@ -11,6 +11,9 @@ ATTR_LICENSE = GPL-2.0+ (programs), LGPL-2.1+(libraries)
ATTR_LICENSE_FILES= doc/COPYING doc/COPYING.LGPLATTR_CPE_ID_VENDOR=attr_projectpackage/attr/attr.mk +3
-1+# Flag added for patch dealing with symver in configure.ac +ATTR_AUTORECONF = YES + ATTR_INSTALL_STAGING = YES ATTR_CONF_OPTS = --disable-nls --2.34.1
Quoted 8 lines
Quoted 7 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [External] - [PATCH] package/attr: fix build failure on Microblaze architecture
In reply to Vincent FazioHello Vincent,
Quoted 6 lines · On Tue, 6 Feb 2024 16:05:31 +0000 Vincent Fazio <[email protected]> wrote:
Would it make sense to patch GCC for Microblaze to address these at the compiler level instead of constantly patching the packages?
I tested https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101766#c6 back when we were solving this problem for xz and had no issues
https://gcc.gnu.org/pipermail/gcc/2023-March/240834.html
It would definitely make sense of course. Have you been able to get the necessary changes accepted in upstream GCC ?
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [External] - [PATCH] package/attr: fix build failure on Microblaze architecture
Thomas,
Quoted 17 lines
-----Original Message-----
From: Thomas Petazzoni <[email protected]>
Sent: Tuesday, February 6, 2024 10:26 AM
To: Vincent Fazio <[email protected]>
Cc: Giulio Benetti <[email protected]>; [email protected]; Fabrice Fontaine <[email protected]>
Subject: Re: [External] - [Buildroot] [PATCH] package/attr: fix build failure on Microblaze architectureHello Vincent,
Quoted 3 lines · On Tue, 6 Feb 2024 16:05:31 +0000 Vincent Fazio <[email protected]> wrote:
Would it make sense to patch GCC for Microblaze to address these at the compiler level instead of constantly patching the packages?
Quoted 7 lines
Quoted 3 lines
I tested https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101766#c6 back when we were solving this problem for xz and had no issues
https://gcc.gnu.org/pipermail/gcc/2023-March/240834.htmlIt would definitely make sense of course. Have you been able to get the necessary changes accepted in upstream GCC ?
The mailing list conversation died out very quickly, but I can try to submit the patch for this specific fixup.
I didn't feel comfortable with migrating all of Microblaze to elfos.h as that got very nasty, very quickly and the only change we (Buildroot) need is the ASM_OUTPUT_SYMVER_DIRECTIVE macro.
Quoted 6 lines
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot