From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1021 invoked by alias); 10 Aug 2008 21:39:59 -0000 Received: (qmail 1013 invoked by uid 22791); 10 Aug 2008 21:39:59 -0000 X-Spam-Check-By: sourceware.org Received: from mh6.mail.rice.edu (HELO mh6.mail.rice.edu) (128.42.201.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 10 Aug 2008 21:39:10 +0000 Received: from mh6.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh6.mail.rice.edu (Postfix) with ESMTP id 878B72548AE for ; Sun, 10 Aug 2008 16:39:07 -0500 (CDT) Received: from mh6.mail.rice.edu ([127.0.0.1]) by mh6.mail.rice.edu (mh6.mail.rice.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1iITMqS66+0b for ; Sun, 10 Aug 2008 16:39:07 -0500 (CDT) Received: from [192.168.1.100] (c-98-201-148-153.hsd1.tx.comcast.net [98.201.148.153]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mh6.mail.rice.edu (Postfix) with ESMTPSA id 3D99725485B for ; Sun, 10 Aug 2008 16:39:07 -0500 (CDT) Message-Id: <3919B243-570D-429D-922A-B96190919DBA@rice.edu> From: Rajkishore Barik To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: gcc 4.1.2 32-bit compilation problem Date: Sun, 10 Aug 2008 22:11:00 -0000 X-Mailer: Apple Mail (2.926) Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00098.txt.bz2 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