* [PATCH 1/3] ccache: Update the patch status @ 2022-08-23 18:01 Khem Raj 2022-08-23 18:01 ` [PATCH 2/3] ccache: Fix build with gcc12 on musl Khem Raj 2022-08-23 18:01 ` [PATCH 3/3] ccache: Upgrade to 4.6.2 Khem Raj 0 siblings, 2 replies; 8+ messages in thread From: Khem Raj @ 2022-08-23 18:01 UTC (permalink / raw) To: openembedded-core; +Cc: Khem Raj Signed-off-by: Khem Raj <raj.khem@gmail.com> --- .../ccache/files/0001-xxhash.h-Fix-build-with-gcc-12.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/ccache/files/0001-xxhash.h-Fix-build-with-gcc-12.patch b/meta/recipes-devtools/ccache/files/0001-xxhash.h-Fix-build-with-gcc-12.patch index 4c2623e69d..aab943459d 100644 --- a/meta/recipes-devtools/ccache/files/0001-xxhash.h-Fix-build-with-gcc-12.patch +++ b/meta/recipes-devtools/ccache/files/0001-xxhash.h-Fix-build-with-gcc-12.patch @@ -14,7 +14,7 @@ Remove inline attribute to fix below build failure: | ~~~ 4371 | secret + n*XXH_SECRET_CONSUME_RATE); -Upstream-Status: Submitted [https://github.com/ccache/ccache/pull/1089] +Upstream-Status: Submitted [https://github.com/Cyan4973/xxHash/pull/720] Signed-off-by: Mingli Yu <mingli.yu@windriver.com> --- -- 2.37.2 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/3] ccache: Fix build with gcc12 on musl 2022-08-23 18:01 [PATCH 1/3] ccache: Update the patch status Khem Raj @ 2022-08-23 18:01 ` Khem Raj 2022-08-23 18:01 ` [PATCH 3/3] ccache: Upgrade to 4.6.2 Khem Raj 1 sibling, 0 replies; 8+ messages in thread From: Khem Raj @ 2022-08-23 18:01 UTC (permalink / raw) To: openembedded-core; +Cc: Khem Raj Signed-off-by: Khem Raj <raj.khem@gmail.com> --- meta/recipes-devtools/ccache/ccache_4.6.1.bb | 1 + .../0001-Include-time.h-for-time_t.patch | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 meta/recipes-devtools/ccache/files/0001-Include-time.h-for-time_t.patch diff --git a/meta/recipes-devtools/ccache/ccache_4.6.1.bb b/meta/recipes-devtools/ccache/ccache_4.6.1.bb index 0d6471ddbc..716aec0584 100644 --- a/meta/recipes-devtools/ccache/ccache_4.6.1.bb +++ b/meta/recipes-devtools/ccache/ccache_4.6.1.bb @@ -13,6 +13,7 @@ DEPENDS = "zstd" SRC_URI = "https://github.com/ccache/ccache/releases/download/v${PV}/${BP}.tar.gz \ file://0001-xxhash.h-Fix-build-with-gcc-12.patch \ + file://0001-Include-time.h-for-time_t.patch \ " SRC_URI[sha256sum] = "59b28a57c3a45e48d6049001999c9f94cd4d3e9b0196994bed9a6a7437ffa3bc" diff --git a/meta/recipes-devtools/ccache/files/0001-Include-time.h-for-time_t.patch b/meta/recipes-devtools/ccache/files/0001-Include-time.h-for-time_t.patch new file mode 100644 index 0000000000..6c1d3cf4f9 --- /dev/null +++ b/meta/recipes-devtools/ccache/files/0001-Include-time.h-for-time_t.patch @@ -0,0 +1,31 @@ +From 3d3364221c235c733436abaeeea9b5e6813b06ae Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Tue, 23 Aug 2022 10:27:21 -0700 +Subject: [PATCH] Include time.h for time_t + +Fixes +src/core/Statistics.hpp:41:37: error: 'time_t' has not been declared +| 41 | time_t last_updated, +| | ^~~~~~ + +Upstream-Status: Submitted [https://github.com/ccache/ccache/pull/1145] +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- + src/core/Statistics.hpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/core/Statistics.hpp b/src/core/Statistics.hpp +index 3e9ed816..0017f209 100644 +--- a/src/core/Statistics.hpp ++++ b/src/core/Statistics.hpp +@@ -20,6 +20,7 @@ + + #include <core/StatisticsCounters.hpp> + ++#include <ctime> + #include <string> + #include <unordered_map> + #include <vector> +-- +2.37.2 + -- 2.37.2 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/3] ccache: Upgrade to 4.6.2 2022-08-23 18:01 [PATCH 1/3] ccache: Update the patch status Khem Raj 2022-08-23 18:01 ` [PATCH 2/3] ccache: Fix build with gcc12 on musl Khem Raj @ 2022-08-23 18:01 ` Khem Raj 2022-08-24 16:52 ` [OE-core] " Luca Ceresoli 1 sibling, 1 reply; 8+ messages in thread From: Khem Raj @ 2022-08-23 18:01 UTC (permalink / raw) To: openembedded-core; +Cc: Khem Raj Fix build with musl Signed-off-by: Khem Raj <raj.khem@gmail.com> --- .../{ccache_4.6.1.bb => ccache_4.6.2.bb} | 3 ++- .../0001-Include-time.h-for-time_t.patch | 12 ++++----- .../0001-xxhash.h-Fix-build-with-gcc-12.patch | 6 ++--- ...ude-sys-types.h-for-mode_t-defintion.patch | 25 +++++++++++++++++++ 4 files changed, 34 insertions(+), 12 deletions(-) rename meta/recipes-devtools/ccache/{ccache_4.6.1.bb => ccache_4.6.2.bb} (85%) create mode 100644 meta/recipes-devtools/ccache/files/0002-config-Include-sys-types.h-for-mode_t-defintion.patch diff --git a/meta/recipes-devtools/ccache/ccache_4.6.1.bb b/meta/recipes-devtools/ccache/ccache_4.6.2.bb similarity index 85% rename from meta/recipes-devtools/ccache/ccache_4.6.1.bb rename to meta/recipes-devtools/ccache/ccache_4.6.2.bb index 716aec0584..dbac02243c 100644 --- a/meta/recipes-devtools/ccache/ccache_4.6.1.bb +++ b/meta/recipes-devtools/ccache/ccache_4.6.2.bb @@ -14,8 +14,9 @@ DEPENDS = "zstd" SRC_URI = "https://github.com/ccache/ccache/releases/download/v${PV}/${BP}.tar.gz \ file://0001-xxhash.h-Fix-build-with-gcc-12.patch \ file://0001-Include-time.h-for-time_t.patch \ + file://0002-config-Include-sys-types.h-for-mode_t-defintion.patch \ " -SRC_URI[sha256sum] = "59b28a57c3a45e48d6049001999c9f94cd4d3e9b0196994bed9a6a7437ffa3bc" +SRC_URI[sha256sum] = "6a746a9bed01585388b68e2d58af2e77741fc8d66bc360b5a0b4c41fc284dafe" UPSTREAM_CHECK_URI = "https://github.com/ccache/ccache/releases/" diff --git a/meta/recipes-devtools/ccache/files/0001-Include-time.h-for-time_t.patch b/meta/recipes-devtools/ccache/files/0001-Include-time.h-for-time_t.patch index 6c1d3cf4f9..d752eb0651 100644 --- a/meta/recipes-devtools/ccache/files/0001-Include-time.h-for-time_t.patch +++ b/meta/recipes-devtools/ccache/files/0001-Include-time.h-for-time_t.patch @@ -1,4 +1,4 @@ -From 3d3364221c235c733436abaeeea9b5e6813b06ae Mon Sep 17 00:00:00 2001 +From 590c656838a9b3769a7a855fb1891bfa8d8878ad Mon Sep 17 00:00:00 2001 From: Khem Raj <raj.khem@gmail.com> Date: Tue, 23 Aug 2022 10:27:21 -0700 Subject: [PATCH] Include time.h for time_t @@ -10,22 +10,20 @@ src/core/Statistics.hpp:41:37: error: 'time_t' has not been declared Upstream-Status: Submitted [https://github.com/ccache/ccache/pull/1145] Signed-off-by: Khem Raj <raj.khem@gmail.com> + --- src/core/Statistics.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/Statistics.hpp b/src/core/Statistics.hpp -index 3e9ed816..0017f209 100644 +index 54f32e9..eb80e1c 100644 --- a/src/core/Statistics.hpp +++ b/src/core/Statistics.hpp -@@ -20,6 +20,7 @@ - +@@ -21,6 +21,7 @@ #include <core/StatisticsCounters.hpp> + #include <cstdint> +#include <ctime> #include <string> #include <unordered_map> #include <vector> --- -2.37.2 - diff --git a/meta/recipes-devtools/ccache/files/0001-xxhash.h-Fix-build-with-gcc-12.patch b/meta/recipes-devtools/ccache/files/0001-xxhash.h-Fix-build-with-gcc-12.patch index aab943459d..67c74a1e8e 100644 --- a/meta/recipes-devtools/ccache/files/0001-xxhash.h-Fix-build-with-gcc-12.patch +++ b/meta/recipes-devtools/ccache/files/0001-xxhash.h-Fix-build-with-gcc-12.patch @@ -1,4 +1,4 @@ -From cfde5ba7d10ae1e9d0c259dd1e7027e9bad8f83c Mon Sep 17 00:00:00 2001 +From 550834a3ec2e05e379be63b084e7fa06a1723f84 Mon Sep 17 00:00:00 2001 From: Mingli Yu <mingli.yu@windriver.com> Date: Mon, 6 Jun 2022 17:53:20 +0800 Subject: [PATCH] xxhash.h: Fix build with gcc-12 @@ -17,6 +17,7 @@ Remove inline attribute to fix below build failure: Upstream-Status: Submitted [https://github.com/Cyan4973/xxHash/pull/720] Signed-off-by: Mingli Yu <mingli.yu@windriver.com> + --- src/third_party/xxhash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) @@ -34,6 +35,3 @@ index 08ab794..c754e99 100644 # define XXH_NO_INLINE static __attribute__((noinline)) #elif defined(_MSC_VER) /* Visual Studio */ # define XXH_FORCE_INLINE static __forceinline --- -2.25.1 - diff --git a/meta/recipes-devtools/ccache/files/0002-config-Include-sys-types.h-for-mode_t-defintion.patch b/meta/recipes-devtools/ccache/files/0002-config-Include-sys-types.h-for-mode_t-defintion.patch new file mode 100644 index 0000000000..0fd77602df --- /dev/null +++ b/meta/recipes-devtools/ccache/files/0002-config-Include-sys-types.h-for-mode_t-defintion.patch @@ -0,0 +1,25 @@ +From f98b390a2d323f7f92fb0492b0943d201afe5b8f Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Tue, 23 Aug 2022 10:40:53 -0700 +Subject: [PATCH] config: Include sys/types.h for mode_t defintion + +Upstream-Status: Submitted [https://github.com/ccache/ccache/pull/1145] +Signed-off-by: Khem Raj <raj.khem@gmail.com> + +--- + src/Config.hpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/Config.hpp b/src/Config.hpp +index a9e08ec..9e7af40 100644 +--- a/src/Config.hpp ++++ b/src/Config.hpp +@@ -25,6 +25,8 @@ + + #include "third_party/nonstd/optional.hpp" + ++#include <sys/types.h> ++ + #include <cstdint> + #include <functional> + #include <limits> -- 2.37.2 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [OE-core] [PATCH 3/3] ccache: Upgrade to 4.6.2 2022-08-23 18:01 ` [PATCH 3/3] ccache: Upgrade to 4.6.2 Khem Raj @ 2022-08-24 16:52 ` Luca Ceresoli 2022-08-24 16:57 ` Khem Raj 0 siblings, 1 reply; 8+ messages in thread From: Luca Ceresoli @ 2022-08-24 16:52 UTC (permalink / raw) To: Khem Raj; +Cc: openembedded-core Hi Khem, On Tue, 23 Aug 2022 11:01:51 -0700 "Khem Raj" <raj.khem@gmail.com> wrote: > Fix build with musl > > Signed-off-by: Khem Raj <raj.khem@gmail.com> AB testing with these 3 patches I got an error in test_ccache_tool. Not sure these patches are guilty, but they are the only ones ccache-related. Maybe you can have a look? https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/4037/steps/15/logs/stdio Best regards, -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [OE-core] [PATCH 3/3] ccache: Upgrade to 4.6.2 2022-08-24 16:52 ` [OE-core] " Luca Ceresoli @ 2022-08-24 16:57 ` Khem Raj 2022-08-24 17:04 ` Khem Raj 2022-08-25 10:02 ` Luca Ceresoli 0 siblings, 2 replies; 8+ messages in thread From: Khem Raj @ 2022-08-24 16:57 UTC (permalink / raw) To: Luca Ceresoli; +Cc: openembedded-core On Wed, Aug 24, 2022 at 9:52 AM Luca Ceresoli <luca.ceresoli@bootlin.com> wrote: > > Hi Khem, > > On Tue, 23 Aug 2022 11:01:51 -0700 > "Khem Raj" <raj.khem@gmail.com> wrote: > > > Fix build with musl > > > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > > AB testing with these 3 patches I got an error in test_ccache_tool. Not > sure these patches are guilty, but they are the only ones > ccache-related. > > Maybe you can have a look? > > https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/4037/steps/15/logs/stdio > drop the upgrade patch [3/3] ccache: Upgrade to 4.6.2 and see if that helps. We dont really need that for gcc 12 issue. > Best regards, > -- > Luca Ceresoli, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [OE-core] [PATCH 3/3] ccache: Upgrade to 4.6.2 2022-08-24 16:57 ` Khem Raj @ 2022-08-24 17:04 ` Khem Raj 2022-08-25 10:02 ` Luca Ceresoli 1 sibling, 0 replies; 8+ messages in thread From: Khem Raj @ 2022-08-24 17:04 UTC (permalink / raw) To: Luca Ceresoli; +Cc: openembedded-core On Wed, Aug 24, 2022 at 9:57 AM Khem Raj <raj.khem@gmail.com> wrote: > > On Wed, Aug 24, 2022 at 9:52 AM Luca Ceresoli <luca.ceresoli@bootlin.com> wrote: > > > > Hi Khem, > > > > On Tue, 23 Aug 2022 11:01:51 -0700 > > "Khem Raj" <raj.khem@gmail.com> wrote: > > > > > Fix build with musl > > > > > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > > > > AB testing with these 3 patches I got an error in test_ccache_tool. Not > > sure these patches are guilty, but they are the only ones > > ccache-related. > > > > Maybe you can have a look? > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/4037/steps/15/logs/stdio > > > looking at logs I see rsync is failng perhaps due to some pseudo stuff underneath or combination of. | INSTALL /home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-3150738/tmp/work/core2-64-poky-linux/linux-libc-headers/5.19-r0/image/usr/include | abort()ing pseudo client by server request. See https://wiki.yoctoproject.org/wiki/Pseudo_Abort for more details on this. | Check logfile: /home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-3150738/tmp/work/core2-64-poky-linux/linux-libc-headers/5.19-r0/pseudo//pseudo.log | rsync: connection unexpectedly closed (14935 bytes received so far) [sender] | rsync error: error in rsync protocol data stream (code 12) at io.c(228) [sender=3.2.5] | make: *** [Makefile:1277: headers_install] Error 12 | ERROR: oe_runmake failed | WARNING: /home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-3150738/tmp/work/core2-64-poky-linux/linux-libc-headers/5.19-r0/temp/run.do_install.3307996:185 exit 1 from 'exit 1' | WARNING: Backtrace (BB generated script): > drop the upgrade patch > > [3/3] ccache: Upgrade to 4.6.2 > > and see if that helps. We dont really need that for gcc 12 issue. > > > Best regards, > > -- > > Luca Ceresoli, Bootlin > > Embedded Linux and Kernel engineering > > https://bootlin.com ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [OE-core] [PATCH 3/3] ccache: Upgrade to 4.6.2 2022-08-24 16:57 ` Khem Raj 2022-08-24 17:04 ` Khem Raj @ 2022-08-25 10:02 ` Luca Ceresoli 2022-08-25 14:36 ` Khem Raj 1 sibling, 1 reply; 8+ messages in thread From: Luca Ceresoli @ 2022-08-25 10:02 UTC (permalink / raw) To: Khem Raj; +Cc: openembedded-core Hi Khem, On Wed, 24 Aug 2022 09:57:13 -0700 "Khem Raj" <raj.khem@gmail.com> wrote: > On Wed, Aug 24, 2022 at 9:52 AM Luca Ceresoli <luca.ceresoli@bootlin.com> wrote: > > > > Hi Khem, > > > > On Tue, 23 Aug 2022 11:01:51 -0700 > > "Khem Raj" <raj.khem@gmail.com> wrote: > > > > > Fix build with musl > > > > > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > > > > AB testing with these 3 patches I got an error in test_ccache_tool. Not > > sure these patches are guilty, but they are the only ones > > ccache-related. > > > > Maybe you can have a look? > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/4037/steps/15/logs/stdio > > > > drop the upgrade patch > > [3/3] ccache: Upgrade to 4.6.2 > > and see if that helps. We dont really need that for gcc 12 issue. My build with the first two patches + the gcc 12.2.0 upgrade succeeded. Thanks! Luca -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [OE-core] [PATCH 3/3] ccache: Upgrade to 4.6.2 2022-08-25 10:02 ` Luca Ceresoli @ 2022-08-25 14:36 ` Khem Raj 0 siblings, 0 replies; 8+ messages in thread From: Khem Raj @ 2022-08-25 14:36 UTC (permalink / raw) To: Luca Ceresoli; +Cc: openembedded-core On Thu, Aug 25, 2022 at 3:02 AM Luca Ceresoli <luca.ceresoli@bootlin.com> wrote: > > Hi Khem, > > On Wed, 24 Aug 2022 09:57:13 -0700 > "Khem Raj" <raj.khem@gmail.com> wrote: > > > On Wed, Aug 24, 2022 at 9:52 AM Luca Ceresoli <luca.ceresoli@bootlin.com> wrote: > > > > > > Hi Khem, > > > > > > On Tue, 23 Aug 2022 11:01:51 -0700 > > > "Khem Raj" <raj.khem@gmail.com> wrote: > > > > > > > Fix build with musl > > > > > > > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > > > > > > AB testing with these 3 patches I got an error in test_ccache_tool. Not > > > sure these patches are guilty, but they are the only ones > > > ccache-related. > > > > > > Maybe you can have a look? > > > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/4037/steps/15/logs/stdio > > > > > > > drop the upgrade patch > > > > [3/3] ccache: Upgrade to 4.6.2 > > > > and see if that helps. We dont really need that for gcc 12 issue. > > My build with the first two patches + the gcc 12.2.0 upgrade succeeded. yeah thats good, I did the patches that way, recipe upgrade was optional for the gcc issue. > Thanks! > > Luca > > -- > Luca Ceresoli, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-08-25 14:37 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-08-23 18:01 [PATCH 1/3] ccache: Update the patch status Khem Raj 2022-08-23 18:01 ` [PATCH 2/3] ccache: Fix build with gcc12 on musl Khem Raj 2022-08-23 18:01 ` [PATCH 3/3] ccache: Upgrade to 4.6.2 Khem Raj 2022-08-24 16:52 ` [OE-core] " Luca Ceresoli 2022-08-24 16:57 ` Khem Raj 2022-08-24 17:04 ` Khem Raj 2022-08-25 10:02 ` Luca Ceresoli 2022-08-25 14:36 ` Khem Raj
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox