Skip to contentSkip to conversation

package/gcc: renumber 11.4.0 patches

PATCH In review Thomas Petazzoni via buildroot 2 participants 4 messages Aug 21, 2024 – Sep 2, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/gcc: renumber 11.4.0 patches

Patch 0009 should be numbered 0008.

---
 ...ning.patch => 0008-libiberty-Darwin-Fix-a-build-warning.patch} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename package/gcc/11.4.0/{0009-libiberty-Darwin-Fix-a-build-warning.patch => 0008-libiberty-Darwin-Fix-a-build-warning.patch} (100%)
package/gcc/11.4.0/0008-libiberty-Darwin-Fix-a-build-warning.patch renamed from package/gcc/11.4.0/0009-libiberty-Darwin-Fix-a-build-warning.patch +0 -0
similarity index 100%
rename from package/gcc/11.4.0/0009-libiberty-Darwin-Fix-a-build-warning.patch
rename to package/gcc/11.4.0/0008-libiberty-Darwin-Fix-a-build-warning.patch
Signature · 6 lines
2.46.0

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

PATCH 2/2 package/gcc: add 64-bit time_t fixes to GCC 11.4.0

This commit brings the same patches as commit 81a4b6e7b8b5bb368bce940798bf8432fb420851 ("package/gcc: fix build with BR2_TIME_BITS_64=y"), but for GCC 11.4.0, which is still used in 2024.02.x.

Fixes:

http://autobuild.buildroot.org/results/641428197d37bc07649feb50eb7e2c65b3a0da0f/

---
 ...-along-with-_FILE_OFFSET_BITS-on-Lin.patch | 44 +++++++++++++++
 ...o-undef-_TIME_BITS-in-sanitizer_proc.patch | 53 +++++++++++++++++++
 2 files changed, 97 insertions(+)
 create mode 100644 package/gcc/11.4.0/0009-Undef-_TIME_BITS-along-with-_FILE_OFFSET_BITS-on-Lin.patch
 create mode 100644 package/gcc/11.4.0/0010-libsanitizer-also-undef-_TIME_BITS-in-sanitizer_proc.patch
package/gcc/11.4.0/0009-Undef-_TIME_BITS-along-with-_FILE_OFFSET_BITS-on-Lin.patch new file +44 -0
new file mode 100644
index 0000000000..7f113a5c0a
@@ -0,0 +1,44 @@
+From 37b5a741ef2d40fc31569d71fbd953c3a8120b6b Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Fri, 3 Feb 2023 11:48:35 -0800
+Subject: [PATCH] Undef _TIME_BITS along with _FILE_OFFSET_BITS on Linux
+
+On 32-bit glibc>=2.34 systems using 64bit time_t build fails because
+_FILE_OFFSET_BITS is undefined here but _TIME_BITS is still set to 64
+
+Fixes
+
+```
+/usr/include/features-time64.h:26:5: error: "_TIME_BITS=64 is allowed
+ only with _FILE_OFFSET_BITS=64"
+| #   error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
+|     ^
+| 1 error generated.
+```
+
+Reviewed By: thesamesam, MaskRay
+
+Differential Revision: https://reviews.llvm.org/D140812
+
+Upstream: https://github.com/llvm/llvm-project/commit/26800a2c7e7996dc773b4e990dd5cca41c45e1a9
+Upstream: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=d53b3d94aaf211ffb2159614f5aaaf03ceb861cc
+Signed-off-by: Thomas Petazzoni <[email protected]>
+---
+ .../sanitizer_common/sanitizer_platform_limits_posix.cpp         | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
+index 5743516c046..81cf2923ebe 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
+@@ -21,6 +21,7 @@
+ // To get this "true" dirent definition, we undefine _FILE_OFFSET_BITS below.
+ #ifdef _FILE_OFFSET_BITS
+ #undef _FILE_OFFSET_BITS
++#undef _TIME_BITS
+ #endif
+ 
+ // Must go after undef _FILE_OFFSET_BITS.
+-- 
+2.46.0
+
package/gcc/11.4.0/0010-libsanitizer-also-undef-_TIME_BITS-in-sanitizer_proc.patch new file +53 -0

53 lines not on this page · raw message

Signature · 6 lines
2.46.0

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

Re: [Buildroot] [PATCH 2024.02.x 2/2] package/gcc: add 64-bit time_t fixes to GCC 11.4.0

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

This commit brings the same patches as commit 81a4b6e7b8b5bb368bce940798bf8432fb420851 ("package/gcc: fix build with BR2_TIME_BITS_64=y"), but for GCC 11.4.0, which is still used in 2024.02.x.

Quoted 5 lines

Fixes:

http://autobuild.buildroot.org/results/641428197d37bc07649feb50eb7e2c65b3a0da0f/

Committed to 2024.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Thomas Petazzoni via buildroot
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Patch 0009 should be numbered 0008.

Committed to 2024.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot