rpm build errors - checking for C compiler default output... configure: error: C compiler cannot create executables

Hi I have a 32 build build environment on fedora 12 64bit. The build environment is a complete system (unless the provider has missed something) .. I chroot into the build environment. When I run rpmbuild on any of the provided sources / spec files they exit with " checking for C compiler default output... configure: error: C compiler cannot create executables " Or similar. eg : bash-3.00# rpmbuild -ba -v ./SPECS/expat.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.76344 + umask 022 + cd /root/rpmbuild/BUILD + cd /root/rpmbuild/BUILD + rm -rf expat-1.95.7 + /bin/gzip -dc /root/rpmbuild/SOURCES/expat-1.95.7.tar.gz + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd expat-1.95.7 + echo 'Patch #0 (expat-1.95.7-xmlcall.patch):' Patch #0 (expat-1.95.7-xmlcall.patch): + patch -p1 -b --suffix .xmlcall -s + echo 'Patch #1 (expat-malloc-failure.diff):' Patch #1 (expat-malloc-failure.diff): + patch -p0 -b --suffix .malloc -s + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.76344 + umask 022 + cd /root/rpmbuild/BUILD + cd expat-1.95.7 + export 'CFLAGS=-O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fPIC' + CFLAGS='-O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fPIC' + CFLAGS='-O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fPIC' + export CFLAGS + CXXFLAGS='-O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' + export FFLAGS + ./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=i386-pc-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info configure: loading cache /dev/null /dev/null: line 1: ./configure:: No such file or directory checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for i686-pc-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output... configure: error: C compiler cannot create executables error: Bad exit status from /var/tmp/rpm-tmp.76344 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.76344 (%build) bash-3.00# Any suggestions ? Greg Regards Gregory Machin Phone: +64 78 525 380 a/h Mobile: +64 211 844 347 Chat Google Talk: clubbing80s(a)gmail.com Skype: clubbing80s MSN: clubbing80s(a)hotmail.com Y! messenger: clubbing80s(a)ymail.com Contact Me [image: Linkedin]<http://za.linkedin.com/pub/gregory-machin/8/310/8ab>[image: Twitter] <http://twitter.com/clubbing80s>
participants (1)
-
Gregory Machin