From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12469 invoked by alias); 18 Feb 2011 06:36:44 -0000 Received: (qmail 12458 invoked by uid 22791); 18 Feb 2011 06:36:42 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from wmh1.mail.saunalahti.fi (HELO wmh1.mail.saunalahti.fi) (62.142.5.133) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 18 Feb 2011 06:36:36 +0000 Received: from [192.168.1.5] (dsl-olubrasgw1-fe19f900-7.dhcp.inet.fi [84.249.25.7]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: kai.ruottu@wippies.com) by wmh1.mail.saunalahti.fi (Postfix) with ESMTPSA id C8ED71FC065; Fri, 18 Feb 2011 08:36:30 +0200 (EET) Message-ID: <4D5E136B.6070204@wippies.com> Date: Fri, 18 Feb 2011 07:11:00 -0000 From: Kai Ruottu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fi; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: percepticon@gmail.com CC: gcc-help@gcc.gnu.org Subject: Re: Newbie new to the list References: <1553042347-1297994605-cardhu_decombobulator_blackberry.rim.net-499915399-@bda198.bisx.prod.on.blackberry> In-Reply-To: <1553042347-1297994605-cardhu_decombobulator_blackberry.rim.net-499915399-@bda198.bisx.prod.on.blackberry> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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: 2011-02/txt/msg00273.txt.bz2 18.2.2011 4:03, [p e r c e p t i c o n] kirjoitti: > I have this error: > > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crt1.o: In function `_start > > In my case I'm trying to build a 32bit shared object. I have -shared and -fPIC > set even -m32 > > Can someone share with me how to tell gcc to use my lib32 directory instead of lib64 > which it seems to default to? The 32-bit startups (like 'crt1.o'), libraries and headers aren't usually installed as default with the "program tools", one must install these specifically. This happens with "System/Administration" and there "Add/remove applications" or something in the GUI of an uptodate Red Hat system...