public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/12847] New: xxx.c:1:20: stdint.h: No such file or directory
@ 2003-10-30 20:23 danglin at gcc dot gnu dot org
  2003-10-31  0:59 ` [Bug preprocessor/12847] [3.4 Regression] xxx.c:1:20: xxxx.h: " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2003-10-30 20:23 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: xxx.c:1:20: stdint.h: No such file or directory
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: hppa2.0w-hp-hpux11.00
  GCC host triplet: hppa2.0w-hp-hpux11.00
GCC target triplet: hppa2.0w-hp-hpux11.00

# cat xxx.c
#include <stdint.h>
# ./xgcc -B./ -E xxx.c
# 1 "<built-in>"
# 1 "<command line>"
# 1 "xxx.c"
xxx.c:1:20: stdint.h: No such file or directory
# echo $?
0

stdint.h doesn't exist on hppa2.0-hp-hpux11.00.  The message is correct
but the exit value for gcc is wrong.  Adding "-Werror" doesn't affect the
exit value.

This causes configure checks in libiberty and libstdc++-v3 to break.  For
example,

configure:5490: checking for stdint.h
configure:5507: /xxx/gnu/gcc-3.3/objdir/gcc/xgcc -B/xxx/gnu/gcc-3.3/objdir/gcc/ 
-B/opt/gnu/hppa2.0w-hp-hpux11.00/bin/ -B/opt/gnu/hppa2.0w-hp-hpux11.00/lib/ -isy
stem /opt/gnu/hppa2.0w-hp-hpux11.00/include -isystem /opt/gnu/hppa2.0w-hp-hpux11
.00/sys-include -c -O2 -g -O2 -O2 -g -O2 conftest.c >&5
configure:5551:20: stdint.h: No such file or directory
configure:5510: $? = 0
configure:5513: test -s conftest.o
configure:5516: $? = 0
configure:5527: result: yes

The result is numerous regression in the g++ testsuite because stdint.h
gets included by the v3 headers.


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

* [Bug preprocessor/12847] [3.4 Regression] xxx.c:1:20: xxxx.h: No such file or directory
  2003-10-30 20:23 [Bug preprocessor/12847] New: xxx.c:1:20: stdint.h: No such file or directory danglin at gcc dot gnu dot org
@ 2003-10-31  0:59 ` pinskia at gcc dot gnu dot org
  2003-10-31 18:20 ` danglin at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-31  0:59 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|xxx.c:1:20: stdint.h: No    |[3.4 Regression] xxx.c:1:20:
                   |such file or directory      |xxxx.h: No such file or
                   |                            |directory
   Target Milestone|---                         |3.4


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

* [Bug preprocessor/12847] [3.4 Regression] xxx.c:1:20: xxxx.h: No such file or directory
  2003-10-30 20:23 [Bug preprocessor/12847] New: xxx.c:1:20: stdint.h: No such file or directory danglin at gcc dot gnu dot org
  2003-10-31  0:59 ` [Bug preprocessor/12847] [3.4 Regression] xxx.c:1:20: xxxx.h: " pinskia at gcc dot gnu dot org
@ 2003-10-31 18:20 ` danglin at gcc dot gnu dot org
  2003-10-31 18:43 ` danglin at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2003-10-31 18:20 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


danglin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |neil at daikokuya dot co dot
                   |                            |uk, zack at codesourcery dot
                   |                            |com


------- Additional Comments From danglin at gcc dot gnu dot org  2003-10-31 17:45 -------
Problem found:

We have the following includes in cppfiles.c:

#include "config.h"
#include "system.h"
#include "cpplib.h"
#include "cpphash.h"
#include "intl.h"
#include "mkdeps.h"
#include "hashtab.h"
#include <dirent.h>

cpphash.h results in these includes:

# 29 "../../gcc/gcc/cpphash.h"
# 1 "/usr/include/iconv.h" 1 3 4
# 22 "/usr/include/iconv.h" 3 4
# 1 "/usr/include/dl.h" 1 3 4

dl.h defines the following "DL_" macros when using the 32-bit SOM port:

#define DL_OPEN         48
#define DL_CLOSE        52
#define DL_SYM          56
#define DL_ERROR        60

The define for DL_ERROR conflicts with the earlier define in cpplib.h:

/* An error.  */
#define DL_ERROR                0x03

I guess we must be suppressing warnings/errors from system headers, or
there is a problem with detecting redefined macros as I don't see any
warnings compiling cppfiles.c.

I also see the same problem under hpux 11.11, although it doesn't affect
the 64-bit port.


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

* [Bug preprocessor/12847] [3.4 Regression] xxx.c:1:20: xxxx.h: No such file or directory
  2003-10-30 20:23 [Bug preprocessor/12847] New: xxx.c:1:20: stdint.h: No such file or directory danglin at gcc dot gnu dot org
  2003-10-31  0:59 ` [Bug preprocessor/12847] [3.4 Regression] xxx.c:1:20: xxxx.h: " pinskia at gcc dot gnu dot org
  2003-10-31 18:20 ` danglin at gcc dot gnu dot org
@ 2003-10-31 18:43 ` danglin at gcc dot gnu dot org
  2003-10-31 19:22 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2003-10-31 18:43 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From danglin at gcc dot gnu dot org  2003-10-31 18:26 -------
I believe that it was this patch that introduced the regression:

2003-07-04  Zack Weinberg  <zack@codesourcery.com>

        * cpphash.h: Include <iconv.h> if we have it, otherwise
        provide a dummy definition of iconv_t.
        (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
        (_cpp_valid_ucn): Update prototype.
        (_cpp_destroy_iconv): New prototype.


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

* [Bug preprocessor/12847] [3.4 Regression] xxx.c:1:20: xxxx.h: No such file or directory
  2003-10-30 20:23 [Bug preprocessor/12847] New: xxx.c:1:20: stdint.h: No such file or directory danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2003-10-31 18:43 ` danglin at gcc dot gnu dot org
@ 2003-10-31 19:22 ` pinskia at gcc dot gnu dot org
  2003-10-31 19:27 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-31 19:22 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-10-31 18:43:09
               date|                            |


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-31 18:43 -------
I would say submit a patch which changes the name of all the DL_* macros in gcc to fix this 
problem.


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

* [Bug preprocessor/12847] [3.4 Regression] xxx.c:1:20: xxxx.h: No such file or directory
  2003-10-30 20:23 [Bug preprocessor/12847] New: xxx.c:1:20: stdint.h: No such file or directory danglin at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2003-10-31 19:22 ` pinskia at gcc dot gnu dot org
@ 2003-10-31 19:27 ` dave at hiauly1 dot hia dot nrc dot ca
  2003-10-31 22:00 ` zack at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2003-10-31 19:27 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2003-10-31 19:22 -------
Subject: Re:  [3.4 Regression] xxx.c:1:20: xxxx.h: No

> I would say submit a patch which changes the name of all the DL_* macros in
> gcc to fix this 

It looks as if a prefix of "CPP_" would be consist with what has been done
in other places in the file.

Dave


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

* [Bug preprocessor/12847] [3.4 Regression] xxx.c:1:20: xxxx.h: No such file or directory
  2003-10-30 20:23 [Bug preprocessor/12847] New: xxx.c:1:20: stdint.h: No such file or directory danglin at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2003-10-31 19:27 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2003-10-31 22:00 ` zack at gcc dot gnu dot org
  2003-10-31 22:24 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: zack at gcc dot gnu dot org @ 2003-10-31 22:00 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From zack at gcc dot gnu dot org  2003-10-31 21:59 -------
I would prefer it if you could try to use the enumeration defined in diagnostic.h
instead.  I don't know if this is feasible.  If not, CPP_* prefixes are fine.


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

* [Bug preprocessor/12847] [3.4 Regression] xxx.c:1:20: xxxx.h: No such file or directory
  2003-10-30 20:23 [Bug preprocessor/12847] New: xxx.c:1:20: stdint.h: No such file or directory danglin at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2003-10-31 22:00 ` zack at gcc dot gnu dot org
@ 2003-10-31 22:24 ` dave at hiauly1 dot hia dot nrc dot ca
  2003-11-01 22:57 ` cvs-commit at gcc dot gnu dot org
  2003-11-01 23:11 ` danglin at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2003-10-31 22:24 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2003-10-31 22:14 -------
Subject: Re:  [3.4 Regression] xxx.c:1:20: xxxx.h: No

> ------- Additional Comments From zack at gcc dot gnu dot org  2003-10-31
> 21:59 -------
> I would prefer it if you could try to use the enumeration defined in
> diagnostic.h
> instead.  I don't know if this is feasible.  If not, CPP_* prefixes are
> fine.

I have a patch using the latter approach under test.  I would like
to resolve this issue as there are a number of other problems affecting
pa and vax builds.  After the prefix change, you can explore using
the enumeration at your leasure.

Dave


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

* [Bug preprocessor/12847] [3.4 Regression] xxx.c:1:20: xxxx.h: No such file or directory
  2003-10-30 20:23 [Bug preprocessor/12847] New: xxx.c:1:20: stdint.h: No such file or directory danglin at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2003-10-31 22:24 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2003-11-01 22:57 ` cvs-commit at gcc dot gnu dot org
  2003-11-01 23:11 ` danglin at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-11-01 22:57 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-11-01 22:56 -------
Subject: Bug 12847

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	danglin@gcc.gnu.org	2003-11-01 22:56:54

Modified files:
	gcc            : ChangeLog c-incpath.c c-pch.c cppcharset.c 
	                 cpperror.c cppexp.c cppfiles.c cppinit.c 
	                 cpplex.c cpplib.c cpplib.h cppmacro.c cpppch.c 
	                 cpptrad.c fix-header.c 

Log message:
	PR preprocessor/12847
	* cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
	cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
	c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
	DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
	"CPP_".

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1643&r2=2.1644
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-incpath.c.diff?cvsroot=gcc&r1=1.9&r2=1.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-pch.c.diff?cvsroot=gcc&r1=1.17&r2=1.18
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cppcharset.c.diff?cvsroot=gcc&r1=1.15&r2=1.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cpperror.c.diff?cvsroot=gcc&r1=1.69&r2=1.70
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cppexp.c.diff?cvsroot=gcc&r1=1.143&r2=1.144
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cppfiles.c.diff?cvsroot=gcc&r1=1.192&r2=1.193
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cppinit.c.diff?cvsroot=gcc&r1=1.296&r2=1.297
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cpplex.c.diff?cvsroot=gcc&r1=1.249&r2=1.250
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cpplib.c.diff?cvsroot=gcc&r1=1.353&r2=1.354
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cpplib.h.diff?cvsroot=gcc&r1=1.268&r2=1.269
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cppmacro.c.diff?cvsroot=gcc&r1=1.140&r2=1.141
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cpppch.c.diff?cvsroot=gcc&r1=1.12&r2=1.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cpptrad.c.diff?cvsroot=gcc&r1=1.37&r2=1.38
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fix-header.c.diff?cvsroot=gcc&r1=1.103&r2=1.104


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

* [Bug preprocessor/12847] [3.4 Regression] xxx.c:1:20: xxxx.h: No such file or directory
  2003-10-30 20:23 [Bug preprocessor/12847] New: xxx.c:1:20: stdint.h: No such file or directory danglin at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2003-11-01 22:57 ` cvs-commit at gcc dot gnu dot org
@ 2003-11-01 23:11 ` danglin at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2003-11-01 23:11 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


danglin at gcc dot gnu dot org changed:

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


------- Additional Comments From danglin at gcc dot gnu dot org  2003-11-01 23:11 -------
Fixed.


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

end of thread, other threads:[~2003-11-01 23:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-30 20:23 [Bug preprocessor/12847] New: xxx.c:1:20: stdint.h: No such file or directory danglin at gcc dot gnu dot org
2003-10-31  0:59 ` [Bug preprocessor/12847] [3.4 Regression] xxx.c:1:20: xxxx.h: " pinskia at gcc dot gnu dot org
2003-10-31 18:20 ` danglin at gcc dot gnu dot org
2003-10-31 18:43 ` danglin at gcc dot gnu dot org
2003-10-31 19:22 ` pinskia at gcc dot gnu dot org
2003-10-31 19:27 ` dave at hiauly1 dot hia dot nrc dot ca
2003-10-31 22:00 ` zack at gcc dot gnu dot org
2003-10-31 22:24 ` dave at hiauly1 dot hia dot nrc dot ca
2003-11-01 22:57 ` cvs-commit at gcc dot gnu dot org
2003-11-01 23:11 ` danglin 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).