On Nov 17, 2007 6:31 AM, Michael Schwendt <mschwendt@gmail.com> wrote:
> On 16/11/2007, Joe Christy wrote:
>
> > Can someone please point me to the appropraite place to learn how to
> > build i386 rpms on x86_64?
>
> If /etc/rpm/platform exists, remove it or change it appropriately.
> Then run "setarch i686 rpmbuild --target i386 --rebuild ..."
>
If you run "rpmbuild --target=x86_64,i386 --define="dist fc8"
firefox.spec" it will try to build both rpms.
It works for most packages, however, for me the compile of firefox
fails on an x86_64 machine when it comes time to build the i386
version. I did a lot of googling and found several people who
reported the same compile time failure, and in the end i just ended up
finding an i386 machine to try to do the compile. That worked fine.
In case people who know "how to" are reading, here's the error that
ends the compile. As I said, I've seen plenty of people posting about
this, but there's no obvious fix for me--some people suggest patches
to the libraries that are being used, but I don't see clear consensus
on the "right" approach.
--
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
11-19-2007, 05:10 PM
"Paul Johnson"
How to build i386 rpms on x86_64?
On Nov 16, 2007 1:02 PM, Joe Christy <joe@eshu.net> wrote:
>
> rpmbuild --sign -ba --with bytecode_interpreter --with
> subpixel_rendering --target=i386 freetype.spec
>
> fails, with the following error:
> checking for gcc... gcc
> checking for C compiler default output file name...
> configure: error: C compiler cannot create executables
> See `config.log' for more details.
> make: *** [setup] Error 77
> error: Bad exit status from /usr/local/rpm/tmp/rpm-tmp.27521 (%build)
>
>
> RPM build errors:
> Bad exit status from /usr/local/rpm/tmp/rpm-tmp.27521 (%build)
>
>
>
Forgot to mention. This particular configure error means that you are
missing some of the i386 packages that are needed to build stuff on
your x86_64, or that your gcc is somehow otherwise incomplete or
messed up. I know I've seen that error you get and installing all of
the i386 packages fixed it.
--
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
11-19-2007, 05:22 PM
Patrick
How to build i386 rpms on x86_64?
On Mon, 2007-11-19 at 11:56 -0600, Paul Johnson wrote:
[snip]
> In case people who know "how to" are reading, here's the error that
> ends the compile. As I said, I've seen plenty of people posting about
> this, but there's no obvious fix for me--some people suggest patches
> to the libraries that are being used, but I don't see clear consensus
> on the "right" approach.
> gmake[4]: *** Waiting for unfinished jobs....
Not an expert on this at all but have you tried building Firefox with
_smp_mflags -j1? To set -j1 add this to your ~/.rpmmacros file:
%_smp_mflags -j1
Regards,
Patrick
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list