Dear Ian The problem on my machine is that for some reasons yum isn't working. Therefore I am not able to install package glibc-devel.i386 from repository. I have another machine with the same configuration, same platform on which yum is working. On that machine I am able to install glibc-devel via yum and also able to install gcc with multilib option. Now what I did is that copied libraries from /usr/lib of that machine to the /usr/lib of my this machine. For example gcc build gave error or lc, libc_stubs,libc_nonshared,crtn.o I copied these files to /usr/lib and then these error didn't come again. But now I am stuck with the following error. Could you please guide me which library or other files comes with glibc-devel installation so that I can copy them at once. Adding multilib support to Makefile in ../../../gcc-4.7.2/libgomp multidirs=32 with_multisubdir= Running configure in multilib subdirs 32 pwd: /home/pmdtest/objdir/x86_64-unknown-linux-gnu/libgomp Running configure in multilib subdir 32 pwd: /home/pmdtest/objdir/x86_64-unknown-linux-gnu configure: loading cache ./config.cache checking for --enable-version-specific-runtime-libs... no checking for --enable-generated-files-in-srcdir... no checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for x86_64-unknown-linux-gnu-gcc... /home/pmdtest/objdir/./gcc/xgcc -B/home/pmdtest/objdir/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -m32 checking for C compiler default output file name... configure: error: in `/home/pmdtest/objdir/x86_64-unknown-linux-gnu/32/libgomp': configure: error: C compiler cannot create executables See `config.log' for more details. make[2]: *** [configure-stage1-target-libgomp] Error 1 make[2]: Leaving directory `/home/pmdtest/objdir' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/pmdtest/objdir' make: *** [all] Error 2 On Fri, Feb 1, 2013 at 12:18 PM, Syed Ahsan Ali Bokhari <ahsan.pmd@xxxxxxxxx> wrote: > 32 bit libraries are required because I want to install some > application which do not build if 32 bit gfortran libraries are not > present. > > On Fri, Feb 1, 2013 at 12:13 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote: >> On Thu, Jan 31, 2013 at 11:07 PM, Syed Ahsan Ali Bokhari >> <ahsan.pmd@xxxxxxxxx> wrote: >>> The system is RHEL5.3 x86_64 >>> >>> folloing commands were used >>> >>> tar xzf gcc-4.7.2.tar.gz >>> >>> cd gcc-4.7.2 >>> >>> ./contrib/download_prerequisites >>> >>> cd .. >>> >>> mkdir objdir >>> >>> cd objdir >>> >>> $PWD/../gcc-4.7.2/configure >>> >>> What is the package name for 32 bit c library. >>> I cannot disable multilib becase shared libraries support is required >> >> Multilib and shared libraries are two different things. In GCC, >> multilib means building additional libraries for specific compilation >> parameters. In this case, building 32-bit libraries even though you >> have a 64-bit system. The 32-bit libraries are required if you want >> to be able to compile and link with the -m32 option. If you never >> want to use the -m32 option, then you could configure with >> --disable-multilib. >> >> I'm no expert on RHEL, but I think the 32-bit libraries are going to >> be something like glibc-NNNN.i686 and glibc-devel-NNNN.i686. The NNNN >> should be the same as the glibc RPM's you have installed already. >> >> Ian > > > > -- > Engr. Syed Ahsan Ali Bokhari > Electronic Engineer (EE) > Research & Development Division > Pakistan Meteorological Department H-8/2, Islamabad. > Phone # off +92518358714 > Cell # +923155145014 > www.pmd.gov.pk -- Engr. Syed Ahsan Ali Bokhari Electronic Engineer (EE) Research & Development Division Pakistan Meteorological Department H-8/2, Islamabad. Phone # off +92518358714 Cell # +923155145014 www.pmd.gov.pk