public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/64161] New: bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std'
@ 2014-12-03  1:00 danglin at gcc dot gnu.org
  2014-12-03  1:17 ` [Bug libstdc++/64161] [5 Regression] " redi at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-12-03  1:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64161

            Bug ID: 64161
           Summary: bootstrap error: condition_variable.cc:134:7: error:
                    'atexit' is not a member of 'std'
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
              Host: hppa2.0w-hp-hpux11.11
            Target: hppa2.0w-hp-hpux11.11
             Build: hppa2.0w-hp-hpux11.11

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
-L/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/libsupc++/.libs
-B/opt/gnu/gcc/gcc-5.0/hppa2.0w-hp-hpux11.11/bin/
-B/opt/gnu/gcc/gcc-5.0/hppa2.0w-hp-hpux11.11/lib/ -isystem
/opt/gnu/gcc/gcc-5.0/hppa2.0w-hp-hpux11.11/include -isystem
/opt/gnu/gcc/gcc-5.0/hppa2.0w-hp-hpux11.11/sys-include
-I/test/gnu/gcc/gcc/libstdc++-v3/../libgcc
-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/gcc/libstdc++-v3/libsupc++ -std=gnu++11 -D_GLIBCXX_SHARED
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi
-fdiagnostics-show-location=once -frandom-seed=ctype.lo -g -O2 -c
../../../../../gcc/libstdc++-v3/src/c++11/ctype.cc  -fPIC -DPIC
-D_GLIBCXX_SHARED -o ctype.o
../../../../../gcc/libstdc++-v3/src/c++11/condition_variable.cc: In function
'void std::{anonymous}::key_init()':
../../../../../gcc/libstdc++-v3/src/c++11/condition_variable.cc:134:7: error:
'atexit' is not a member of 'std'
       std::atexit (run);
       ^
../../../../../gcc/libstdc++-v3/src/c++11/condition_variable.cc:134:7: note:
suggested alternative:
In file included from /test/gnu/gcc/objdir/gcc/include-fixed/wchar.h:33:0,
                 from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/cwchar:44,
                 from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/postypes.h:40,
                 from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/char_traits.h:40,
                 from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/string:40,
                 from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/stdexcept:39,
                 from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/array:38,
                 from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/tuple:39,
                 from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/mutex:38,
                 from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/condition_variable:39,
                 from
../../../../../gcc/libstdc++-v3/src/c++11/condition_variable.cc:25:
/test/gnu/gcc/objdir/gcc/include-fixed/stdlib.h:124:17: note:   'atexit'
      extern int atexit(void (*) (void));
                 ^
../../../../../gcc/libstdc++-v3/src/c++11/condition_variable.cc: At global
scope:
../../../../../gcc/libstdc++-v3/src/c++11/condition_variable.cc:98:10: warning:
'void std::{anonymous}::run()' defined but not used [-Wunused-function]
     void run()
          ^
make[6]: *** [condition_variable.lo] Error 1
make[6]: *** Waiting for unfinished jobs....


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

* [Bug libstdc++/64161] [5 Regression] bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std'
  2014-12-03  1:00 [Bug libstdc++/64161] New: bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std' danglin at gcc dot gnu.org
@ 2014-12-03  1:17 ` redi at gcc dot gnu.org
  2014-12-03  1:23 ` dave.anglin at bell dot net
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2014-12-03  1:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64161

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2014-12-03
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
#include <cstdlib> in the .cc file should fix it.


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

* [Bug libstdc++/64161] [5 Regression] bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std'
  2014-12-03  1:00 [Bug libstdc++/64161] New: bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std' danglin at gcc dot gnu.org
  2014-12-03  1:17 ` [Bug libstdc++/64161] [5 Regression] " redi at gcc dot gnu.org
@ 2014-12-03  1:23 ` dave.anglin at bell dot net
  2014-12-03  1:26 ` dave.anglin at bell dot net
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dave.anglin at bell dot net @ 2014-12-03  1:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64161

--- Comment #2 from dave.anglin at bell dot net ---
On 2-Dec-14, at 8:17 PM, redi at gcc dot gnu.org wrote:

> #include <cstdlib> in the .cc file should fix it.

Thanks Jonathon, I'll give it a try.

--
John David Anglin    dave.anglin@bell.net


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

* [Bug libstdc++/64161] [5 Regression] bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std'
  2014-12-03  1:00 [Bug libstdc++/64161] New: bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std' danglin at gcc dot gnu.org
  2014-12-03  1:17 ` [Bug libstdc++/64161] [5 Regression] " redi at gcc dot gnu.org
  2014-12-03  1:23 ` dave.anglin at bell dot net
@ 2014-12-03  1:26 ` dave.anglin at bell dot net
  2014-12-03  1:32 ` dave.anglin at bell dot net
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dave.anglin at bell dot net @ 2014-12-03  1:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64161

--- Comment #3 from dave.anglin at bell dot net ---
On 2-Dec-14, at 8:17 PM, redi at gcc dot gnu.org wrote:

> #include <cstdlib> in the .cc file should fix it.

Actually, .cc already includes it...

--
John David Anglin    dave.anglin@bell.net


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

* [Bug libstdc++/64161] [5 Regression] bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std'
  2014-12-03  1:00 [Bug libstdc++/64161] New: bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std' danglin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-12-03  1:26 ` dave.anglin at bell dot net
@ 2014-12-03  1:32 ` dave.anglin at bell dot net
  2014-12-03  1:33 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dave.anglin at bell dot net @ 2014-12-03  1:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64161

--- Comment #4 from dave.anglin at bell dot net ---
On 2-Dec-14, at 8:26 PM, dave.anglin at bell dot net wrote:

> Actually, .cc already includes it...

Sorry, looked at wrong file.

--
John David Anglin    dave.anglin@bell.net


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

* [Bug libstdc++/64161] [5 Regression] bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std'
  2014-12-03  1:00 [Bug libstdc++/64161] New: bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std' danglin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2014-12-03  1:32 ` dave.anglin at bell dot net
@ 2014-12-03  1:33 ` redi at gcc dot gnu.org
  2014-12-03  1:34 ` redi at gcc dot gnu.org
  2014-12-03 10:07 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2014-12-03  1:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64161

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It looks like it includes stdlib.h but not the C++ wrapper, cstdlib

I'm going to commit a patch to include cstdlib as that's correct anyway, I hope
that will fix it.


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

* [Bug libstdc++/64161] [5 Regression] bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std'
  2014-12-03  1:00 [Bug libstdc++/64161] New: bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std' danglin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2014-12-03  1:33 ` redi at gcc dot gnu.org
@ 2014-12-03  1:34 ` redi at gcc dot gnu.org
  2014-12-03 10:07 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2014-12-03  1:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64161

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Dec  3 01:34:03 2014
New Revision: 218300

URL: https://gcc.gnu.org/viewcvs?rev=218300&root=gcc&view=rev
Log:
    PR libstdc++/64161
    * src/c++11/condition_variable.cc: Include <cstdlib>.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/src/c++11/condition_variable.cc


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

* [Bug libstdc++/64161] [5 Regression] bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std'
  2014-12-03  1:00 [Bug libstdc++/64161] New: bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std' danglin at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2014-12-03  1:34 ` redi at gcc dot gnu.org
@ 2014-12-03 10:07 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-12-03 10:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64161

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |5.0

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Assuming fixed.


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

end of thread, other threads:[~2014-12-03 10:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-03  1:00 [Bug libstdc++/64161] New: bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std' danglin at gcc dot gnu.org
2014-12-03  1:17 ` [Bug libstdc++/64161] [5 Regression] " redi at gcc dot gnu.org
2014-12-03  1:23 ` dave.anglin at bell dot net
2014-12-03  1:26 ` dave.anglin at bell dot net
2014-12-03  1:32 ` dave.anglin at bell dot net
2014-12-03  1:33 ` redi at gcc dot gnu.org
2014-12-03  1:34 ` redi at gcc dot gnu.org
2014-12-03 10:07 ` rguenth at gcc dot gnu.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).