how to have mock use arch i686?

Matt Domsch matt at domsch.com
Tue Feb 16 13:34:27 UTC 2010


This post suggests I need to be building packages using arch i686
instead of i386 as mock does by default.  If so, how do I go about
doing so?

Thanks,
Matt


----- Forwarded message from bugzilla at redhat.com -----

Date: Tue, 16 Feb 2010 07:23:46 -0500
Subject: [Bug 565074] FTBFS opencv-2.0.0-4.fc13

Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=565074

Karel Klíč <kklic at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |CLOSED
         Resolution|                            |RAWHIDE

--- Comment #5 from Karel Klíč <kklic at redhat.com> 2010-02-16 07:23:43 EST ---
The -march=i386 is added by /usr/lib/rpm/redhat/rpmrc

The FTBFS system uses i386 build architecture. Koji uses i686 architecture
which has no problem with the compilation.

I fixed it by overriding CXXFLAXS on i386:
%ifarch i386
export CXXFLAGS="%{__global_cflags} -m32 -fasynchronous-unwind-tables"
%endif

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You reported the bug.


----- End forwarded message -----


More information about the devel mailing list