FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 11-19-2007, 04:56 PM
"Paul Johnson"
 
Default How to build i386 rpms on x86_64?

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.

home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsIObserverService.idl nsIObserver.idl nsIProperties.idl
nsISimpleEnumerator.idl nsISupportsPrimitives.idl ../../dist/idl
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsIObserverService.idl nsIObserver.idl nsIProperties.idl
nsISimpleEnumerator.idl nsISupportsPrimitives.idl ../../dist/sdk/idl
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 _xpidlgen/nsIObserverService.h _xpidlgen/nsIObserver.h
_xpidlgen/nsIProperties.h _xpidlgen/nsISimpleEnumerator.h
_xpidlgen/nsISupportsPrimitives.h ../../dist/include/xpcom
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 _xpidlgen/nsIObserverService.h _xpidlgen/nsIObserver.h
_xpidlgen/nsIProperties.h _xpidlgen/nsISimpleEnumerator.h
_xpidlgen/nsISupportsPrimitives.h ../../dist/sdk/include
gmake[4]: Leaving directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/xpcom/ds'
gmake[4]: Entering directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/xpcom/io'
Creating .deps
Creating _xpidlgen/.done
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsAppDirectoryServiceDefs.h nsDirectoryService.h nsEscape.h
nsFastLoadPtr.h nsFastLoadService.h nsLinebreakConverter.h
nsLocalFile.h nsMultiplexInputStream.h nsScriptableInputStream.h
nsStorageStream.h nsStringIO.h nsStringStream.h nsStreamUtils.h
nsNativeCharsetUtils.h nsLocalFileUnix.h ../../dist/include/xpcom
nsIBinaryInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIBinaryInputStream nsIBinaryInputStream.idl
nsIBinaryOutputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIBinaryOutputStream nsIBinaryOutputStream.idl
nsIByteArrayInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIByteArrayInputStream nsIByteArrayInputStream.idl
nsIDirectoryEnumerator.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIDirectoryEnumerator nsIDirectoryEnumerator.idl
nsIFastLoadFileControl.idl
nsIFastLoadService.idl
nsIInputStreamTee.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIFastLoadFileControl nsIFastLoadFileControl.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIFastLoadService nsIFastLoadService.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIInputStreamTee nsIInputStreamTee.idl
nsILocalFileWin.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsILocalFileWin nsILocalFileWin.idl
nsILineInputStream.idl
nsIUnicharLineInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsILineInputStream nsILineInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIUnicharLineInputStream nsIUnicharLineInputStream.idl
nsIMultiplexInputStream.idl
nsIObjectInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIMultiplexInputStream nsIMultiplexInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIObjectInputStream nsIObjectInputStream.idl
nsIObjectOutputStream.idl
nsIPipe.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIObjectOutputStream nsIObjectOutputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIPipe nsIPipe.idl
nsISeekableStream.idl
nsIStorageStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsISeekableStream nsISeekableStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIStorageStream nsIStorageStream.idl
nsIStringStream.idl
nsIStreamBufferAccess.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIStringStream nsIStringStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIStreamBufferAccess nsIStreamBufferAccess.idl
nsIAsyncInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIAsyncInputStream nsIAsyncInputStream.idl
nsIAsyncOutputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIAsyncOutputStream nsIAsyncOutputStream.idl
nsIUnicharInputStream.idl
nsIUnicharOutputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIUnicharInputStream nsIUnicharInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIUnicharOutputStream nsIUnicharOutputStream.idl
nsIConverterInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIConverterInputStream nsIConverterInputStream.idl
nsIConverterOutputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIConverterOutputStream nsIConverterOutputStream.idl
nsIDirectoryService.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIDirectoryService nsIDirectoryService.idl
nsIFile.idl
nsILocalFile.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIFile nsIFile.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsILocalFile nsILocalFile.idl
nsIInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIInputStream nsIInputStream.idl
nsIOutputStream.idl
nsIScriptableInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIOutputStream nsIOutputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIScriptableInputStream nsIScriptableInputStream.idl
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsDirectoryServiceDefs.h nsDirectoryServiceUtils.h
../../dist/include/xpcom
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsDirectoryServiceDefs.h nsDirectoryServiceUtils.h
../../dist/sdk/include
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsIBinaryInputStream.idl nsIBinaryOutputStream.idl
nsIByteArrayInputStream.idl nsIDirectoryEnumerator.idl
nsIFastLoadFileControl.idl nsIFastLoadService.idl
nsIInputStreamTee.idl nsILocalFileWin.idl nsILineInputStream.idl
nsIUnicharLineInputStream.idl nsIMultiplexInputStream.idl
nsIObjectInputStream.idl nsIObjectOutputStream.idl nsIPipe.idl
nsISeekableStream.idl nsIStorageStream.idl nsIStringStream.idl
nsIStreamBufferAccess.idl nsIAsyncInputStream.idl
nsIAsyncOutputStream.idl nsIUnicharInputStream.idl
nsIUnicharOutputStream.idl nsIConverterInputStream.idl
nsIConverterOutputStream.idl ../../dist/idl
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 _xpidlgen/nsIBinaryInputStream.h
_xpidlgen/nsIBinaryOutputStream.h _xpidlgen/nsIByteArrayInputStream.h
_xpidlgen/nsIDirectoryEnumerator.h _xpidlgen/nsIFastLoadFileControl.h
_xpidlgen/nsIFastLoadService.h _xpidlgen/nsIInputStreamTee.h
_xpidlgen/nsILocalFileWin.h _xpidlgen/nsILineInputStream.h
_xpidlgen/nsIUnicharLineInputStream.h
_xpidlgen/nsIMultiplexInputStream.h _xpidlgen/nsIObjectInputStream.h
_xpidlgen/nsIObjectOutputStream.h _xpidlgen/nsIPipe.h
_xpidlgen/nsISeekableStream.h _xpidlgen/nsIStorageStream.h
_xpidlgen/nsIStringStream.h _xpidlgen/nsIStreamBufferAccess.h
_xpidlgen/nsIAsyncInputStream.h _xpidlgen/nsIAsyncOutputStream.h
_xpidlgen/nsIUnicharInputStream.h _xpidlgen/nsIUnicharOutputStream.h
_xpidlgen/nsIConverterInputStream.h
_xpidlgen/nsIConverterOutputStream.h ../../dist/include/xpcom
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsIDirectoryService.idl nsIFile.idl nsILocalFile.idl
nsIInputStream.idl nsIOutputStream.idl nsIScriptableInputStream.idl
../../dist/idl
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsIDirectoryService.idl nsIFile.idl nsILocalFile.idl
nsIInputStream.idl nsIOutputStream.idl nsIScriptableInputStream.idl
../../dist/sdk/idl
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 _xpidlgen/nsIDirectoryService.h _xpidlgen/nsIFile.h
_xpidlgen/nsILocalFile.h _xpidlgen/nsIInputStream.h
_xpidlgen/nsIOutputStream.h _xpidlgen/nsIScriptableInputStream.h
../../dist/include/xpcom
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 _xpidlgen/nsIDirectoryService.h _xpidlgen/nsIFile.h
_xpidlgen/nsILocalFile.h _xpidlgen/nsIInputStream.h
_xpidlgen/nsIOutputStream.h _xpidlgen/nsIScriptableInputStream.h
../../dist/sdk/include
gmake[4]: Leaving directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/xpcom/io'
gmake[4]: Entering directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/xpcom/components'
Creating .deps
Creating _xpidlgen/.done
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsCategoryManagerUtils.h nsCategoryCache.h
nsIServiceManagerObsolete.h nsModule.h nsNativeComponentLoader.h
nsObsoleteModuleLoading.h xcDll.h ../../dist/include/xpcom
nsIComponentLoader.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIComponentLoader nsIComponentLoader.idl
nsIComponentLoaderManager.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIComponentLoaderManager nsIComponentLoaderManager.idl
nsIComponentManagerObsolete.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIComponentManagerObsolete nsIComponentManagerObsolete.idl
nsIClassInfo.idl
nsIComponentRegistrar.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIClassInfo nsIClassInfo.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIComponentRegistrar nsIComponentRegistrar.idl
nsIFactory.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIFactory nsIFactory.idl
nsIModule.idl
gmake[4]: *** [_xpidlgen/nsIClassInfo.h] Error 1
gmake[4]: *** Waiting for unfinished jobs....
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIModule nsIModule.idl
gmake[4]: Leaving directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/xpcom/components'
gmake[3]: *** [export] Error 2
gmake[3]: Leaving directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/xpcom'
gmake[2]: *** [tier_2] Error 2
gmake[2]: Leaving directory `/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla'
gmake[1]: *** [default] Error 2
gmake[1]: Leaving directory `/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla'
make: *** [build] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.24291 (%build)






--
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
 
Old 11-19-2007, 05:10 PM
"Paul Johnson"
 
Default 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
 
Old 11-19-2007, 05:22 PM
Patrick
 
Default 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
 

Thread Tools




All times are GMT. The time now is 03:39 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org