From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16683 invoked by alias); 13 Nov 2003 08:17:11 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 16669 invoked from network); 13 Nov 2003 08:17:07 -0000 Received: from unknown (HELO mailgate.Cadence.COM) (158.140.2.1) by sources.redhat.com with SMTP; 13 Nov 2003 08:17:07 -0000 Received: from mail.get2chip.com (mh.get2chip.com [192.168.1.5]) by mailgate.Cadence.COM (8.9.3/8.9.3) with ESMTP id AAA20230 for ; Thu, 13 Nov 2003 00:17:06 -0800 (PST) Received: from citrix1 ([192.168.1.92]) by mail.get2chip.com (8.11.6/8.11.6) with ESMTP id hAD8H6L09797 for ; Thu, 13 Nov 2003 00:17:06 -0800 Subject: gcc -with-sysroot From: Chris Croswhite Reply-To: csc@cadence.com To: gcc-help@gcc.gnu.org Content-Type: text/plain Organization: RC - Cadence Design Systems Message-Id: <1068711337.29386.488.camel@chrisc.laptop> Mime-Version: 1.0 Date: Thu, 13 Nov 2003 08:17:00 -0000 Content-Transfer-Encoding: 7bit X-Received: By mailgate.Cadence.COM as AAA20230 at Thu Nov 13 00:17:06 2003 X-SW-Source: 2003-11/txt/msg00185.txt.bz2 Okay, so I am really stuck here with configuring gcc to use a particular glibc. I have tried to use "-with-sysroot=/blah", but still libstdc++ ends up with symbols for glibc-2.3.2 (I am targeting glibc-2.2.4) which is wrong for my needs. I have even now tried the "--with-headers=/blah --with-libs=/blah" and removing he check for cross compilation, but of course this blows up (yeah, I know, you can not do this). However, it seems to me that this is what I would like, a self contained gcc that links with the sysroot which has the correct glibc (2.2.4). I nm'ed the resulting libstdc++ file created once built and found several symbols for "@GLIBC_2.3". Here is the first config: --enable-languages=c,c++ --disable-nls --disable-multilibs --prefix=/opt/RH72-BUILD-PKGS/gcc-323-t5 --with-sysroot=/opt/RH72-BUILD-PKGS/GLIBC-2.2.4-IMAGE Here is the second config: --enable-languages=c,c++ --disable-nls --disable-multilibs --prefix=/opt/RH72-BUILD-PKGS/gcc-323-t5 --with-sysroot=/opt/RH72-BUILD-PKGS/GLIBC-2.2.4-IMAGE --with-headers=/opt/RH72-BUILD-PKGS/GLIBC-2.2.4-IMAGE/include --with-libs=/opt/RH72-BUILD-PKGS/GLIBC-2.2.4-IMAGE/lib Any help from the gcc experts, I would really appreciate! TIA, Chris