Skip to contentSkip to conversation

gcc: depend on zstd

PATCH Superseded Sean Nyekjaer 2 participants 4 messages Sep 27, 2023

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc: depend on zstd

Add zstd LTO support for the nativesdk compiler.

---
% x86_64-oe-linux-gcc -v
[...]
Supported LTO compression algorithms: zlib zstd
gcc version 12.2.0 (GCC)
% x86_64-oesdk-linux-gcc -v
[...]
Supported LTO compression algorithms: zlib
gcc version 12.2.0 (GCC)
---

---
 meta/recipes-devtools/gcc/gcc-13.2.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/gcc/gcc-13.2.inc +1 -1
index d96f3171e4..359db1e278 100644
@@ -10,7 +10,7 @@ BINV = "13.2.0"
 
 FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc:${FILE_DIRNAME}/gcc/backport:"
 
-DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
+DEPENDS =+ "mpfr gmp libmpc zlib zstd flex-native"
 NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native zstd-native"
 
 LICENSE = "GPL-3.0-with-GCC-exception & GPL-3.0-only"
Signature · 1 line
2.42.0
#1 lore raw
Quoted 1 line · Sean Nyekjaer

Add zstd LTO support for the nativesdk compiler.

This is changing it for the target compiler as well?

Perhaps also mention it brings it into sync with gcc-cross (assuming it does?).

Cheers,

Richard

#2 lore raw
Quoted 7 lines · Richard Purdie
Quoted 1 line · Sean Nyekjaer

Add zstd LTO support for the nativesdk compiler.

Quoted 9 lines

This is changing it for the target compiler as well?

Perhaps also mention it brings it into sync with gcc-cross (assuming it does?).

Cheers,

Richard

Hi Richard,

It looks like the target compiler(x86_64-oe-linux) already had zstd support.

---
% x86_64-oe-linux-gcc -v
[...]
Supported LTO compression algorithms: zlib zstd
gcc version 12.2.0 (GCC)
% x86_64-oesdk-linux-gcc -v
[...]
Supported LTO compression algorithms: zlib
gcc version 12.2.0 (GCC)
—

Or I’m wrong?

Br,
/Sean

#3 lore raw
Quoted 31 lines · Sean Nyekjaer
Quoted 6 lines · Richard Purdie
Quoted 1 line · Sean Nyekjaer

Add zstd LTO support for the nativesdk compiler.

Quoted 9 lines

This is changing it for the target compiler as well?

Perhaps also mention it brings it into sync with gcc-cross (assuming it does?).

Cheers,

Richard

Hi Richard,

It looks like the target compiler(x86_64-oe-linux) already had zstd support.

---
% x86_64-oe-linux-gcc -v
[...]
Supported LTO compression algorithms: zlib zstd
gcc version 12.2.0 (GCC)
% x86_64-oesdk-linux-gcc -v
[...]
Supported LTO compression algorithms: zlib
gcc version 12.2.0 (GCC)
—

Quoted 1 line

Or I’m wrong?

Sorry, I mean the on target compiler, i.e. if you boot an image with gcc in it. I think it might be missing there. The compiler above is what I'd refer to as the cross compiler.

I'd just like to be clear in the commit message what the current state is and which ones are changing. I do agree we should bring them into sync.

Cheers,

Richard