ubuntu 23.10: lto1: fatal error: bytecode stream in file libunwind-aarch64.a’ generated with LTO version 12.0 instead of the expected 13.0

Asked by Changbin Du

The shipped libunwind-aarch64.a is build with gcc 12.0, but shipped gcc is 13.0. Should it be fixed?

lto1: fatal error: bytecode stream in file ‘/usr/lib/gcc/aarch64-linux-gnu/13/../../../aarch64-linux-gnu/libunwind-aarch64.a’ generated with LTO version 12.0 instead of the expected 13.0
compilation terminated.
lto-wrapper: fatal error: aarch64-linux-gnu-gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu libunwind Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bernard Stafford (bernard010) said (last edit ):
#1

https://packages.ubuntu.com/mantic/libunwind-13
Try installing libunwind-13
sudo apt install libunwind-13

sudo apt autoremove
to remove any unneeded packages.
you will most likely have to reboot computer.
Exit code 1 | Operation not permitted
https://packages.ubuntu.com/search?keywords=libunwind&searchon=names&suite=mantic&section=all

Can you help with this problem?

Provide an answer of your own, or ask Changbin Du for more information if necessary.

To post a message you must log in.