Comment # 1 on bug 1188085 from
The funny thing is, the upstream test suite itself breaks due to LTO linking.
It uses cmocka for testing which uses the linker's `--wrap` feature which
doesn't play well with LTO.

`make check` fails with:

    CCLD     test/unit/test_options
    /usr/lib64/gcc/x86_64-suse-linux/11/../../../../x86_64-suse-linux/bin/ld:
    /tmp/ccm0mVAn.ltrans0.ltrans.o: in function
`tpm2_handle_options.constprop.0':
    /home/abuild/rpmbuild/BUILD/tpm2-tools-5.1.1/lib/tpm2_options.c:386:
undefined reference to `__wrap_tpm2_util_getenv'

The problem behind this is described in [1], [2].

[1]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88643
[2]: https://bugzilla.redhat.com/show_bug.cgi?id=1693831

So I don't really know how to fix that.

I have prepared the devel project of the package to run the test suite via the
%check section, but will leave it commented out for now until some great idea
comes up how to deal with that.


You are receiving this mail because: