FS#75290 - [uudeview] The *.o objects have LTO version 11.0 instead of 12.0
Attached to Project:
Arch Linux
Opened by Klaus Alexander Seistrup (kseistrup) - Sunday, 10 July 2022, 13:39 GMT
Last edited by Toolybird (Toolybird) - Monday, 23 October 2023, 05:09 GMT
Opened by Klaus Alexander Seistrup (kseistrup) - Sunday, 10 July 2022, 13:39 GMT
Last edited by Toolybird (Toolybird) - Monday, 23 October 2023, 05:09 GMT
|
Details
Description:
Linking in any of “/usr/lib/uudeview/*.o” with gcc v12 fails because, as the compiler puts it: » lto1: fatal error: bytecode stream in file ‘/usr/lib/uudeview/fptools.o’ generated with LTO version 11.0 instead of the exp ected 12.0 compilation terminated. « Additional info: * package version(s) community/uudeview 0.5.20-16 core/gcc 12.1.0-2 * config and/or log files etc. The error was seen when attempting to compile aur/slrn-snapshot: https://aur.archlinux.org/packages/slrn-snapshot * link to upstream bug report, if any Steps to reproduce: 1. Install community/uudeview then compile the attached minimal uufail.c thusly: gcc -o uufail uufail.c /usr/lib/uudeview/*.o 2. Observe the error: »lto1: fatal error: bytecode stream in file ‘/usr/lib/uudeview/fptools.o’ generated with LTO version 11.0 instead of the expected 12.0« |
This task depends upon
Closed by Toolybird (Toolybird)
Monday, 23 October 2023, 05:09 GMT
Reason for closing: Fixed
Additional comments about closing: uudeview 20230502-3
Monday, 23 October 2023, 05:09 GMT
Reason for closing: Fixed
Additional comments about closing: uudeview 20230502-3
Also, when updated to 0.5.20-16, this was added to the configure invocation:
CFLAGS="-ffat-lto-objects"
According to [1], it was supposed to be CFLAGS+=" -ffat-lto-objects"
i.e. added to existing CFLAGS, not replace them.
[1] https://archlinux.org/todo/lto-fat-objects/
Unfortunately not. There are still many places like "=yend size=%d part=%d pcrc32=%08lx" where "%d" should have been "%ld" (and places where "%d" is the right thing, so a simple search-replace will noty work).
uudeview-0.5.20-16-x86_64-bui... (10.2 KiB)
uudeview-0.5.20-16-x86_64-pac... (11.6 KiB)
1. Multiple bugfix patch:
* Don't force overwrite mode if auto-rename enabled
* Don't ignore special chars when parsing MIME.
* Fix for #320541 also fixes #242999.
* Incorporate suspicious-file patch from Peter Muir.
2. CVE-2004-2265 patch
3. CVE-2008-2266 patch
4. Prefer rename to copy patch.
5. Makefile patch
6. Missing function signature patch
Not from Gentoo the format security patch.
After the `gcc` package has been updated to v13.*, the linker is now complaining that `*.o` (pkgver=0.5.20-17) has LTO objects of version 12 when it expects version 13.
FS#80043here/usr/lib/libuu.a should work, no .o needed. At least I was able to build slrn
Dropping configuring and building uulib without -ffat-lto-objects. This then allows dropping !strip from the options array and dropping the manual stripping of the binary.
Dropping staticlibs from the options array as the package does not ship a shared library version of libuu.
Adding -ffat-lto-objects to CFLAGS instead of overwriting them with that value.
Running autoreconf in prepare()
Suggested changes have been applied in the attached diff.