From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3722 invoked by alias); 10 Oct 2002 00:16:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 3685 invoked by uid 71); 10 Oct 2002 00:16:02 -0000 Resent-Date: 10 Oct 2002 00:16:01 -0000 Resent-Message-ID: <20021010001601.3680.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, pgarrone@linuxmail.org Received: (qmail 2939 invoked by uid 61); 10 Oct 2002 00:14:04 -0000 Message-Id: <20021010001404.2938.qmail@sources.redhat.com> Date: Wed, 09 Oct 2002 17:16:00 -0000 From: pgarrone@linuxmail.org Reply-To: pgarrone@linuxmail.org To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: bootstrap/8180: --without-headers configure option not working X-SW-Source: 2002-10/txt/msg00350.txt.bz2 List-Id: >Number: 8180 >Category: bootstrap >Synopsis: --without-headers configure option not working >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Oct 09 17:16:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: pgarrone@linuxmail.org >Release: gcc-3.2 >Organization: >Environment: building an sh4 xcompiler on a mandrake linux intel system >Description: The file gcc/configure does not set inhibit_libc if --without-headers is set, as this translates to --with-headers=no. So the bootstrap fails in compilation. This is my own personal patch, which I urge you to study closely. >How-To-Repeat: host=i686-pc-linux-gnu build=$host target=sh-linux-gnu ../../gcc/configure \ --target=$target \ --prefix=$prefix \ --host=$host \ --build=$build \ -v \ --without-headers \ --enable-languages=c \ --with-cpu=sh4 \ --disable-threads make all install >Fix: diff -r -C 5 gcc-3.2.orig/gcc/configure gcc-3.2/gcc/configure *** gcc-3.2.orig/gcc/configure Sat Jun 29 10:20:11 2002 --- gcc-3.2/gcc/configure Thu Oct 10 09:08:54 2002 *************** *** 6787,6803 **** # inhibit_libc # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS. # This prevents libgcc2 from containing any code which requires libc # support. ! inhibit_libc= ! if test x$host != x$target && test x$with_headers = x; then ! inhibit_libc=-Dinhibit_libc ! else ! if test x$with_newlib = xyes; then ! inhibit_libc=-Dinhibit_libc ! fi fi # When building gcc with a cross-compiler, we need to adjust things so # that the generator programs are still built with the native compiler. --- 6787,6807 ---- # inhibit_libc # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS. # This prevents libgcc2 from containing any code which requires libc # support. ! ! # If --without-headers was an option, then define inhibit_libc. ! # But if inhibit_libc is previously defined, leave it. ! if test x${inhibit_libc} = x ! then ! if ( ( test x$host != x$target && test x$with_headers = x) \ ! || ( test x${with_headers} = xno ) \ ! || ( test x$with_newlib = xyes ) \ ! ); then ! inhibit_libc=-Dinhibit_libc ! fi fi # When building gcc with a cross-compiler, we need to adjust things so # that the generator programs are still built with the native compiler. >Release-Note: >Audit-Trail: >Unformatted: