public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/21268] New: Bootstrap, configuration problem and insn-conditions.c
@ 2005-04-28 17:44 v dot haisman at sh dot cvut dot cz
  2005-04-28 18:35 ` [Bug bootstrap/21268] " pinskia at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2005-04-28 17:44 UTC (permalink / raw)
  To: gcc-bugs

I report this as follow up to bug 21145 that has been wrongly marked as
duplicate of 19601. The bug I reported is not AWK problem and thus it is not
duplicate of the bug. My problem is caused by wrong includes search paths and
headers with same names. 

I have installed autogen-5.6.4 which installs file /usr/local/include/options.h.
File insn-conditions.c includes flags.h and that includes options.h that
contains extern declarations for all flags. For some to me unknown reason both
FreeBSD port gcc40 and my own builds of GCC 4.0.0 do add -I/usr/local/include to
compiler's command line for insn-conditions.c and that prepends the path to
search path for includes before GCC's include paths which makes the compiler
include wrong options.h from /usr/local/include.

I suspect that the -I/usr/local/include is added because of libiconv that is
installed in in /usr/local prefix. Resulting command is this:

gcc -c   -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
 -Wno-error  -DHAVE_CONFIG_H -DGENERATOR_FILE -I/usr/local/include   -I. -Ibuild
-I../../srcdir/gcc -I../../srcdir/gcc/build -I../../srcdir/gcc/../include
-I../../srcdir/gcc/../libcpp/include -I/usr/local/include  \
 -o build/insn-conditions.o insn-conditions.c

Note the double occurrence of -I/usr/local/include. 

I think this is genuine GCC configuratin scrip bug.


Bootstrap compiler:
wilx@amber2:::~/gcc-head/objdir/gcc> gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.2 [FreeBSD] 20040728

Configurations flags:
../srcdir/configure --disable-nls --enable-version-specific-runtime-libs
--enable-dwarf2 --with-cpu=athlon-tbird --with-arch=athlon-tbird
--with-system-zlib --disable-shared --enable-languages=c,c++,objc
--disable-sjlj-exceptions --enable-shared=libstdc++ --enable-shared=libobjc
--program-suffix=-4.0 --enable-objc-gc

-- 
           Summary: Bootstrap, configuration problem and insn-conditions.c
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: v dot haisman at sh dot cvut dot cz
                CC: gcc-bugs at gcc dot gnu dot org,v dot haisman at sh dot
                    cvut dot cz
 GCC build triplet: i386-unknown-freebsd5.4
  GCC host triplet: i386-unknown-freebsd5.4
GCC target triplet: i386-unknown-freebsd5.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/21268] Bootstrap, configuration problem and insn-conditions.c
  2005-04-28 17:44 [Bug bootstrap/21268] New: Bootstrap, configuration problem and insn-conditions.c v dot haisman at sh dot cvut dot cz
@ 2005-04-28 18:35 ` pinskia at gcc dot gnu dot org
  2005-04-28 21:45 ` [Bug bootstrap/21268] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-28 18:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-28 18:34 -------
Hmm, seems like autogen should not be calling its headers options.h, oh well.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/21268] [4.0/4.1 Regression] Bootstrap, configuration problem and insn-conditions.c
  2005-04-28 17:44 [Bug bootstrap/21268] New: Bootstrap, configuration problem and insn-conditions.c v dot haisman at sh dot cvut dot cz
  2005-04-28 18:35 ` [Bug bootstrap/21268] " pinskia at gcc dot gnu dot org
@ 2005-04-28 21:45 ` pinskia at gcc dot gnu dot org
  2005-04-28 21:48 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-28 21:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-28 21:45 -------
Oh, the -I/usr/local/include is there twice, why?
Can you attach the Makefile and config.log and config.status?

There is a work around for this bug, is first compile FSF's GCC before 4.0.0 and then recompile GCC as 
the FSF's GCC all already include /usr/local/include as part of the include paths.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|critical                    |normal
             Status|UNCONFIRMED                 |WAITING
           Keywords|                            |build
            Summary|Bootstrap, configuration    |[4.0/4.1 Regression]
                   |problem and insn-           |Bootstrap, configuration
                   |conditions.c                |problem and insn-
                   |                            |conditions.c


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/21268] [4.0/4.1 Regression] Bootstrap, configuration problem and insn-conditions.c
  2005-04-28 17:44 [Bug bootstrap/21268] New: Bootstrap, configuration problem and insn-conditions.c v dot haisman at sh dot cvut dot cz
  2005-04-28 18:35 ` [Bug bootstrap/21268] " pinskia at gcc dot gnu dot org
  2005-04-28 21:45 ` [Bug bootstrap/21268] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-04-28 21:48 ` pinskia at gcc dot gnu dot org
  2005-05-02 13:52 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-28 21:48 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/21268] [4.0/4.1 Regression] Bootstrap, configuration problem and insn-conditions.c
  2005-04-28 17:44 [Bug bootstrap/21268] New: Bootstrap, configuration problem and insn-conditions.c v dot haisman at sh dot cvut dot cz
                   ` (2 preceding siblings ...)
  2005-04-28 21:48 ` pinskia at gcc dot gnu dot org
@ 2005-05-02 13:52 ` pinskia at gcc dot gnu dot org
  2005-05-02 15:31 ` v dot haisman at sh dot cvut dot cz
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-02 13:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-02 13:52 -------
CPPFLAGS='-I/usr/local/include'


Do you have CPPFLAGS set if so this is your bug and not GCC's configure bug.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/21268] [4.0/4.1 Regression] Bootstrap, configuration problem and insn-conditions.c
  2005-04-28 17:44 [Bug bootstrap/21268] New: Bootstrap, configuration problem and insn-conditions.c v dot haisman at sh dot cvut dot cz
                   ` (3 preceding siblings ...)
  2005-05-02 13:52 ` pinskia at gcc dot gnu dot org
@ 2005-05-02 15:31 ` v dot haisman at sh dot cvut dot cz
  2005-05-02 15:52 ` v dot haisman at sh dot cvut dot cz
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2005-05-02 15:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From v dot haisman at sh dot cvut dot cz  2005-05-02 15:30 -------
Subject: Re:  [4.0/4.1 Regression] Bootstrap, configuration
 problem and insn-conditions.c


Nope, my environment is clean wrt/ compiler flags.


On Mon, 2 May 2005, pinskia at gcc dot gnu dot org wrote:

>
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-02 13:52 -------
> CPPFLAGS='-I/usr/local/include'
>
>
> Do you have CPPFLAGS set if so this is your bug and not GCC's configure bug.
>
> --
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
> You are on the CC list for the bug, or are watching someone who is.
>


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/21268] [4.0/4.1 Regression] Bootstrap, configuration problem and insn-conditions.c
  2005-04-28 17:44 [Bug bootstrap/21268] New: Bootstrap, configuration problem and insn-conditions.c v dot haisman at sh dot cvut dot cz
                   ` (4 preceding siblings ...)
  2005-05-02 15:31 ` v dot haisman at sh dot cvut dot cz
@ 2005-05-02 15:52 ` v dot haisman at sh dot cvut dot cz
  2005-06-15 15:32 ` v dot haisman at sh dot cvut dot cz
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2005-05-02 15:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From v dot haisman at sh dot cvut dot cz  2005-05-02 15:52 -------
Subject: Re:  [4.0/4.1 Regression] Bootstrap, configuration
 problem and insn-conditions.c


That I don't have it set imho can be seen from config.log:

ac_cv_env_CPPFLAGS_set=


On Mon, 2 May 2005, pinskia at gcc dot gnu dot org wrote:

>
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-02 13:52 -------
> CPPFLAGS='-I/usr/local/include'
>
>
> Do you have CPPFLAGS set if so this is your bug and not GCC's configure bug.
>
> --
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
> You are on the CC list for the bug, or are watching someone who is.
>


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/21268] [4.0/4.1 Regression] Bootstrap, configuration problem and insn-conditions.c
  2005-04-28 17:44 [Bug bootstrap/21268] New: Bootstrap, configuration problem and insn-conditions.c v dot haisman at sh dot cvut dot cz
                   ` (5 preceding siblings ...)
  2005-05-02 15:52 ` v dot haisman at sh dot cvut dot cz
@ 2005-06-15 15:32 ` v dot haisman at sh dot cvut dot cz
  2005-06-28 20:01 ` markus at trippelsdorf dot de
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2005-06-15 15:32 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|                            |1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/21268] [4.0/4.1 Regression] Bootstrap, configuration problem and insn-conditions.c
  2005-04-28 17:44 [Bug bootstrap/21268] New: Bootstrap, configuration problem and insn-conditions.c v dot haisman at sh dot cvut dot cz
                   ` (6 preceding siblings ...)
  2005-06-15 15:32 ` v dot haisman at sh dot cvut dot cz
@ 2005-06-28 20:01 ` markus at trippelsdorf dot de
  2005-07-08  1:42 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: markus at trippelsdorf dot de @ 2005-06-28 20:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From markus at trippelsdorf dot de  2005-06-28 20:01 -------
I can confirm this issue. Running :
mv /usr/local/include/options.h /usr/local/include/options.h_
before building gcc40 solves the problem...

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/21268] [4.0/4.1 Regression] Bootstrap, configuration problem and insn-conditions.c
  2005-04-28 17:44 [Bug bootstrap/21268] New: Bootstrap, configuration problem and insn-conditions.c v dot haisman at sh dot cvut dot cz
                   ` (7 preceding siblings ...)
  2005-06-28 20:01 ` markus at trippelsdorf dot de
@ 2005-07-08  1:42 ` mmitchel at gcc dot gnu dot org
  2005-08-18  9:45 ` bonzini at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-08  1:42 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.1                       |4.0.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/21268] [4.0/4.1 Regression] Bootstrap, configuration problem and insn-conditions.c
  2005-04-28 17:44 [Bug bootstrap/21268] New: Bootstrap, configuration problem and insn-conditions.c v dot haisman at sh dot cvut dot cz
                   ` (8 preceding siblings ...)
  2005-07-08  1:42 ` mmitchel at gcc dot gnu dot org
@ 2005-08-18  9:45 ` bonzini at gcc dot gnu dot org
  2005-08-22 11:47 ` v dot haisman at sh dot cvut dot cz
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2005-08-18  9:45 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |bonzini at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-18 09:24:16
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/21268] [4.0/4.1 Regression] Bootstrap, configuration problem and insn-conditions.c
  2005-04-28 17:44 [Bug bootstrap/21268] New: Bootstrap, configuration problem and insn-conditions.c v dot haisman at sh dot cvut dot cz
                   ` (9 preceding siblings ...)
  2005-08-18  9:45 ` bonzini at gcc dot gnu dot org
@ 2005-08-22 11:47 ` v dot haisman at sh dot cvut dot cz
  2005-08-29 13:54 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2005-08-22 11:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From v dot haisman at sh dot cvut dot cz  2005-08-22 11:21 -------
I have tried it and successfully bootstrapped the compiler with. It works, thanks.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/21268] [4.0/4.1 Regression] Bootstrap, configuration problem and insn-conditions.c
  2005-04-28 17:44 [Bug bootstrap/21268] New: Bootstrap, configuration problem and insn-conditions.c v dot haisman at sh dot cvut dot cz
                   ` (10 preceding siblings ...)
  2005-08-22 11:47 ` v dot haisman at sh dot cvut dot cz
@ 2005-08-29 13:54 ` cvs-commit at gcc dot gnu dot org
  2005-08-29 14:52 ` cvs-commit at gcc dot gnu dot org
  2005-08-29 14:58 ` bonzini at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-29 13:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-29 13:52 -------
Subject: Bug 21268

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bonzini@gcc.gnu.org	2005-08-29 13:52:38

Modified files:
	gcc            : ChangeLog Makefile.in 

Log message:
	2005-08-18  Paolo Bonzini  <bonzini@gnu.org>
	
	PR bootstrap/21268
	* Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
	beginning.  Remove $(INCLUDES) from all the rules, if following
	$(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9848&r2=2.9849
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/Makefile.in.diff?cvsroot=gcc&r1=1.1536&r2=1.1537



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/21268] [4.0/4.1 Regression] Bootstrap, configuration problem and insn-conditions.c
  2005-04-28 17:44 [Bug bootstrap/21268] New: Bootstrap, configuration problem and insn-conditions.c v dot haisman at sh dot cvut dot cz
                   ` (11 preceding siblings ...)
  2005-08-29 13:54 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-29 14:52 ` cvs-commit at gcc dot gnu dot org
  2005-08-29 14:58 ` bonzini at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-29 14:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-29 14:05 -------
Subject: Bug 21268

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	bonzini@gcc.gnu.org	2005-08-29 14:04:18

Modified files:
	gcc            : ChangeLog Makefile.in 

Log message:
	2005-08-29  Paolo Bonzini  <bonzini@gnu.org>
	
	PR bootstrap/21268
	* Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
	beginning.  Remove $(INCLUDES) from all the rules, if following
	$(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.399&r2=2.7592.2.400
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/Makefile.in.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.1447.2.3&r2=1.1447.2.4



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/21268] [4.0/4.1 Regression] Bootstrap, configuration problem and insn-conditions.c
  2005-04-28 17:44 [Bug bootstrap/21268] New: Bootstrap, configuration problem and insn-conditions.c v dot haisman at sh dot cvut dot cz
                   ` (12 preceding siblings ...)
  2005-08-29 14:52 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-29 14:58 ` bonzini at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2005-08-29 14:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bonzini at gcc dot gnu dot org  2005-08-29 14:36 -------
Patch applied.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21268


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2005-08-29 14:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-28 17:44 [Bug bootstrap/21268] New: Bootstrap, configuration problem and insn-conditions.c v dot haisman at sh dot cvut dot cz
2005-04-28 18:35 ` [Bug bootstrap/21268] " pinskia at gcc dot gnu dot org
2005-04-28 21:45 ` [Bug bootstrap/21268] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-04-28 21:48 ` pinskia at gcc dot gnu dot org
2005-05-02 13:52 ` pinskia at gcc dot gnu dot org
2005-05-02 15:31 ` v dot haisman at sh dot cvut dot cz
2005-05-02 15:52 ` v dot haisman at sh dot cvut dot cz
2005-06-15 15:32 ` v dot haisman at sh dot cvut dot cz
2005-06-28 20:01 ` markus at trippelsdorf dot de
2005-07-08  1:42 ` mmitchel at gcc dot gnu dot org
2005-08-18  9:45 ` bonzini at gcc dot gnu dot org
2005-08-22 11:47 ` v dot haisman at sh dot cvut dot cz
2005-08-29 13:54 ` cvs-commit at gcc dot gnu dot org
2005-08-29 14:52 ` cvs-commit at gcc dot gnu dot org
2005-08-29 14:58 ` bonzini at gcc dot gnu dot org

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).