public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/27123] New: Build fails for AIX 6.`
@ 2020-12-28 17:53 parkej88 at gmail dot com
  2020-12-28 17:55 ` [Bug build/27123] Build fails for AIX 6.1 parkej88 at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: parkej88 at gmail dot com @ 2020-12-28 17:53 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27123

            Bug ID: 27123
           Summary: Build fails for AIX 6.`
           Product: gdb
           Version: 10.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: parkej88 at gmail dot com
  Target Milestone: ---

Created attachment 13082
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13082&action=edit
config.log in directory ../gdbsupport

When attempting build on AIX 6.1, ../gdbsupport/thread-pool.cc fails to compile
with messages such as:

In file included from thread-pool.cc:24:
../gdbsupport/thread-pool.h:84:8: error: 'condition_variable' in namespace
'std' does not name a type
   84 |   std::condition_variable m_tasks_cv;
      |        ^~~~~~~~~~~~~~~~~~
../gdbsupport/thread-pool.h:31:1: note: 'std::condition_variable' is defined in
header '<condition_variable>'; did you forget to '#include
<condition_variable>'?
   30 | #include "gdbsupport/gdb_optional.h"
  +++ |+#include <condition_variable>
   31 |
../gdbsupport/thread-pool.h:85:8: error: 'mutex' in namespace 'std' does not
name a type
   85 |   std::mutex m_tasks_mutex;
      |        ^~~~~
There are includes in thread-pool.h for:

#include <thread>
#include <vector>
#include <functional>
#include <mutex>
#include <condition_variable>
#include <future>

Yet these are reported as not being included by gcc.

Building with:
gcc version 10.2.0 (GCC)

Configure:
./configure

Appreciate any help.

Thanks,

John

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/27123] Build fails for AIX 6.1
  2020-12-28 17:53 [Bug build/27123] New: Build fails for AIX 6.` parkej88 at gmail dot com
@ 2020-12-28 17:55 ` parkej88 at gmail dot com
  2022-02-27 23:17 ` tromey at sourceware dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: parkej88 at gmail dot com @ 2020-12-28 17:55 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27123

John Parke <parkej88 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Build fails for AIX 6.`     |Build fails for AIX 6.1

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/27123] Build fails for AIX 6.1
  2020-12-28 17:53 [Bug build/27123] New: Build fails for AIX 6.` parkej88 at gmail dot com
  2020-12-28 17:55 ` [Bug build/27123] Build fails for AIX 6.1 parkej88 at gmail dot com
@ 2022-02-27 23:17 ` tromey at sourceware dot org
  2022-02-27 23:17 ` tromey at sourceware dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2022-02-27 23:17 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27123

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
> Yet these are reported as not being included by gcc.

Offhand I don't know why this might be happening.
configure thinks std::thread works:

configure:9690: checking for std::thread
configure:9707: /opt/freeware/gcc-10.2.0/bin/g++-10 -c -pthread -O3
-mcpu=powerpc -std=c++17
-I/opt/freeware/gcc-10.2.0/lib/gcc/powerpc-ibm-aix6.1.9.0/10/include 
conftest.cpp >&5
configure:9707: $? = 0

One thing you can do is try examining the full compilation command with
"make V=1".

Also it sometimes helps if you paste the entire command and output here.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/27123] Build fails for AIX 6.1
  2020-12-28 17:53 [Bug build/27123] New: Build fails for AIX 6.` parkej88 at gmail dot com
  2020-12-28 17:55 ` [Bug build/27123] Build fails for AIX 6.1 parkej88 at gmail dot com
  2022-02-27 23:17 ` tromey at sourceware dot org
@ 2022-02-27 23:17 ` tromey at sourceware dot org
  2022-08-05 21:44 ` kadler at us dot ibm.com
  2022-08-07 12:05 ` parkej88 at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2022-02-27 23:17 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27123

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2022-02-27
     Ever confirmed|0                           |1

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/27123] Build fails for AIX 6.1
  2020-12-28 17:53 [Bug build/27123] New: Build fails for AIX 6.` parkej88 at gmail dot com
                   ` (2 preceding siblings ...)
  2022-02-27 23:17 ` tromey at sourceware dot org
@ 2022-08-05 21:44 ` kadler at us dot ibm.com
  2022-08-07 12:05 ` parkej88 at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: kadler at us dot ibm.com @ 2022-08-05 21:44 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27123

Kevin Adler <kadler at us dot ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kadler at us dot ibm.com

--- Comment #2 from Kevin Adler <kadler at us dot ibm.com> ---
GCC has separate ABIs on AIX: threaded and non-threaded. Without the -pthread
flag, GCC will use the non-threaded ABI which does not define thread-related
C++ classes. These definitions are guarded by #ifdef _GLIBCXX_HAS_GTHREADS
which is set in one of:
- include/c++/.../bits/c++config.h
- include/c++/.../ppc64/bits/c++config.h
- include/c++/.../pthread/bits/c++config.h
- include/c++/.../pthread/ppc64/bits/c++config.h

depending on which -maix32/-maix64 and -pthread parameters (if any) were
passed. (Note that GCC 10, IIRC, changed the above layout to
ppc{32,64}/{pthread,} instead.)


If the build rule for thread-pool.cc is not passing the -pthread option, these
sorts of compilation errors will occur. The "make V=1" output would be helpful
to diagnose the problem further or see if the rule uses PTHREAD_CFLAGS.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/27123] Build fails for AIX 6.1
  2020-12-28 17:53 [Bug build/27123] New: Build fails for AIX 6.` parkej88 at gmail dot com
                   ` (3 preceding siblings ...)
  2022-08-05 21:44 ` kadler at us dot ibm.com
@ 2022-08-07 12:05 ` parkej88 at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: parkej88 at gmail dot com @ 2022-08-07 12:05 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27123

John Parke <parkej88 at gmail dot com> changed:

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

--- Comment #3 from John Parke <parkej88 at gmail dot com> ---
This is the correct analysis of this problem.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2022-08-07 12:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-28 17:53 [Bug build/27123] New: Build fails for AIX 6.` parkej88 at gmail dot com
2020-12-28 17:55 ` [Bug build/27123] Build fails for AIX 6.1 parkej88 at gmail dot com
2022-02-27 23:17 ` tromey at sourceware dot org
2022-02-27 23:17 ` tromey at sourceware dot org
2022-08-05 21:44 ` kadler at us dot ibm.com
2022-08-07 12:05 ` parkej88 at gmail dot com

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