Skip to content

🚑 Disable LTO by default for 14#39

Merged
kammce merged 2 commits intomainfrom
disable-lto-gcc-14
Jan 24, 2026
Merged

🚑 Disable LTO by default for 14#39
kammce merged 2 commits intomainfrom
disable-lto-gcc-14

Conversation

@kammce
Copy link
Copy Markdown
Member

@kammce kammce commented Jan 24, 2026

LTO is disabled for ARM GCC 14.x. From testing, it seems that LTO compression support for ZSTD is enabled for Linux (maybe Windows too), but not for Mac. This results in the following error when Linux built binaries are used on a mac build:

lto1: fatal error: compiler does not support ZSTD LTO compression
compilation terminated.
lto-wrapper: fatal error: bin/arm-none-eabi-g++ returned 1 exit status
compilation terminated. arm-none-eabi/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

LTO is disabled for ARM GCC 14.x. From testing, it seems that LTO
compression support for ZSTD is enabled for Linux (maybe Windows too),
but not for Mac. This results in the following error when Linux built
binaries are used on a mac build:

```plaintext
lto1: fatal error: compiler does not support ZSTD LTO compression
compilation terminated.
lto-wrapper: fatal error: bin/arm-none-eabi-g++ returned 1 exit status
compilation terminated. arm-none-eabi/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
```
@kammce kammce merged commit 241585a into main Jan 24, 2026
66 checks passed
@kammce kammce deleted the disable-lto-gcc-14 branch January 24, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant