Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1056753 - tboot fail to build on i686
Summary: tboot fail to build on i686
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tboot
Version: 7.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: David Cantrell
QA Contact: Release Test Team
Depends On:
TreeView+ depends on / blocked
Reported: 2014-01-22 20:42 UTC by Tuomo Soini
Modified: 2014-01-23 18:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-01-23 13:20:08 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Tuomo Soini 2014-01-22 20:42:17 UTC
mock build of tboot on i686 always fail with rhel7 i686 compiler flags.

Fix for the issue:

diff --git a/tboot.spec b/tboot.spec
index 8c0a5c4..af94288 100644
--- a/tboot.spec
+++ b/tboot.spec
@@ -33,6 +33,9 @@ and verified launch of an OS kernel/VMM.
 %patch2 -p1
+%ifarch %{ix86}
+RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS|sed -e 's/-mfpmath=sse//')
 make debug=y %{?_smp_mflags}

Comment 2 David Cantrell 2014-01-23 13:20:08 UTC
tboot is exclusive to x86_64:

ExclusiveArch:  x86_64

Comment 3 Pat Riehecky 2014-01-23 17:20:14 UTC
The spec file has

ExclusiveArch:  %{ix86} x86_64

and %{ix86} seems to expand to i686

Comment 4 David Cantrell 2014-01-23 18:44:52 UTC
I changed this just this week.  The new tboot is tboot-1.7.4-1.el7.  You're looking at an old build.

Note You need to log in before you can comment on or make changes to this bug.