From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Gaebx-00064V-BB for garchives@archives.gentoo.org; Thu, 19 Oct 2006 20:35:29 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9JKXeQt012265; Thu, 19 Oct 2006 20:33:40 GMT Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9JKXeFM031469 for ; Thu, 19 Oct 2006 20:33:40 GMT Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gaea5-0004oP-BL for gentoo-amd64@lists.gentoo.org; Thu, 19 Oct 2006 22:33:33 +0200 Received: from ip68-230-97-209.ph.ph.cox.net ([68.230.97.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Oct 2006 22:33:33 +0200 Received: from 1i5t5.duncan by ip68-230-97-209.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Oct 2006 22:33:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-amd64@lists.gentoo.org From: "Duncan" <1i5t5.duncan@cox.net> Subject: [gentoo-amd64] Re: -fPIC - Toolchain broken? Date: Thu, 19 Oct 2006 20:33:26 +0000 (UTC) Message-ID: References: <45364363.3010601@getdesigned.at> <45374B67.6010901@getdesigned.at> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ip68-230-97-209.ph.ph.cox.net User-Agent: pan 0.117 (Old Rip Van Winkle) Sender: news X-Archives-Salt: 4e4e1ce8-76ca-4371-af84-d2c1067f1670 X-Archives-Hash: 2a77bf7bc838fc5db782cd6a459d4c58 Sebastian Redl posted 45374B67.6010901@getdesigned.at, excerpted below, on Thu, 19 Oct 2006 11:54:47 +0200: > Duncan wrote: >> So... anytime I see this error, the first thing I try is flipping some >> CFLAGS on and off, and see if there's a reasonable combination that >> works. >> Only if that fails do I try -fPIC and bug it as necessary. >> > But wouldn't that apply only to errors that occur during the configuration > step? Or have you observed a situation where a compilation change > triggered by a failing non-essential test caused an error later? Yes. Case in point is the very -fPIC we are discussing. If the configure tests -fPIC and due to a warning decides it can't be used, it doesn't simply abort, but continues the process thru the rest of the config and into the compile and linking. Only later in the linking, and gets an error similar to that of this thread because shared objects require -fPIC on this platform, does it realize things went wrong. Then the error it spits out says to compile with -fPIC, when that's what it would have been doing if the config hadn't misinterpreted an unrelated warning on the -fPIC test as an indication that it shouldn't be used. (The other half of your post addressed in the other subthread.) -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman -- gentoo-amd64@gentoo.org mailing list