How to create RPM for 32-bit arch from a 64-bit arch server?
Posted
by
Gnanam
on Server Fault
See other posts from Server Fault
or by Gnanam
Published on 2010-11-11T10:12:41Z
Indexed on
2011/01/03
13:55 UTC
Read the original article
Hit count: 416
Our production server is running CentOS5 64-bit arch.
Because there are no RPM available currently for SQLite latest version (v3.7.3), I created RPM using rpmbuild the very first time by following the instructions given here. I was able to successfully create RPM for 64-bit (x86_64) architecture. But am not able to create RPM for 32-bit (i386) architecture. It failed with the following errors:
...
...
...
+ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-threadsafe
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for x86_64-redhat-linux-gnu-gcc... no
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.
error: Bad exit status from /var/tmp/rpm-tmp.73141 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.73141 (%build)
This is the command I called: rpmbuild --target i386 -ba sqlite.spec
My question is, how do I create RPM for 32-bit arch from a 64-bit arch server?
© Server Fault or respective owner