Description of problem: See this Gentoo bug report: https://bugs.gentoo.org/show_bug.cgi?id=341271 See also this: https://bugs.gentoo.org/show_bug.cgi?id=362167 Version-Release number of selected component (if applicable): 1.11 and git How reproducible: 100% Steps to Reproduce: 1. Download virt-what 1.11 or git. 2. Install glibc-devel.i686 3. Compile virt-what-cpuid-helper as a 32 bit object file with PIE: gcc -fpie -std=gnu99 -DHAVE_CONFIG_H -I. -Wall -Os -march=i686 -m32 -mtune=core2 -fomit-frame-pointer -c virt-what-cpuid-helper.c Actual results: I get a different error (but still an error) from the Gentoo report. For me it says: virt-what-cpuid-helper.c:33:3: error: inconsistent operand constraints in an ‘asm’ virt-what-cpuid-helper.c:33:3: error: inconsistent operand constraints in an ‘asm’ Removing the -fpie option makes this error go away. Expected results: No error. Additional info: When using PIE, %ebx is used by the compiler for relative addressing. (Doesn't happen with x86-64, presumably because rip-relative addressing is used there)
Created attachment 570775 [details] https://bugzilla.redhat.com/show_bug.cgi?id=804282 Proposed patch.
Fixed upstream in virt-what 1.12.