I'm creating a simple RPM for my 32-bit CentOS 6 server. When I build the RPM without specifying a target architecture (rpmbuild foo.spec), it successfully builds an i386 RPM.
If I try to build an i686 RPM, I get nothing:
$ rpmbuild --target i686 foo.spec Building target platforms: i686 Building for target i686
And I'm returned to command prompt with no error message. The SPEC file doesn't contain any architecture-related tags.
I feel like I must be missing something really, really basic, but I'll be darned if I can figure out what it might be.
Any ideas?
On Wed, 19 Nov 2014 14:40:55 -0600 Ian Pilcher wrote:
I'm creating a simple RPM for my 32-bit CentOS 6 server. When I build the RPM without specifying a target architecture (rpmbuild foo.spec), it successfully builds an i386 RPM.
export CC="gcc -m32" rpmbuild --target=i686 foo.spec
On 11/19/2014 02:49 PM, Frank Cox wrote:
export CC="gcc -m32" rpmbuild --target=i686 foo.spec
Same result.
Building target platforms: i686 Building for target i686
No error message or code.
Weird. Weird. Weird. (And I can't escape the feeling that I've seen this before.)
On 19/11/14 20:40, Ian Pilcher wrote:
I'm creating a simple RPM for my 32-bit CentOS 6 server. When I build the RPM without specifying a target architecture (rpmbuild foo.spec), it successfully builds an i386 RPM.
If I try to build an i686 RPM, I get nothing:
$ rpmbuild --target i686 foo.spec Building target platforms: i686 Building for target i686
And I'm returned to command prompt with no error message. The SPEC file doesn't contain any architecture-related tags.
I feel like I must be missing something really, really basic, but I'll be darned if I can figure out what it might be.
Any ideas?
Try running rpmbuild verbosely with -vv and see if that gives you any clues.
Can you rebuild other i686 packages? That should tell you if the issue is with your build system or the package in question.
Have you ever edited any arch related parameters in ~/.rpmrc?
On 11/19/2014 04:02 PM, Ned Slider wrote:
Try running rpmbuild verbosely with -vv and see if that gives you any clues.
I just figure it out. I am a moron.
When I added "--target i686" to the command line (or "--target i386"), I was omitting the "-bb". rpmbuild wasn't doing anything, because I didn't tell it to do anything. I.e. I was literally typing "rpmbuild --target i686 foo.spec".
I'm going to crawl back into my hole now. Please ignore this thread.
:-/
On 11/19/14 19:57, Ian Pilcher wrote:
On 11/19/2014 04:02 PM, Ned Slider wrote:
Try running rpmbuild verbosely with -vv and see if that gives you any clues.
I just figure it out. I am a moron.
When I added "--target i686" to the command line (or "--target i386"), I was omitting the "-bb". rpmbuild wasn't doing anything, because I didn't tell it to do anything. I.e. I was literally typing "rpmbuild --target i686 foo.spec".
I'm going to crawl back into my hole now. Please ignore this thread.
:-/
Hey Ian,
Could you post the successful command line to the mail list, including the -bb, for the benefit of those who might be searching for a solution to the same problem you tripped over.
Change the subject to Re: [CentOS] Can't build RPM for i686 target (i386 works)(SOLVED)