public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc 4.1.2 32-bit compilation problem
@ 2008-08-10 22:11 Rajkishore Barik
  2008-08-11  0:47 ` Brian Dessent
  0 siblings, 1 reply; 2+ messages in thread
From: Rajkishore Barik @ 2008-08-10 22:11 UTC (permalink / raw)
  To: gcc-help

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcc 4.1.2 32-bit compilation problem
  2008-08-10 22:11 gcc 4.1.2 32-bit compilation problem Rajkishore Barik
@ 2008-08-11  0:47 ` Brian Dessent
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Dessent @ 2008-08-11  0:47 UTC (permalink / raw)
  To: Rajkishore Barik; +Cc: gcc-help

Rajkishore Barik wrote:

> /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or
> directory

This error means you haven't installed the 32 bit libc development
package.  It's not a gcc issue, you need to install the correct package
from your distro.  The name varies from distro to distro, but with
Debian for example it's named something like "libc6-dev-i386".

Brian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-10 22:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-10 22:11 gcc 4.1.2 32-bit compilation problem Rajkishore Barik
2008-08-11  0:47 ` Brian Dessent

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).