vulkan-cts-sources: fix build with gcc-15
PATCH 1/6 vulkan-cts-sources: fix build with gcc-15
From: Martin Jansa <[email protected]>
Fixes:
http://errors.yoctoproject.org/Errors/Details/852849/
In file included from TOPDIR/tmp/work/core2-64-oe-linux/vulkan-cts/1.4.1.0/git/external/amber/src/src/type.cc:15:TOPDIR/tmp/work/core2-64-oe-linux/vulkan-cts/1.4.1.0/git/external/amber/src/src/type.h:56:39: error: 'uint32_t' has not been declared
56 | static bool IsInt8(FormatMode mode, uint32_t num_bits) {
| ^~~~~~~~
--- ...clude-cstdint-causing-build-failures.patch | 47 +++++++++++++++++++ .../vk-gl-cts/vulkan-cts-sources.inc | 1 + 2 files changed, 48 insertions(+) create mode 100644 meta-oe/recipes-graphics/vk-gl-cts/files/0001-Fix-missing-include-cstdint-causing-build-failures.patch
meta-oe/recipes-graphics/vk-gl-cts/files/0001-Fix-missing-include-cstdint-causing-build-failures.patch new file +47 -0
@@ -0,0 +1,47 @@ +From 1d80b54aefd1f5f361990b1223c6fe308a8d3085 Mon Sep 17 00:00:00 2001 +From: Ricardo Garcia <[email protected]> +Date: Mon, 21 Apr 2025 12:30:05 +0200 +Subject: [PATCH] Fix missing #include <cstdint> causing build failures + +Tested on Fedora 42 with clang. + +Upstream-Status: Submitted [https://github.com/google/amber/pull/1092] + +Fixes: +http://errors.yoctoproject.org/Errors/Details/852849/ + +In file included from TOPDIR/tmp/work/core2-64-oe-linux/vulkan-cts/1.4.1.0/git/external/amber/src/src/type.cc:15: +TOPDIR/tmp/work/core2-64-oe-linux/vulkan-cts/1.4.1.0/git/external/amber/src/src/type.h:56:39: error: 'uint32_t' has not been declared + 56 | static bool IsInt8(FormatMode mode, uint32_t num_bits) { + | ^~~~~~~~ + +Signed-off-by: Martin Jansa <[email protected]> +--- + src/tokenizer.h | 1 + + src/type.h | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/src/tokenizer.h b/src/tokenizer.h +index 53efec60..ea4f19df 100644 +--- a/src/tokenizer.h ++++ b/src/tokenizer.h +@@ -16,6 +16,7 @@ + #define SRC_TOKENIZER_H_ + + #include <cstdlib> ++#include <cstdint> + #include <memory> + #include <string> + +diff --git a/src/type.h b/src/type.h +index c63779ba..97720f29 100644 +--- a/src/type.h ++++ b/src/type.h +@@ -16,6 +16,7 @@ + #define SRC_TYPE_H_ + + #include <cassert> ++#include <cstdint> + #include <memory> + #include <string> + #include <vector>
meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts-sources.inc +1 -0
@@ -22,4 +22,5 @@ SRC_URI += " \ git://github.com/Igalia/vk_video_samples.git;protocol=https;nobranch=1;destsuffix=git/external/nvidia-video-samples/src;rev=45fe88b456c683120138f052ea81f0a958ff3ec4 \ git://github.com/KhronosGroup/Vulkan-Video-Samples.git;protocol=https;nobranch=1;destsuffix=git/external/vulkan-video-samples/src;rev=0e87744edbb84c9c56c3fc8de9ea5150af5ee4ea \ git://github.com/Igalia/video_generator.git;protocol=https;nobranch=1;destsuffix=git/external/video_generator/src;rev=426300e12a5cc5d4676807039a1be237a2b68187 \ + file://0001-Fix-missing-include-cstdint-causing-build-failures.patch;patchdir=external/amber/src \ "
PATCH 2/6 sysdig: fix build with gcc-15
From: Martin Jansa <[email protected]>
fixes:
http://errors.yoctoproject.org/Errors/Details/852848/
In file included from TOPDIR/tmp/work/core2-64-oe-linux/sysdig/0.28.0/git/falcosecurity-libs/userspace/chisel/lua_parser.cpp:20:TOPDIR/tmp/work/core2-64-oe-linux/sysdig/0.28.0/git/falcosecurity-libs/userspace/libsinsp/./gen_filter.h:87:17: error: 'uint64_t' does not name a type
87 | virtual uint64_t get_ts() const = 0;
| ^~~~~~~~--- .../0001-libsinsp-fix-build-with-gcc-15.patch | 31 +++++++++++++++++++ .../recipes-extended/sysdig/sysdig_0.28.0.bb | 1 + 2 files changed, 32 insertions(+) create mode 100644 meta-oe/recipes-extended/sysdig/sysdig/0001-libsinsp-fix-build-with-gcc-15.patch
meta-oe/recipes-extended/sysdig/sysdig/0001-libsinsp-fix-build-with-gcc-15.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 47a86dabd065096ffc8818a1cffca96964d18120 Mon Sep 17 00:00:00 2001 +From: Martin Jansa <[email protected]> +Date: Tue, 22 Apr 2025 18:43:46 +0200 +Subject: [PATCH] libsinsp: fix build with gcc-15 + +fixes: +http://errors.yoctoproject.org/Errors/Details/852848/ + +In file included from TOPDIR/tmp/work/core2-64-oe-linux/sysdig/0.28.0/git/falcosecurity-libs/userspace/chisel/lua_parser.cpp:20: +TOPDIR/tmp/work/core2-64-oe-linux/sysdig/0.28.0/git/falcosecurity-libs/userspace/libsinsp/./gen_filter.h:87:17: error: 'uint64_t' does not name a type + 87 | virtual uint64_t get_ts() const = 0; + | ^~~~~~~~ + +Upstream-Status: Pending [gen_filter is removed in newer version with https://github.com/falcosecurity/libs/commit/47e245f3d343eff27ed178ec2449caa3a01faabb] +Signed-off-by: Martin Jansa <[email protected]> +--- + userspace/libsinsp/gen_filter.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/userspace/libsinsp/gen_filter.h b/userspace/libsinsp/gen_filter.h +index f4cfa08b1..79ac30dc3 100644 +--- a/userspace/libsinsp/gen_filter.h ++++ b/userspace/libsinsp/gen_filter.h +@@ -16,6 +16,7 @@ along with Falco. If not, see <http://www.gnu.org/licenses/>. + + #pragma once + ++#include <cstdint> + #include <set> + #include <list> + #include <map>
meta-oe/recipes-extended/sysdig/sysdig_0.28.0.bb +1 -0
@@ -26,6 +26,7 @@ SRC_URI = "git://github.com/draios/sysdig.git;branch=dev;protocol=https;name=sys git://github.com/falcosecurity/libs;protocol=https;branch=master;name=falco;subdir=git/falcosecurity-libs \ file://0001-Add-cstdint-for-uintXX_t-types.patch;patchdir=./falcosecurity-libs \ file://0001-cmake-Pass-PROBE_NAME-via-CFLAGS.patch \ + file://0001-libsinsp-fix-build-with-gcc-15.patch;patchdir=./falcosecurity-libs \ " SRCREV_sysdig = "4fb6288275f567f63515df0ff0a6518043ecfa9b" SRCREV_falco = "caa0e4d0044fdaaebab086592a97f0c7f32aeaa9"
PATCH 3/6 yasm: fix build with gcc-15
In reply to [email protected]From: Martin Jansa <[email protected]>
* fixes:libyasm/bitvect.h:86:32: error: cannot use keyword 'false' as enumeration constant
86 | typedef enum boolean { false = FALSE, true = TRUE } boolean;
| ^~~~~libyasm/bitvect.h:86:32: note: 'false' is a keyword with '-std=c23' onwards
as suggested in:
https://github.com/yasm/yasm/issues/283#issuecomment-2661108816
--- .../0001-bitvect-fix-build-with-gcc-15.patch | 38 +++++++++++++++++++ meta-oe/recipes-devtools/yasm/yasm_git.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta-oe/recipes-devtools/yasm/yasm/0001-bitvect-fix-build-with-gcc-15.patch
meta-oe/recipes-devtools/yasm/yasm/0001-bitvect-fix-build-with-gcc-15.patch new file +38 -0
@@ -0,0 +1,38 @@ +From 64ef740eb262f329e55eebadf2ce276b146d44e9 Mon Sep 17 00:00:00 2001 +From: Martin Jansa <[email protected]> +Date: Tue, 22 Apr 2025 19:06:24 +0200 +Subject: [PATCH] bitvect: fix build with gcc-15 + +* fixes: +libyasm/bitvect.h:86:32: error: cannot use keyword 'false' as enumeration constant + 86 | typedef enum boolean { false = FALSE, true = TRUE } boolean; + | ^~~~~ +../git/libyasm/bitvect.h:86:32: note: 'false' is a keyword with '-std=c23' onwards + +as suggested in: +https://github.com/yasm/yasm/issues/283#issuecomment-2661108816 + +Upstream-Status: Submitted [https://github.com/yasm/yasm/pull/287] + +Signed-off-by: Martin Jansa <[email protected]> +--- + libyasm/bitvect.h | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/libyasm/bitvect.h b/libyasm/bitvect.h +index 3aee3a53..a13470ad 100644 +--- a/libyasm/bitvect.h ++++ b/libyasm/bitvect.h +@@ -83,7 +83,11 @@ typedef Z_longword *Z_longwordptr; + #ifdef MACOS_TRADITIONAL + #define boolean Boolean + #else +- typedef enum boolean { false = FALSE, true = TRUE } boolean; ++ #if __STDC_VERSION__ < 202311L ++ typedef enum boolean { false = FALSE, true = TRUE } boolean; ++ #else ++ typedef bool boolean; ++ #endif + #endif + #endif +
meta-oe/recipes-devtools/yasm/yasm_git.bb +1 -0
@@ -13,6 +13,7 @@ SRCREV = "121ab150b3577b666c79a79f4a511798d7ad2432" SRC_URI = "git://github.com/yasm/yasm.git;branch=master;protocol=https \ file://0001-yasm-Set-build-date-to-SOURCE_DATE_EPOCH.patch \ file://0002-yasm-Use-BUILD_DATE-for-reproducibility.patch \ + file://0001-bitvect-fix-build-with-gcc-15.patch \ " S = "${WORKDIR}/git"
PATCH 4/6 cups-filters: fix build with gcc-15
In reply to [email protected]From: Martin Jansa <[email protected]>
* fixes:
http://errors.yoctoproject.org/Errors/Details/852846/
../cups-filters-2.0.0/filter/foomatic-rip/pdf.c:79:32: error: passing argument 2 of 'start_process' from incompatible pointer type [-Wincompatible-pointer-types]
79 | kid3 = start_process("kid3", exec_kid3, (void *)cmd, NULL, NULL);
| ^~~~~~~~~
| |
| int (*)(FILE *, FILE *, void *)In file included from ../cups-filters-2.0.0/filter/foomatic-rip/pdf.c:16:../cups-filters-2.0.0/filter/foomatic-rip/process.h:21:45: note: expected 'int (*)(void)' but argument is of type 'int (*)(FILE *, FILE *, void *)'
--- ...uild-failure-with-GCC-15-and-std-c23.patch | 28 +++++++++++++++++++ .../cups/cups-filters_2.0.0.bb | 1 + 2 files changed, 29 insertions(+) create mode 100644 meta-oe/recipes-printing/cups/cups-filters/0001-Fix-build-failure-with-GCC-15-and-std-c23.patch
meta-oe/recipes-printing/cups/cups-filters/0001-Fix-build-failure-with-GCC-15-and-std-c23.patch new file +28 -0
@@ -0,0 +1,28 @@ +From a31812e179f24f71199e7b1c823ecd212f10472f Mon Sep 17 00:00:00 2001 +From: Zdenek Dohnal <[email protected]> +Date: Fri, 24 Jan 2025 09:44:58 +0100 +Subject: [PATCH] Fix build failure with GCC 15 and -std=c23 + +The newest standard has more strict data type checks, function pointers +in function prototypes have to declare data types of its arguments. + +Upstream-Status: Backport [https://github.com/OpenPrinting/cups-filters/commit/9871a50b5c1f9c2caa2754aac1f5db70c886021b] + +Signed-off-by: Martin Jansa <[email protected]> +--- + filter/foomatic-rip/process.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/filter/foomatic-rip/process.h b/filter/foomatic-rip/process.h +index f6e15f6..54a4292 100644 +--- a/filter/foomatic-rip/process.h ++++ b/filter/foomatic-rip/process.h +@@ -18,7 +18,7 @@ + #include <sys/wait.h> + + +-pid_t start_process(const char *name, int (*proc_func)(), void *user_arg, ++pid_t start_process(const char *name, int (*proc_func)(FILE*, FILE*, void*), void *user_arg, + FILE **fdin, FILE **fdout); + pid_t start_system_process(const char *name, const char *command, FILE **fdin, + FILE **fdout);
meta-oe/recipes-printing/cups/cups-filters_2.0.0.bb +1 -0
@@ -8,6 +8,7 @@ DEPENDS = "libcupsfilters libppd glib-2.0 poppler" SRC_URI = " \ https://github.com/OpenPrinting/${BPN}/releases/download/${PV}/${BP}.tar.xz \ file://fix-make-race.patch \ + file://0001-Fix-build-failure-with-GCC-15-and-std-c23.patch \ " SRC_URI[sha256sum] = "b5152e3dd148ed73835827ac2f219df7cf5808dbf9dbaec2aa0127b44de800d8"
PATCH 5/6 cups-filters: use 4 spaces for indentation
In reply to [email protected]From: Martin Jansa <[email protected]>
--- .../recipes-printing/cups/cups-filters_2.0.0.bb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
meta-oe/recipes-printing/cups/cups-filters_2.0.0.bb +7 -7
@@ -6,9 +6,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6d5b952b53dbe7752199903d082e5f07" DEPENDS = "libcupsfilters libppd glib-2.0 poppler" SRC_URI = " \ - https://github.com/OpenPrinting/${BPN}/releases/download/${PV}/${BP}.tar.xz \ - file://fix-make-race.patch \ - file://0001-Fix-build-failure-with-GCC-15-and-std-c23.patch \ + https://github.com/OpenPrinting/${BPN}/releases/download/${PV}/${BP}.tar.xz \ + file://fix-make-race.patch \ + file://0001-Fix-build-failure-with-GCC-15-and-std-c23.patch \ " SRC_URI[sha256sum] = "b5152e3dd148ed73835827ac2f219df7cf5808dbf9dbaec2aa0127b44de800d8"
@@ -17,10 +17,10 @@ UPSTREAM_CHECK_URI = "https://github.com/OpenPrinting/cups-filters/releases" inherit autotools gettext pkgconfig github-releases EXTRA_OECONF += " \ - --enable-imagefilters \ - --enable-ghostscript --with-gs-path=${bindir}/gs \ - --with-fontdir=${datadir}/fonts \ - --localstatedir=${localstatedir} \ + --enable-imagefilters \ + --enable-ghostscript --with-gs-path=${bindir}/gs \ + --with-fontdir=${datadir}/fonts \ + --localstatedir=${localstatedir} \ " PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)}"
PATCH 6/6 psqlodbc: fix build with gcc-15
In reply to [email protected]From: Martin Jansa <[email protected]>
configure: make sure to call AC_CHECK_HEADER_STDBOOL before using ac_cv_sizeof_bool
It was called after this conditional, so PG_USE_STDBOOL wasn't set even when it should be as shown in at the end of config.log:
ac_cv_header_stdbool_h=yes ac_cv_sizeof_bool=1 ac_cv_type__Bool=yes #define SIZEOF_BOOL 1 #define HAVE__BOOL 1 #define HAVE_STDBOOL_H 1
* fixes:
https://github.com/postgresql-interfaces/psqlodbc/issues/110
https://github.com/postgresql-interfaces/psqlodbc/issues/94
http://errors.yoctoproject.org/Errors/Details/852841/
In file included from ../psqlodbc-16.00.0000/environ.h:16,
from ../psqlodbc-16.00.0000/environ.c:16:
../psqlodbc-16.00.0000/psqlodbc.h:264:23: error: 'bool' cannot be defined via 'typedef'
264 | typedef unsigned char bool;
| ^~~~
--- ...sure-to-call-AC_CHECK_HEADER_STDBOOL.patch | 45 +++++++++++++++++++ .../psqlodbc/psqlodbc_16.00.0000.bb | 1 + 2 files changed, 46 insertions(+) create mode 100644 meta-oe/recipes-dbs/psqlodbc/files/0001-configure-make-sure-to-call-AC_CHECK_HEADER_STDBOOL.patch
meta-oe/recipes-dbs/psqlodbc/files/0001-configure-make-sure-to-call-AC_CHECK_HEADER_STDBOOL.patch new file +45 -0
@@ -0,0 +1,45 @@ +From 5bfa9f1cd0523a0cad70cacf5ecf8c1aeb06c4d0 Mon Sep 17 00:00:00 2001 +From: Martin Jansa <[email protected]> +Date: Tue, 22 Apr 2025 17:47:02 +0000 +Subject: [PATCH] configure: make sure to call AC_CHECK_HEADER_STDBOOL + +before using ac_cv_sizeof_bool + +It was called after this conditional, so PG_USE_STDBOOL wasn't set +even when it should be as shown in at the end of config.log: + + ac_cv_header_stdbool_h=yes + ac_cv_sizeof_bool=1 + ac_cv_type__Bool=yes + #define SIZEOF_BOOL 1 + #define HAVE__BOOL 1 + #define HAVE_STDBOOL_H 1 + +* fixes: + https://github.com/postgresql-interfaces/psqlodbc/issues/110 + https://github.com/postgresql-interfaces/psqlodbc/issues/94 + +Upstream-Status: Submitted [https://github.com/postgresql-interfaces/psqlodbc/pull/112] + +Signed-off-by: Martin Jansa <[email protected]> +--- + configure.ac | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index f35c825..ea363ca 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -28,9 +28,11 @@ AC_CHECK_SIZEOF([bool], [], + #include <stdbool.h> + #endif]) + ++AC_CHECK_HEADER_STDBOOL() ++ + dnl We use <stdbool.h> if we have it and it declares type bool as having + dnl size 1. Otherwise, c.h will fall back to declaring bool as unsigned char. +-if test "$ac_cv_header_stdbool_h" = yes -a "$ac_cv_sizeof_bool" = 1; then ++if test "$ac_cv_header_stdbool_h" = yes && test "$ac_cv_sizeof_bool" = 1; then + AC_DEFINE([PG_USE_STDBOOL], 1, + [Define to 1 to use <stdbool.h> to define type bool.]) + fi
meta-oe/recipes-dbs/psqlodbc/psqlodbc_16.00.0000.bb +1 -0
@@ -23,6 +23,7 @@ SRC_URI = "http://ftp.postgresql.org/pub/odbc/versions.old/src/${BPN}-${PV}.tar. file://psqlodbc-remove-some-checks-for-cross-compiling.patch \ file://psqlodbc-donot-use-the-hardcode-libdir.patch \ file://psqlodbc-fix-for-ptest-support.patch \ + file://0001-configure-make-sure-to-call-AC_CHECK_HEADER_STDBOOL.patch \ file://run-ptest \ "