Can’t Build RPM For I686 Target (i386 Works)

Home » CentOS » Can’t Build RPM For I686 Target (i386 Works)
CentOS 5 Comments

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?

5 thoughts on - Can’t Build RPM For I686 Target (i386 Works)

  • 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.)

  • 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?

  • 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)