public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Rajkishore Barik <rajbarik@rice.edu>
To: gcc-help@gcc.gnu.org
Subject: gcc 4.1.2 32-bit compilation problem
Date: Sun, 10 Aug 2008 22:11:00 -0000	[thread overview]
Message-ID: <3919B243-570D-429D-922A-B96190919DBA@rice.edu> (raw)

Hi,

I am running into a 32-bit compilation problem on a 64-bit architecture.
When I compile  c program for 32-bits using gcc i.e., "gcc -m32", it  
says:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or  
directory

The details of machine and gcc are provided below.
$ uname -a
Linux host 2.6.18-92.1.10.el5 #1 SMP Wed Jul 23 03:56:11 EDT 2008  
x86_64 x86_64 x86_64 GNU/Linux

$ gcc --version
gcc (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There  
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
PURPOSE.

I tried a gcc version of 4.2*, it has the same problem :
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or  
directory
This is because /usr/bin/cc points to gcc.

Can someone help? BTW, I need "gcc -m32" for compiling jikes on x86_64.

Thanks in advance.
--Raj


             reply	other threads:[~2008-08-10 21:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-10 22:11 Rajkishore Barik [this message]
2008-08-11  0:47 ` Brian Dessent

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=3919B243-570D-429D-922A-B96190919DBA@rice.edu \
    --to=rajbarik@rice.edu \
    --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).