public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Yuan, Sai (NSN - CN/Cheng Du)" <sai.yuan@nsn.com>
To: <gcc-help@gcc.gnu.org>
Subject: How to install 32 bit gcc on 64 bit RHEL5.1
Date: Tue, 12 Aug 2008 09:00:00 -0000	[thread overview]
Message-ID: <174CED94DD8DC54AB888B56E103B11870ABDB0@CNBEEXC007.nsn-intra.net> (raw)

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


 


             reply	other threads:[~2008-08-12  8:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-12  9:00 Yuan, Sai (NSN - CN/Cheng Du) [this message]
2008-08-12  9:07 ` Andrew Haley
2008-08-12  9:38   ` Yuan, Sai (NSN - CN/Cheng Du)
2008-08-12 12:01     ` Andrew Haley
2008-08-12 13:12       ` Vardhan, Sundara (GE Infra, Energy)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=174CED94DD8DC54AB888B56E103B11870ABDB0@CNBEEXC007.nsn-intra.net \
    --to=sai.yuan@nsn.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).