public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/35915]  New: [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file
@ 2008-04-12 17:46 danglin at gcc dot gnu dot org
  2008-04-13  9:40 ` [Bug libstdc++/35915] " pcarlini at suse dot de
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-04-12 17:46 UTC (permalink / raw)
  To: gcc-bugs

libtool: compile:  /test/gnu/gcc/objdir/./gcc/xgcc -shared-libgcc
-B/test/gnu/gc
c/objdir/./gcc -nostdinc++
-L/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc+
+-v3/src -L/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/src/.libs
-B/
opt/gnu/gcc/gcc-4.4.0/hppa2.0w-hp-hpux11.11/bin/
-B/opt/gnu/gcc/gcc-4.4.0/hppa2.
0w-hp-hpux11.11/lib/ -isystem
/opt/gnu/gcc/gcc-4.4.0/hppa2.0w-hp-hpux11.11/inclu
de -isystem /opt/gnu/gcc/gcc-4.4.0/hppa2.0w-hp-hpux11.11/sys-include
-I/test/gnu
/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux11.11
-I/
test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include
-I/test/gnu/gcc/g
cc/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings 
-Wcast-qual -fdiagnostics-show-location=once -g -O2 -x c++ -std=gnu++0x -c
../..
/../../gcc/libstdc++-v3/src/atomic.cc  -fPIC -DPIC -o .libs/atomic.o
../../../../gcc/libstdc++-v3/src/atomic.cc:31:20: error: stdint.h: No such file 
or directory
../../../../gcc/libstdc++-v3/src/atomic.cc:55: warning: unused parameter '__x'
../../../../gcc/libstdc++-v3/src/atomic.cc:73: warning: unused parameter '__x'
../../../../gcc/libstdc++-v3/src/atomic.cc: In function 'volatile
std::atomic_fl
ag* std::__atomic_flag_for_address(const volatile void*)':
../../../../gcc/libstdc++-v3/src/atomic.cc:106: error: 'uintptr_t' was not
decla
red in this scope
../../../../gcc/libstdc++-v3/src/atomic.cc:106: error: expected ';' before
'__u'
../../../../gcc/libstdc++-v3/src/atomic.cc:107: error: '__u' was not declared
in
 this scope
../../../../gcc/libstdc++-v3/src/atomic.cc: At global scope:
../../../../gcc/libstdc++-v3/src/atomic.cc:104: warning: unused parameter '__z'
make[4]: *** [atomic.lo] Error 1


-- 
           Summary: [4.4 Regression] atomic.cc:31:20: error: stdint.h: No
                    such file
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa2.0w-hp-hpux11.11
  GCC host triplet: hppa2.0w-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11


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


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

* [Bug libstdc++/35915] [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file
  2008-04-12 17:46 [Bug libstdc++/35915] New: [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file danglin at gcc dot gnu dot org
@ 2008-04-13  9:40 ` pcarlini at suse dot de
  2008-04-14 19:38 ` bkoz at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pcarlini at suse dot de @ 2008-04-13  9:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pcarlini at suse dot de  2008-04-13 09:39 -------
CC-ing Benjamin...


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bkoz at redhat dot com


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


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

* [Bug libstdc++/35915] [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file
  2008-04-12 17:46 [Bug libstdc++/35915] New: [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file danglin at gcc dot gnu dot org
  2008-04-13  9:40 ` [Bug libstdc++/35915] " pcarlini at suse dot de
@ 2008-04-14 19:38 ` bkoz at gcc dot gnu dot org
  2008-04-14 19:43 ` andreast at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2008-04-14 19:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from bkoz at gcc dot gnu dot org  2008-04-14 19:37 -------

Ah. Well, I see that this is the second time I broke stuff on stdint.h.

I must fix this correctly, apparently. 

Mine...


-- 

bkoz at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |bkoz at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-04-14 19:37:17
               date|                            |


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


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

* [Bug libstdc++/35915] [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file
  2008-04-12 17:46 [Bug libstdc++/35915] New: [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file danglin at gcc dot gnu dot org
  2008-04-13  9:40 ` [Bug libstdc++/35915] " pcarlini at suse dot de
  2008-04-14 19:38 ` bkoz at gcc dot gnu dot org
@ 2008-04-14 19:43 ` andreast at gcc dot gnu dot org
  2008-04-15 19:21 ` bkoz at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: andreast at gcc dot gnu dot org @ 2008-04-14 19:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from andreast at gcc dot gnu dot org  2008-04-14 19:42 -------
happens on sparc-solaris2.8 as well. sparc-solaris2.10 is not affected.


-- 

andreast at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andreast at gcc dot gnu dot
                   |                            |org


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


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

* [Bug libstdc++/35915] [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file
  2008-04-12 17:46 [Bug libstdc++/35915] New: [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-04-14 19:43 ` andreast at gcc dot gnu dot org
@ 2008-04-15 19:21 ` bkoz at gcc dot gnu dot org
  2008-04-15 19:31 ` bkoz at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2008-04-15 19:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from bkoz at gcc dot gnu dot org  2008-04-15 19:21 -------

Sorry about the delay folks. Trying to track down some config issues, and so
far failing to get a local xcompiler up so I can test locally a config w/o
stdint.h provided.

Goal is to use GCC_HEADER_STDINT(gstdint.h) to construct a stdint.h that works
when stdint.h is not found. When stdint.h is found, do nothing.

-benjamin


-- 


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


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

* [Bug libstdc++/35915] [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file
  2008-04-12 17:46 [Bug libstdc++/35915] New: [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file danglin at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-04-15 19:21 ` bkoz at gcc dot gnu dot org
@ 2008-04-15 19:31 ` bkoz at gcc dot gnu dot org
  2008-04-16 18:13 ` andreast at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2008-04-15 19:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from bkoz at gcc dot gnu dot org  2008-04-15 19:31 -------

Sorry about the delay folks. Trying to track down some config issues, and so
far failing to get a local xcompiler up so I can test locally a config w/o
stdint.h provided.

Goal is to use GCC_HEADER_STDINT(gstdint.h) to construct a stdint.h that works
when stdint.h is not found. When stdint.h is found, do nothing.

-benjamin


-- 

bkoz at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |448


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


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

* [Bug libstdc++/35915] [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file
  2008-04-12 17:46 [Bug libstdc++/35915] New: [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file danglin at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-04-15 19:31 ` bkoz at gcc dot gnu dot org
@ 2008-04-16 18:13 ` andreast at gcc dot gnu dot org
  2008-04-16 18:40 ` bkoz at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: andreast at gcc dot gnu dot org @ 2008-04-16 18:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from andreast at gcc dot gnu dot org  2008-04-16 18:12 -------
I have a patch in testing. Looks ok so far.
One question, is it ok to place gstdint.h into the include directory? And not
like others in the toplevel build dir?

Index: configure.ac
===================================================================
--- configure.ac        (revision 134344)
+++ configure.ac        (working copy)
@@ -147,6 +147,8 @@
   GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
   GLIBCXX_CHECK_STDLIB_SUPPORT

+  GCC_HEADER_STDINT(include/gstdint.h) 
+
   # For showmanyc_helper().
   AC_CHECK_HEADERS(sys/ioctl.h sys/filio.h)
   GLIBCXX_CHECK_POLL
Index: src/atomic.cc
===================================================================
--- src/atomic.cc       (revision 134344)
+++ src/atomic.cc       (working copy)
@@ -28,7 +28,7 @@
 // invalidate any other reasons why the executable file might be covered by
 // the GNU General Public License.

-#include <stdint.h>
+#include "gstdint.h"
 #include <cstdatomic>

 #define LOGSIZE 4


-- 


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


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

* [Bug libstdc++/35915] [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file
  2008-04-12 17:46 [Bug libstdc++/35915] New: [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file danglin at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-04-16 18:13 ` andreast at gcc dot gnu dot org
@ 2008-04-16 18:40 ` bkoz at gcc dot gnu dot org
  2008-04-16 18:53 ` bkoz at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2008-04-16 18:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from bkoz at gcc dot gnu dot org  2008-04-16 18:39 -------

Hey Andreas. This is fine for the time being. 

If (include/gstdint.h) ends up being a problem (as include directory may not
exist when being output?), you can just do (gstdint.h) and then add a special
rule in include/Makefile.am for host_headers_noist to copy from  builddir to
include dir.


-- 


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


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

* [Bug libstdc++/35915] [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file
  2008-04-12 17:46 [Bug libstdc++/35915] New: [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file danglin at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-04-16 18:40 ` bkoz at gcc dot gnu dot org
@ 2008-04-16 18:53 ` bkoz at gcc dot gnu dot org
  2008-04-16 20:57 ` andreast at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2008-04-16 18:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from bkoz at gcc dot gnu dot org  2008-04-16 18:52 -------

in configure.ac please put 

GCC_STDINT

out of native/cross bit of configure, and run unconditionally like so:

GCC_LINUX_FUTEX([AC_DEFINE(HAVE_LINUX_FUTEX, 1, [Define if futex syscall is
available.])])

GCC_HEADER_STDINT(include/gstdint.h)


-- 


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


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

* [Bug libstdc++/35915] [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file
  2008-04-12 17:46 [Bug libstdc++/35915] New: [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file danglin at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2008-04-16 18:53 ` bkoz at gcc dot gnu dot org
@ 2008-04-16 20:57 ` andreast at gcc dot gnu dot org
  2008-04-16 21:31 ` andreast at gcc dot gnu dot org
  2008-04-20 21:01 ` andreast at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: andreast at gcc dot gnu dot org @ 2008-04-16 20:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from andreast at gcc dot gnu dot org  2008-04-16 20:56 -------
Patch is here, the changes from comment #8 are included.

http://gcc.gnu.org/ml/gcc-patches/2008-04/msg01320.html


-- 

andreast at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|bkoz at gcc dot gnu dot org |andreast at gcc dot gnu dot
                   |                            |org


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


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

* [Bug libstdc++/35915] [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file
  2008-04-12 17:46 [Bug libstdc++/35915] New: [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file danglin at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2008-04-16 20:57 ` andreast at gcc dot gnu dot org
@ 2008-04-16 21:31 ` andreast at gcc dot gnu dot org
  2008-04-20 21:01 ` andreast at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: andreast at gcc dot gnu dot org @ 2008-04-16 21:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from andreast at gcc dot gnu dot org  2008-04-16 21:30 -------
Subject: Bug 35915

Author: andreast
Date: Wed Apr 16 21:30:11 2008
New Revision: 134368

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134368
Log:
2008-04-16  Andreas Tobler  <a.tobler@schweiz.org>

        PR libstdc++/35915
        * configure.ac: Use GCC_HEADER_STDINT.
        * src/atomic.cc: Include gstdint.h
        * configure: Regenerate.
        * Makefile.in: Likewise.
        * doc/Makefile.in: Likewise.
        * include/Makefile.in: Likewise.
        * libmath/Makefile.in: Likewise.
        * libsupc++/Makefile.in: Likewise.
        * po/Makefile.in: Likewise.
        * src/Makefile.in: Likewise.
        * testsuite/Makefile.in: Likewise.
        * aclocal.m4: Likewise.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/Makefile.in
    trunk/libstdc++-v3/aclocal.m4
    trunk/libstdc++-v3/configure
    trunk/libstdc++-v3/configure.ac
    trunk/libstdc++-v3/doc/Makefile.in
    trunk/libstdc++-v3/include/Makefile.in
    trunk/libstdc++-v3/libmath/Makefile.in
    trunk/libstdc++-v3/libsupc++/Makefile.in
    trunk/libstdc++-v3/po/Makefile.in
    trunk/libstdc++-v3/src/Makefile.in
    trunk/libstdc++-v3/src/atomic.cc
    trunk/libstdc++-v3/testsuite/Makefile.in


-- 


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


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

* [Bug libstdc++/35915] [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file
  2008-04-12 17:46 [Bug libstdc++/35915] New: [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file danglin at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2008-04-16 21:31 ` andreast at gcc dot gnu dot org
@ 2008-04-20 21:01 ` andreast at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: andreast at gcc dot gnu dot org @ 2008-04-20 21:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from andreast at gcc dot gnu dot org  2008-04-20 21:00 -------
Compilation issues fixed. Both, on sparc and hpux. Confirmed myself.
We need to investigate the results of the atomic tests under HPUX. But if not
satisfying, we will open a new PR. 


-- 

andreast at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-04-20 21:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-12 17:46 [Bug libstdc++/35915] New: [4.4 Regression] atomic.cc:31:20: error: stdint.h: No such file danglin at gcc dot gnu dot org
2008-04-13  9:40 ` [Bug libstdc++/35915] " pcarlini at suse dot de
2008-04-14 19:38 ` bkoz at gcc dot gnu dot org
2008-04-14 19:43 ` andreast at gcc dot gnu dot org
2008-04-15 19:21 ` bkoz at gcc dot gnu dot org
2008-04-15 19:31 ` bkoz at gcc dot gnu dot org
2008-04-16 18:13 ` andreast at gcc dot gnu dot org
2008-04-16 18:40 ` bkoz at gcc dot gnu dot org
2008-04-16 18:53 ` bkoz at gcc dot gnu dot org
2008-04-16 20:57 ` andreast at gcc dot gnu dot org
2008-04-16 21:31 ` andreast at gcc dot gnu dot org
2008-04-20 21:01 ` andreast 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).