pcp
[Top] [All Lists]

Re: pmmgr build failure on 32-bit Fedora release 17 (Beefy Miracle)

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: pmmgr build failure on 32-bit Fedora release 17 (Beefy Miracle)
From: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Date: Wed, 5 Mar 2014 10:02:07 -0500
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <5316AD5C.3030408@xxxxxxxxxxxxxxxx>
References: <53101471.4000200@xxxxxxxxxxxxxxxx> <y0mzjlbwj2e.fsf@xxxxxxxx> <y0m4n3jw52a.fsf@xxxxxxxx> <5311157B.9010004@xxxxxxxxxxxxxxxx> <20140228231759.GA18123@xxxxxxxxxx> <5316AD5C.3030408@xxxxxxxxxxxxxxxx>
User-agent: Mutt/1.4.2.2i
Hi -

On Wed, Mar 05, 2014 at 03:51:40PM +1100, Ken McDonell wrote:
> [...]
>       /usr/bin/rpmbuild -ba --define '_topdir /home/kenj/src/pcp' --define 
> '_builddir %{_topdir}' --define '_sourcedir %{_topdir}/build/tar' --define 
> '_rpmdir /home/kenj/src/pcp/build/rpm' --define '_srcrpmdir 
> /home/kenj/src/pcp/build/rpm' --define '_specdir %{_topdir}/build/rpm' 
> --define '_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' --clean 
> pcp.spec

Note no --target overrides in there.


> and rpmbuild builds a shell script to run that looks like this ...
> [...]
>   RPM_OPT_FLAGS="-O2 -g -march=i386 -mtune=i686"
> [...]
> So it is rpmbuild in this case that is adding the bogus (?) and
> additional CFLAGS and CXXFLAGS

So something went wrong around this point.  Do you perhaps have a
personal $HOME/.rpm* file or a modified system one?


> $ grep 'optflag.*march=i386' /usr/lib/rpm/rpmrc
> optflags: i386 -O2 -g -march=i386 -mtune=i686

That is supposed to trigger based upon the rpmbuild --target=ARCH setting;
note similar values for i686 etc.


> [...]  So the question is what is the _proper_ way to smack
> rpmbuild in a case like this?

I think the key is to stop overriding what are probably the proper
system defaults; we just need to find what's doing the dirty deed.
You should be seeing this:

% rpm --eval %_target_cpu
i686
% grep _cpu /usr/lib/rpm/macros /etc/rpm/* $HOME/.rpm*
/usr/lib/rpm/macros:%_build_cpu                 %{_host_cpu}
/usr/lib/rpm/macros:%_host_cpu                  i686
/usr/lib/rpm/macros:%_target_cpu                %{_host_cpu}

- FChE

<Prev in Thread] Current Thread [Next in Thread>