Skip to contentSkip to conversation

package/uclibc: fix compile issue with gcc 14.x

PATCH Applied Waldemar Brodkorb 2 participants 2 messages May 15, 2024 – Jun 6, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/uclibc: fix compile issue with gcc 14.x

Fixes:
http://autobuild.buildroot.net/results/d9b924bdea3fd61060fa0e961c12534c1fff80de

---
 .../0002-fix-kernel_stat64-definition.patch   | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 package/uclibc/0002-fix-kernel_stat64-definition.patch
package/uclibc/0002-fix-kernel_stat64-definition.patch new file +35 -0
new file mode 100644
index 0000000000..5a87586af8
@@ -0,0 +1,35 @@
+From 186878405324e96f61d896a149f623e0c792c972 Mon Sep 17 00:00:00 2001
+From: Max Filippov <[email protected]>
+Date: Tue, 14 May 2024 23:18:56 -0700
+Subject: [PATCH] fix kernel_stat64 definition
+
+The commit 74ca8d6f5d2e ("remove UCLIBC_HAS_LFS") removed conditional
+compilation dependent on __UCLIBC_HAS_LFS__, assuming it to be always
+defined, but removed the wrong branch in the definition of
+kernel_stat64.
+Fix kernel_stat64 definition to be stat64.
+
+Signed-off-by: Max Filippov <[email protected]>
+Tested-by: Chris Packham <[email protected]>
+Signed-off-by: Waldemar Brodkorb <[email protected]>
+Upstream: https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=186878405324e96f61d896a149f623e0c792c972
+---
+ libc/sysdeps/linux/common-generic/bits/kernel_stat.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libc/sysdeps/linux/common-generic/bits/kernel_stat.h b/libc/sysdeps/linux/common-generic/bits/kernel_stat.h
+index 7a97bb4d7..e874a4a9f 100644
+--- a/libc/sysdeps/linux/common-generic/bits/kernel_stat.h
++++ b/libc/sysdeps/linux/common-generic/bits/kernel_stat.h
+@@ -18,7 +18,7 @@
+  * However that requires more #ifndef in relevant wrappers,
+  * further uglifying them
+  */
+-#define kernel_stat64	stat
++#define kernel_stat64	stat64
+ 
+ #endif	/*  _BITS_STAT_STRUCT_H */
+ 
+-- 
+2.30.2
+
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 4 lines · Waldemar Brodkorb

Fixes:
http://autobuild.buildroot.net/results/d9b924bdea3fd61060fa0e961c12534c1fff80de

Applied to master, thanks.

Regards,
Arnout

Quoted 36 lines
---
  .../0002-fix-kernel_stat64-definition.patch   | 35 +++++++++++++++++++
  1 file changed, 35 insertions(+)

create mode 100644 package/uclibc/0002-fix-kernel_stat64-definition.patch

package/uclibc/0002-fix-kernel_stat64-definition.patch new file +25 -0
new file mode 100644
index 0000000000..5a87586af8
@@ -0,0 +1,35 @@
+From 186878405324e96f61d896a149f623e0c792c972 Mon Sep 17 00:00:00 2001
+From: Max Filippov <[email protected]>
+Date: Tue, 14 May 2024 23:18:56 -0700
+Subject: [PATCH] fix kernel_stat64 definition
+
+The commit 74ca8d6f5d2e ("remove UCLIBC_HAS_LFS") removed conditional
+compilation dependent on __UCLIBC_HAS_LFS__, assuming it to be always
+defined, but removed the wrong branch in the definition of
+kernel_stat64.
+Fix kernel_stat64 definition to be stat64.
+
+Signed-off-by: Max Filippov <[email protected]>
+Tested-by: Chris Packham <[email protected]>
+Signed-off-by: Waldemar Brodkorb <[email protected]>
+Upstream: https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=186878405324e96f61d896a149f623e0c792c972
+---
+ libc/sysdeps/linux/common-generic/bits/kernel_stat.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libc/sysdeps/linux/common-generic/bits/kernel_stat.h b/libc/sysdeps/linux/common-generic/bits/kernel_stat.h
+index 7a97bb4d7..e874a4a9f 100644
+--- a/libc/sysdeps/linux/common-generic/bits/kernel_stat.h
++++ b/libc/sysdeps/linux/common-generic/bits/kernel_stat.h
+@@ -18,7 +18,7 @@
+  * However that requires more #ifndef in relevant wrappers,

package/uclibc/0002-fix-kernel_stat64-definition.patch line 35

Quoted 10 lines
package/uclibc/0002-fix-kernel_stat64-definition.patch new file +10 -0
+  * further uglifying them
+  */
+-#define kernel_stat64	stat
++#define kernel_stat64	stat64
+
+ #endif	/*  _BITS_STAT_STRUCT_H */
+
+--
+2.30.2
+

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot