https://bugs.kde.org/show_bug.cgi?id=528631
--- Comment #6 from Martin Cermak <[email protected]> --- Created attachment 198560 --> https://bugs.kde.org/attachment.cgi?id=198560&action=edit AI generated libcpuoverride patch For the libcpuidoverride project, the source code is broken on modern Fedora 44. It needs a tweak to get it compiled with GCC-16 (missing defines). But after that there is a deeper linker level run time problem. I have an AI generated patch that seems to get libcpuidoverride working. But I don't fully understand it. Attached FTR. Once libcpuidoverride is finally compiled, it seems to test similarly to the above libvirtcpuid based scenario shown above in Comment #5: $ cp /usr/bin/cpuid . $ readelf -l ./cpuid | fgrep -i interpreter [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2] $ patchelf --set-interpreter $(readlink -f libcpuidoverride.so) cpuid $ readelf -l ./cpuid | fgrep -i interpreter [Requesting program interpreter: /home/[ ... stuff deleted ... ]/libcpuidoverride.so] $ NO_SSE41=1 ./cpuid -1 | fgrep -i sse4 Overriding feature SSE41! Hiding feature SSE41! Hiding feature SSE41! SSE4.1 extensions = false SSE4.2 extensions = true $ NO_SSE42=1 ./cpuid -1 | fgrep -i sse4 Overriding feature SSE42! Hiding feature SSE42! Hiding feature SSE42! SSE4.1 extensions = true SSE4.2 extensions = false $ $ valgrind --version valgrind-3.28.0.RC1 $ env NO_SSE41=1 valgrind -q ./cpuid -1 Overriding feature SSE41! Failed to enable CPUID faulting! Aborted (core dumped) env NO_SSE41=1 valgrind -q ./cpuid -1 $ $ $VG --version valgrind-3.29.0.GIT $ $ env NO_SSE41=1 $VG -q ./cpuid -1 | fgrep -i sse4 Overriding feature SSE41! Hiding feature SSE41! Hiding feature SSE41! SSE4.1 extensions = false SSE4.2 extensions = true $ That said, I think the Valgrind patch presented in Comment #3 does work as expected. -- You are receiving this mail because: You are watching all bug changes.
