public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/23131] New: Fixincludes on cross-build is scanning /usr/include
@ 2005-07-29 11:25 rearnsha at gcc dot gnu dot org
  2005-07-29 11:39 ` [Bug bootstrap/23131] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2005-07-29 11:25 UTC (permalink / raw)
  To: gcc-bugs

A cross-compiler configured with (for example)

.../configure --target=arm-elf --with-headers=.../newlib/libc/include --with-newlib

No-longer builds on some host systems because fixincludes is now scanning
/usr/include rather than the headers specified.

I suspect this is related to the sysroot change.

Here's the relevant bit of the boot log:

(TARGET_MACHINE='arm-unknown-elf'; srcdir=`cd /home/rearnsha/gnusrc/egcs-cross/g
cc; ${PWDCMD-pwd}`; \
  SHELL='/bin/sh'; MACRO_LIST=`${PWDCMD-pwd}`/macro_list ; \
  export TARGET_MACHINE srcdir SHELL MACRO_LIST && \
  cd ../build-i686-pc-linux-gnu/fixincludes && \
  /bin/sh ./fixinc.sh ../../gcc/include \
      )
Fixing headers into /work/rearnsha/gnu/egcs/gcc/include for arm-unknown-elf targ
et
No forbidden identifiers defined by this target
Finding directories and links to directories
 Searching /usr/include/.
 Searching /usr/include/./DPS
 Searching /usr/include/./X11
 Searching /usr/include/./libpng

-- 
           Summary: Fixincludes on cross-build is scanning /usr/include
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: critical
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rearnsha at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,mark at codesourcery dot
                    com
  GCC host triplet: i386-netbsdelf2.0
GCC target triplet: arm-eabi arm-elf


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


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

* [Bug bootstrap/23131] [4.1 Regression] Fixincludes on cross-build is scanning /usr/include
  2005-07-29 11:25 [Bug bootstrap/23131] New: Fixincludes on cross-build is scanning /usr/include rearnsha at gcc dot gnu dot org
@ 2005-07-29 11:39 ` pinskia at gcc dot gnu dot org
  2005-07-29 14:53 ` mmitchel at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-29 11:39 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Fixincludes on cross-build  |[4.1 Regression] Fixincludes
                   |is scanning /usr/include    |on cross-build is scanning
                   |                            |/usr/include
   Target Milestone|---                         |4.1.0


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


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

* [Bug bootstrap/23131] [4.1 Regression] Fixincludes on cross-build is scanning /usr/include
  2005-07-29 11:25 [Bug bootstrap/23131] New: Fixincludes on cross-build is scanning /usr/include rearnsha at gcc dot gnu dot org
  2005-07-29 11:39 ` [Bug bootstrap/23131] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-07-29 14:53 ` mmitchel at gcc dot gnu dot org
  2005-07-29 14:54 ` rearnsha at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-29 14:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-07-29 14:45 -------
Since you're not using --with-sysroot or --with-build-sysroot, I'm slightly
surprised.

What is SYSTEM_HEADER_DIR in your generated gcc/Makefile?  Is it
$(CROSS_SYSTEM_HEADER_DIR), $(NATIVE_SYSTEM_HEADER_DIR), or something worse?

I think I see a bug with *native* compilers that use --with-sysroot, but you're
in a cross configuration.  Of course, I'll try it myself and see momentarily.

Thanks!

-- 


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


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

* [Bug bootstrap/23131] [4.1 Regression] Fixincludes on cross-build is scanning /usr/include
  2005-07-29 11:25 [Bug bootstrap/23131] New: Fixincludes on cross-build is scanning /usr/include rearnsha at gcc dot gnu dot org
  2005-07-29 11:39 ` [Bug bootstrap/23131] [4.1 Regression] " pinskia at gcc dot gnu dot org
  2005-07-29 14:53 ` mmitchel at gcc dot gnu dot org
@ 2005-07-29 14:54 ` rearnsha at gcc dot gnu dot org
  2005-07-29 14:59 ` mmitchel at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2005-07-29 14:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rearnsha at gcc dot gnu dot org  2005-07-29 14:53 -------
Subject: Re:  [4.1 Regression] Fixincludes on
	cross-build is scanning /usr/include

On Fri, 2005-07-29 at 15:45, mmitchel at gcc dot gnu dot org wrote:
> What is SYSTEM_HEADER_DIR in your generated gcc/Makefile?  Is it
> $(CROSS_SYSTEM_HEADER_DIR), $(NATIVE_SYSTEM_HEADER_DIR), or something worse?

# Default native SYSTEM_HEADER_DIR, to be overridden by targets.
NATIVE_SYSTEM_HEADER_DIR = /usr/include
# Default cross SYSTEM_HEADER_DIR, to be overridden by targets.
CROSS_SYSTEM_HEADER_DIR = $(gcc_tooldir)/sys-include

# autoconf sets SYSTEM_HEADER_DIR to one of the above.
SYSTEM_HEADER_DIR = 

Ie. it's empty.


-- 


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


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

* [Bug bootstrap/23131] [4.1 Regression] Fixincludes on cross-build is scanning /usr/include
  2005-07-29 11:25 [Bug bootstrap/23131] New: Fixincludes on cross-build is scanning /usr/include rearnsha at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-07-29 14:54 ` rearnsha at gcc dot gnu dot org
@ 2005-07-29 14:59 ` mmitchel at gcc dot gnu dot org
  2005-07-29 16:16 ` mmitchel at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-29 14:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-07-29 14:54 -------
I understand what's causing this; patch coming soon.

-- 


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


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

* [Bug bootstrap/23131] [4.1 Regression] Fixincludes on cross-build is scanning /usr/include
  2005-07-29 11:25 [Bug bootstrap/23131] New: Fixincludes on cross-build is scanning /usr/include rearnsha at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-07-29 14:59 ` mmitchel at gcc dot gnu dot org
@ 2005-07-29 16:16 ` mmitchel at gcc dot gnu dot org
  2005-07-29 17:55 ` rearnsha at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-29 16:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-07-29 16:01 -------
Created an attachment (id=9386)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9386&action=view)
Proposed patch

Richard --

I've tested this patch and believe it correct.	I'm running tests in more
configurations now.  I would appreciate if if you could confirm that it fixes
your problem.

Thanks,

-- Mark

-- 


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


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

* [Bug bootstrap/23131] [4.1 Regression] Fixincludes on cross-build is scanning /usr/include
  2005-07-29 11:25 [Bug bootstrap/23131] New: Fixincludes on cross-build is scanning /usr/include rearnsha at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-07-29 16:16 ` mmitchel at gcc dot gnu dot org
@ 2005-07-29 17:55 ` rearnsha at gcc dot gnu dot org
  2005-07-29 18:12 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2005-07-29 17:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rearnsha at gcc dot gnu dot org  2005-07-29 17:33 -------
Yes, that's fixed the problem, thanks.

Builds now complete ok (testing still in progress).

-- 


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


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

* [Bug bootstrap/23131] [4.1 Regression] Fixincludes on cross-build is scanning /usr/include
  2005-07-29 11:25 [Bug bootstrap/23131] New: Fixincludes on cross-build is scanning /usr/include rearnsha at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-07-29 17:55 ` rearnsha at gcc dot gnu dot org
@ 2005-07-29 18:12 ` pinskia at gcc dot gnu dot org
  2005-07-29 19:24 ` cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-29 18:12 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-29 17:55:29
               date|                            |


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


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

* [Bug bootstrap/23131] [4.1 Regression] Fixincludes on cross-build is scanning /usr/include
  2005-07-29 11:25 [Bug bootstrap/23131] New: Fixincludes on cross-build is scanning /usr/include rearnsha at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-07-29 18:12 ` pinskia at gcc dot gnu dot org
@ 2005-07-29 19:24 ` cvs-commit at gcc dot gnu dot org
  2005-07-29 19:27 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-29 19:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-29 19:20 -------
Subject: Bug 23131

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2005-07-29 19:20:49

Modified files:
	gcc            : ChangeLog configure.ac configure 

Log message:
	PR bootstrap/23131
	* configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
	string.
	* configure: Regenerated.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9604&r2=2.9605
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.ac.diff?cvsroot=gcc&r1=2.124&r2=2.125
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.diff?cvsroot=gcc&r1=1.919&r2=1.920



-- 


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


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

* [Bug bootstrap/23131] [4.1 Regression] Fixincludes on cross-build is scanning /usr/include
  2005-07-29 11:25 [Bug bootstrap/23131] New: Fixincludes on cross-build is scanning /usr/include rearnsha at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-07-29 19:24 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-29 19:27 ` mmitchel at gcc dot gnu dot org
  2005-07-29 19:28 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-29 19:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-07-29 19:24 -------
Fixed in GCC 4.1.

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


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


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

* [Bug bootstrap/23131] [4.1 Regression] Fixincludes on cross-build is scanning /usr/include
  2005-07-29 11:25 [Bug bootstrap/23131] New: Fixincludes on cross-build is scanning /usr/include rearnsha at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2005-07-29 19:27 ` mmitchel at gcc dot gnu dot org
@ 2005-07-29 19:28 ` cvs-commit at gcc dot gnu dot org
  2005-07-29 19:29 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-29 19:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-29 19:27 -------
Subject: Bug 23131

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	csl-3_4_3-linux-branch
Changes by:	mmitchel@gcc.gnu.org	2005-07-29 19:27:12

Modified files:
	gcc            : configure.ac configure 

Log message:
	Backport:
	2005-07-29  Mark Mitchell  <mark@codesourcery.com>
	PR bootstrap/23131
	* configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
	string.
	* configure: Regenerated.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.ac.diff?cvsroot=gcc&only_with_tag=csl-3_4_3-linux-branch&r1=2.19.2.9.2.4&r2=2.19.2.9.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.diff?cvsroot=gcc&only_with_tag=csl-3_4_3-linux-branch&r1=1.767.2.10.2.4&r2=1.767.2.10.2.5



-- 


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


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

* [Bug bootstrap/23131] [4.1 Regression] Fixincludes on cross-build is scanning /usr/include
  2005-07-29 11:25 [Bug bootstrap/23131] New: Fixincludes on cross-build is scanning /usr/include rearnsha at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2005-07-29 19:28 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-29 19:29 ` cvs-commit at gcc dot gnu dot org
  2005-07-29 20:06 ` cvs-commit at gcc dot gnu dot org
  2005-07-30  8:17 ` cvs-commit at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-29 19:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-29 19:28 -------
Subject: Bug 23131

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	csl-3_4_3-linux-branch
Changes by:	mmitchel@gcc.gnu.org	2005-07-29 19:28:31

Modified files:
	.              : ChangeLog.csl 

Log message:
	Backport:
	2005-07-29  Mark Mitchell  <mark@codesourcery.com>
	PR bootstrap/23131
	* configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
	string.
	* configure: Regenerated.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/ChangeLog.csl.diff?cvsroot=gcc&only_with_tag=csl-3_4_3-linux-branch&r1=1.1.6.11&r2=1.1.6.12



-- 


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


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

* [Bug bootstrap/23131] [4.1 Regression] Fixincludes on cross-build is scanning /usr/include
  2005-07-29 11:25 [Bug bootstrap/23131] New: Fixincludes on cross-build is scanning /usr/include rearnsha at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2005-07-29 19:29 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-29 20:06 ` cvs-commit at gcc dot gnu dot org
  2005-07-30  8:17 ` cvs-commit at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-29 20:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-29 19:29 -------
Subject: Bug 23131

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	csl-arm-branch
Changes by:	mmitchel@gcc.gnu.org	2005-07-29 19:29:16

Modified files:
	.              : ChangeLog.csl-arm 
	gcc            : configure.ac configure 

Log message:
	Backport:
	2005-07-29  Mark Mitchell  <mark@codesourcery.com>
	PR bootstrap/23131
	* configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
	string.
	* configure: Regenerated.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/ChangeLog.csl-arm.diff?cvsroot=gcc&only_with_tag=csl-arm-branch&r1=1.1.2.26&r2=1.1.2.27
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.ac.diff?cvsroot=gcc&only_with_tag=csl-arm-branch&r1=2.19.2.13&r2=2.19.2.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.diff?cvsroot=gcc&only_with_tag=csl-arm-branch&r1=1.767.2.14&r2=1.767.2.15



-- 


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


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

* [Bug bootstrap/23131] [4.1 Regression] Fixincludes on cross-build is scanning /usr/include
  2005-07-29 11:25 [Bug bootstrap/23131] New: Fixincludes on cross-build is scanning /usr/include rearnsha at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2005-07-29 20:06 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-30  8:17 ` cvs-commit at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-30  8:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-30 08:07 -------
Subject: Bug 23131

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	csl-gxxpro-3_4-branch
Changes by:	mmitchel@gcc.gnu.org	2005-07-30 08:06:54

Modified files:
	.              : ChangeLog.csl 
	gcc            : configure.ac configure 

Log message:
	PR bootstrap/23131
	* configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
	string.
	* configure: Regenerated.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/ChangeLog.csl.diff?cvsroot=gcc&only_with_tag=csl-gxxpro-3_4-branch&r1=1.1.10.1&r2=1.1.10.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.ac.diff?cvsroot=gcc&only_with_tag=csl-gxxpro-3_4-branch&r1=2.19.2.13&r2=2.19.2.13.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.diff?cvsroot=gcc&only_with_tag=csl-gxxpro-3_4-branch&r1=1.767.2.14&r2=1.767.2.14.2.1



-- 


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


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

end of thread, other threads:[~2005-07-30  8:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-29 11:25 [Bug bootstrap/23131] New: Fixincludes on cross-build is scanning /usr/include rearnsha at gcc dot gnu dot org
2005-07-29 11:39 ` [Bug bootstrap/23131] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-29 14:53 ` mmitchel at gcc dot gnu dot org
2005-07-29 14:54 ` rearnsha at gcc dot gnu dot org
2005-07-29 14:59 ` mmitchel at gcc dot gnu dot org
2005-07-29 16:16 ` mmitchel at gcc dot gnu dot org
2005-07-29 17:55 ` rearnsha at gcc dot gnu dot org
2005-07-29 18:12 ` pinskia at gcc dot gnu dot org
2005-07-29 19:24 ` cvs-commit at gcc dot gnu dot org
2005-07-29 19:27 ` mmitchel at gcc dot gnu dot org
2005-07-29 19:28 ` cvs-commit at gcc dot gnu dot org
2005-07-29 19:29 ` cvs-commit at gcc dot gnu dot org
2005-07-29 20:06 ` cvs-commit at gcc dot gnu dot org
2005-07-30  8:17 ` cvs-commit 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).