public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: bootstrap/8180: --without-headers configure option not working
@ 2003-05-14 10:53 giovannibajo
0 siblings, 0 replies; 3+ messages in thread
From: giovannibajo @ 2003-05-14 10:53 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, pgarrone
Synopsis: --without-headers configure option not working
State-Changed-From-To: open->feedback
State-Changed-By: bajo
State-Changed-When: Wed May 14 10:51:16 2003
State-Changed-Why:
See Dara's question.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8180
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: bootstrap/8180: --without-headers configure option not working
@ 2003-05-14 9:36 Dara Hazeghi
0 siblings, 0 replies; 3+ messages in thread
From: Dara Hazeghi @ 2003-05-14 9:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR bootstrap/8180; it has been noted by GNATS.
From: Dara Hazeghi <dhazeghi@yahoo.com>
To: pgarrone@linuxmail.org, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: bootstrap/8180: --without-headers configure option not working
Date: Wed, 14 May 2003 02:35:56 -0700
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-
trail&database=gcc&pr=8180
Hello,
would it be possible for the submitter to check and see whether this
problem still occurs on gcc 3.3? Thanks,
Dara
^ permalink raw reply [flat|nested] 3+ messages in thread
* bootstrap/8180: --without-headers configure option not working
@ 2002-10-09 17:16 pgarrone
0 siblings, 0 replies; 3+ messages in thread
From: pgarrone @ 2002-10-09 17:16 UTC (permalink / raw)
To: gcc-gnats
>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:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-05-14 10:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-14 10:53 bootstrap/8180: --without-headers configure option not working giovannibajo
-- strict thread matches above, loose matches on Subject: below --
2003-05-14 9:36 Dara Hazeghi
2002-10-09 17:16 pgarrone
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).