How to install 32 bit gcc on 64 bit RHEL5.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

I am suffering from this issue for a long time. Could you please give me any good idea?

When I tried to install a 32bit gcc on 64 bit Linux, I got this error:

[root@aries gcc-4.1.2]#./configure --prefix=/opt/gcc/linux/gcc-4.1.2 --host=x86_64-redhat-linux --cache-file=/dev/null --target=i386-redhat-linux

...

[root@aries gcc-4.1.2]# make

...

rm -f mm_malloc.h
cat ../.././gcc/config/i386/pmm_malloc.h > mm_malloc.h
if [ -f `echo /opt/gcc/linux/gcc-4.1.2/lib/gcc/i386-redhat-linux/4.1.2/../../../../i386-redhat-linux/sys-include | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta`/limits.h ] ; then \
          cat ../.././gcc/limitx.h ../.././gcc/glimits.h ../.././gcc/limity.h > tmp-xlimits.h; \
        else \
          cat ../.././gcc/glimits.h > tmp-xlimits.h; \
        fi
mv tmp-xlimits.h xlimits.h
if [ -d include ] ; then true; else mkdir include; chmod a+rx include; fi
for file in .. ../.././gcc/ginclude/float.h ../.././gcc/ginclude/iso646.h ../.././gcc/ginclude/stdarg.h ../.././gcc/ginclude/stdbool.h ../.././gcc/ginclude/stddef.h ../.././gcc/ginclude/varargs.h ../.././gcc/config/i386/mmintrin.h ../.././gcc/config/i386/mm3dnow.h ../.././gcc/config/i386/xmmintrin.h ../.././gcc/config/i386/emmintrin.h ../.././gcc/config/i386/pmmintrin.h mm_malloc.h; do \
          if [ X$file != X.. ]; then \
            realfile=`echo $file | sed -e 's|.*/\([^/]*\)$|\1|'`; \
            echo timestamp > include/$realfile; \
            rm -f include/$realfile; \
            cp $file include; \
            chmod a+r include/$realfile; \
          fi; \
        done
rm -f include/limits.h
cp xlimits.h include/limits.h
cp ../.././gcc/unwind-generic.h include/unwind.h
chmod a+r include/limits.h
rm -f include/README
cp ../.././gcc/../fixincludes/README-fixinc include/README
chmod a+r include/README
echo timestamp > stmp-int-hdrs
make[2]: *** No rule to make target `/opt/gcc/linux/gcc-4.1.2/bin/i386-redhat-linux-as', needed by `stamp-as'.  Stop.
make[2]: Leaving directory `/tmp/gcc-4.1.2/host-x86_64-redhat-linux/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/tmp/gcc-4.1.2'
make: *** [all] Error 2
[root@aries gcc-4.1.2]#



It caused me to doubt whether it can install 32 bit gcc on 64 bit Linux. Btw, the version i want to install is 32bit gcc 4.1.2.
Could you please help me?

Thanks in advance!
Sai


 




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux