public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc-4.7-20111022 fails to build on PA-RISC
@ 2011-10-23 23:12 Dimitrios Apostolou
  2011-10-29 15:52 ` Dimitrios Apostolou
  0 siblings, 1 reply; 8+ messages in thread
From: Dimitrios Apostolou @ 2011-10-23 23:12 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: TEXT/PLAIN, Size: 772 bytes --]

Hello list,

For the first time I tried building gcc on PA-RISC so I configured with 
the following lines:

jimis@dingo:~/dist/src/objtmp-gcc$ export 
LD_LIBRARY_PATH=/opt/cfarm/gmp-latest/lib/:/opt/cfarm/mpfr-latest/lib/:/opt/cfarm/mpc-latest/lib/
jimis@dingo:~/dist/src/objtmp-gcc$ ../gcc-4.7-20111022/configure 
--prefix=/home/jimis/dist/src/tgt-gcc-4.7-20111022/ 
--enable-checking=assert,misc,runtime,rtl,df 
--with-gmp=/opt/cfarm/gmp-latest --with-mpfr=/opt/cfarm/mpfr-latest 
--with-mpc=/opt/cfarm/mpc-latest CFLAGS="-O -g"


After some time I got the attached error, unfortunately it's in some part 
of gcc in C++. Since I'm not coming to terms with the language could you 
please help me on this one? Am I missing something obvious?


Thanks in advance,
Dimitris

[-- Attachment #2: Type: TEXT/plain, Size: 8496 bytes --]

$ pwd
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include

$ /home/jimis/dist/src/objtmp-gcc/./gcc/xgcc -shared-libgcc -B/home/jimis/dist/src/objtmp-gcc/./gcc -nostdinc++ -L/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/src -L/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/src/.libs -B/home/jimis/dist/src/tgt-gcc-4.7-20111022-hardreg-struct/hppa2.0-unknown-linux-gnu/bin/ -B/home/jimis/dist/src/tgt-gcc-4.7-20111022-hardreg-struct/hppa2.0-unknown-linux-gnu/lib/ -isystem /home/jimis/dist/src/tgt-gcc-4.7-20111022-hardreg-struct/hppa2.0-unknown-linux-gnu/include -isystem /home/jimis/dist/src/tgt-gcc-4.7-20111022-hardreg-struct/hppa2.0-unknown-linux-gnu/sys-include    -x c++-header -nostdinc++ -g -O2 -D_GNU_SOURCE -I/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/hppa2.0-unknown-linux-gnu -I/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include -I/home/jimis/dist/src/gcc-4.7-20111022/libstdc++-v3/libsupc++ -O2 -g -std=gnu++0x /home/jimis/dist/src/gcc-4.7-20111022/libstdc++-v3/include/precompiled/stdc++.h         -o hppa2.0-unknown-linux-gnu/bits/stdc++.h.gch/O2ggnu++0x.gch
In file included from /home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/memory:76:0,
                 from /home/jimis/dist/src/gcc-4.7-20111022/libstdc++-v3/include/precompiled/stdc++.h:81:
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/ext/concurrence.h: In constructor '__gnu_cxx::__mutex::__mutex()':
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/ext/concurrence.h:159:15: error: use of deleted function 'pthread_mutex_t& pthread_mutex_t::operator=(const pthread_mutex_t&)'
In file included from /usr/include/signal.h:388:0,
                 from /home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/csignal:44,
                 from /home/jimis/dist/src/gcc-4.7-20111022/libstdc++-v3/include/precompiled/stdc++.h:44:
/usr/include/bits/pthreadtypes.h:101:3: note: 'pthread_mutex_t& pthread_mutex_t::operator=(const pthread_mutex_t&)' is implicitly deleted because the default definition would be ill-formed:
/usr/include/bits/pthreadtypes.h:101:3: error: use of deleted function '_pthread_fastlock& _pthread_fastlock::operator=(const _pthread_fastlock&)'
/usr/include/bits/pthreadtypes.h:34:8: note: '_pthread_fastlock& _pthread_fastlock::operator=(const _pthread_fastlock&)' is implicitly deleted because the default definition would be ill-formed:
/usr/include/bits/pthreadtypes.h:34:8: error: no matching function for call to '<anonymous struct>::operator=(const volatile __atomic_lock_t&) volatile'
/usr/include/bits/pthreadtypes.h:34:8: note: candidates are:
/usr/include/bits/pthreadtypes.h:29:25: note: <anonymous struct>&<anonymous struct>::operator=(const<anonymous struct>&)
/usr/include/bits/pthreadtypes.h:29:25: note:   no known conversion for argument 1 from 'const volatile __atomic_lock_t {aka const volatile<anonymous struct>}' to 'const<anonymous struct>&'
/usr/include/bits/pthreadtypes.h:29:25: note: <anonymous struct>&<anonymous struct>::operator=(<anonymous struct>&&)
/usr/include/bits/pthreadtypes.h:29:25: note:   no known conversion for argument 1 from 'const volatile __atomic_lock_t {aka const volatile<anonymous struct>}' to '<anonymous struct>&&'
In file included from /home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/memory:76:0,
                 from /home/jimis/dist/src/gcc-4.7-20111022/libstdc++-v3/include/precompiled/stdc++.h:81:
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/ext/concurrence.h: In constructor '__gnu_cxx::__recursive_mutex::__recursive_mutex()':
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/ext/concurrence.h:217:15: error: use of deleted function 'pthread_mutex_t& pthread_mutex_t::operator=(const pthread_mutex_t&)'
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/ext/concurrence.h: In constructor '__gnu_cxx::__cond::__cond()':
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/ext/concurrence.h:335:14: error: use of deleted function 'pthread_cond_t& pthread_cond_t::operator=(const pthread_cond_t&)'
In file included from /usr/include/signal.h:388:0,
                 from /home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/csignal:44,
                 from /home/jimis/dist/src/gcc-4.7-20111022/libstdc++-v3/include/precompiled/stdc++.h:44:
/usr/include/bits/pthreadtypes.h:78:3: note: 'pthread_cond_t& pthread_cond_t::operator=(const pthread_cond_t&)' is implicitly deleted because the default definition would be ill-formed:
/usr/include/bits/pthreadtypes.h:78:3: error: use of deleted function '_pthread_fastlock& _pthread_fastlock::operator=(const _pthread_fastlock&)'
In file included from /home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/condition_variable:39:0,
                 from /home/jimis/dist/src/gcc-4.7-20111022/libstdc++-v3/include/precompiled/stdc++.h:101:
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex: In constructor 'constexpr std::mutex::mutex()':
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex:73:63: error: use of deleted function 'pthread_mutex_t::pthread_mutex_t(const pthread_mutex_t&)'
In file included from /usr/include/signal.h:388:0,
                 from /home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/csignal:44,
                 from /home/jimis/dist/src/gcc-4.7-20111022/libstdc++-v3/include/precompiled/stdc++.h:44:
/usr/include/bits/pthreadtypes.h:101:3: note: 'pthread_mutex_t::pthread_mutex_t(const pthread_mutex_t&)' is implicitly deleted because the default definition would be ill-formed:
/usr/include/bits/pthreadtypes.h:101:3: error: use of deleted function '_pthread_fastlock::_pthread_fastlock(const _pthread_fastlock&)'
/usr/include/bits/pthreadtypes.h:34:8: note: '_pthread_fastlock::_pthread_fastlock(const _pthread_fastlock&)' is implicitly deleted because the default definition would be ill-formed:
/usr/include/bits/pthreadtypes.h:34:8: error: no matching function for call to '<anonymous struct>::._64(const volatile __atomic_lock_t&)'
/usr/include/bits/pthreadtypes.h:34:8: note: candidates are:
/usr/include/bits/pthreadtypes.h:29:25: note: <anonymous struct>::._64()
/usr/include/bits/pthreadtypes.h:29:25: note:   candidate expects 0 arguments, 1 provided
/usr/include/bits/pthreadtypes.h:29:25: note: constexpr<anonymous struct>::._64(const<anonymous struct>&)
/usr/include/bits/pthreadtypes.h:29:25: note:   no known conversion for argument 1 from 'const volatile __atomic_lock_t {aka const volatile<anonymous struct>}' to 'const<anonymous struct>&'
/usr/include/bits/pthreadtypes.h:29:25: note: constexpr<anonymous struct>::._64(<anonymous struct>&&)
/usr/include/bits/pthreadtypes.h:29:25: note:   no known conversion for argument 1 from 'const volatile __atomic_lock_t {aka const volatile<anonymous struct>}' to '<anonymous struct>&&'
In file included from /home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/condition_variable:39:0,
                 from /home/jimis/dist/src/gcc-4.7-20111022/libstdc++-v3/include/precompiled/stdc++.h:101:
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex: In constructor 'std::recursive_mutex::recursive_mutex()':
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex:165:64: error: use of deleted function 'pthread_mutex_t::pthread_mutex_t(const pthread_mutex_t&)'
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex: In constructor 'std::timed_mutex::timed_mutex()':
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex:227:50: error: use of deleted function 'pthread_mutex_t::pthread_mutex_t(const pthread_mutex_t&)'
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex: In constructor 'std::recursive_timed_mutex::recursive_timed_mutex()':
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex:332:70: error: use of deleted function 'pthread_mutex_t::pthread_mutex_t(const pthread_mutex_t&)'

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

* Re: gcc-4.7-20111022 fails to build on PA-RISC
  2011-10-23 23:12 gcc-4.7-20111022 fails to build on PA-RISC Dimitrios Apostolou
@ 2011-10-29 15:52 ` Dimitrios Apostolou
  2011-10-29 17:20   ` Jonathan Wakely
  0 siblings, 1 reply; 8+ messages in thread
From: Dimitrios Apostolou @ 2011-10-29 15:52 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1292 bytes --]

Hello again,

I tried disabling precompiled headers for libstdc++ (thanks apinski for 
pointing this) and now the build fails while trying to build atomic.o. Any 
ideas? Please take a look at the error message in the attached file. The 
culprit seems to be the following:

/usr/include/bits/pthreadtypes.h:34:8: error: no matching function for 
call to '<anonymous struct>::._3(const volatile __atomic_lock_t&)'



Thanks,
Dimitris


On Mon, 24 Oct 2011, Dimitrios Apostolou wrote:

> Hello list,
>
> For the first time I tried building gcc on PA-RISC so I configured with the 
> following lines:
>
> jimis@dingo:~/dist/src/objtmp-gcc$ export 
> LD_LIBRARY_PATH=/opt/cfarm/gmp-latest/lib/:/opt/cfarm/mpfr-latest/lib/:/opt/cfarm/mpc-latest/lib/
> jimis@dingo:~/dist/src/objtmp-gcc$ ../gcc-4.7-20111022/configure 
> --prefix=/home/jimis/dist/src/tgt-gcc-4.7-20111022/ 
> --enable-checking=assert,misc,runtime,rtl,df --with-gmp=/opt/cfarm/gmp-latest 
> --with-mpfr=/opt/cfarm/mpfr-latest --with-mpc=/opt/cfarm/mpc-latest 
> CFLAGS="-O -g"
>
>
> After some time I got the attached error, unfortunately it's in some part of 
> gcc in C++. Since I'm not coming to terms with the language could you please 
> help me on this one? Am I missing something obvious?
>
>
> Thanks in advance,
> Dimitris
>

[-- Attachment #2: Type: TEXT/plain, Size: 4384 bytes --]

libtool: compile:  /home/jimis/dist/src/objtmp-gcc/./gcc/xgcc -shared-libgcc -B/home/jimis/dist/src/objtmp-gcc/./gcc -nostdinc++ -L/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/src -L/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/src/.libs -B/home/jimis/dist/src/tgt-gcc-4.7-20111022/hppa2.0-unknown-linux-gnu/bin/ -B/home/jimis/dist/src/tgt-gcc-4.7-20111022/hppa2.0-unknown-linux-gnu/lib/ -isystem /home/jimis/dist/src/tgt-gcc-4.7-20111022/hppa2.0-unknown-linux-gnu/include -isystem /home/jimis/dist/src/tgt-gcc-4.7-20111022/hppa2.0-unknown-linux-gnu/sys-include -I/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/hppa2.0-unknown-linux-gnu -I/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include -I/home/jimis/dist/src/gcc-4.7-20111022/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=bitmap_allocator.lo -g -O2 -D_GNU_SOURCE -c ../../../../gcc-4.7-20111022/libstdc++-v3/src/bitmap_allocator.cc  -fPIC -DPIC -o .libs/bitmap_allocator.o
In file included from ../../../../gcc-4.7-20111022/libstdc++-v3/src/atomic.cc:28:0:
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex: In constructor 'constexpr std::mutex::mutex()':
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex:73:63: error: use of deleted function 'pthread_mutex_t::pthread_mutex_t(const pthread_mutex_t&)'
In file included from /usr/include/sys/types.h:270:0,
                 from /home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/gstdint.h:6,
                 from ../../../../gcc-4.7-20111022/libstdc++-v3/src/atomic.cc:26:
/usr/include/bits/pthreadtypes.h:101:3: note: 'pthread_mutex_t::pthread_mutex_t(const pthread_mutex_t&)' is implicitly deleted because the default definition would be ill-formed:
/usr/include/bits/pthreadtypes.h:101:3: error: use of deleted function '_pthread_fastlock::_pthread_fastlock(const _pthread_fastlock&)'
/usr/include/bits/pthreadtypes.h:34:8: note: '_pthread_fastlock::_pthread_fastlock(const _pthread_fastlock&)' is implicitly deleted because the default definition would be ill-formed:
/usr/include/bits/pthreadtypes.h:34:8: error: no matching function for call to '<anonymous struct>::._3(const volatile __atomic_lock_t&)'
/usr/include/bits/pthreadtypes.h:34:8: note: candidates are:
/usr/include/bits/pthreadtypes.h:29:25: note: <anonymous struct>::._3()
/usr/include/bits/pthreadtypes.h:29:25: note:   candidate expects 0 arguments, 1 provided
/usr/include/bits/pthreadtypes.h:29:25: note: constexpr<anonymous struct>::._3(const<anonymous struct>&)
/usr/include/bits/pthreadtypes.h:29:25: note:   no known conversion for argument 1 from 'const volatile __atomic_lock_t {aka const volatile<anonymous struct>}' to 'const<anonymous struct>&'
/usr/include/bits/pthreadtypes.h:29:25: note: constexpr<anonymous struct>::._3(<anonymous struct>&&)
/usr/include/bits/pthreadtypes.h:29:25: note:   no known conversion for argument 1 from 'const volatile __atomic_lock_t {aka const volatile<anonymous struct>}' to '<anonymous struct>&&'
In file included from ../../../../gcc-4.7-20111022/libstdc++-v3/src/atomic.cc:28:0:
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex: In constructor 'std::recursive_mutex::recursive_mutex()':
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex:165:64: error: use of deleted function 'pthread_mutex_t::pthread_mutex_t(const pthread_mutex_t&)'
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex: In constructor 'std::timed_mutex::timed_mutex()':
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex:227:50: error: use of deleted function 'pthread_mutex_t::pthread_mutex_t(const pthread_mutex_t&)'
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex: In constructor 'std::recursive_timed_mutex::recursive_timed_mutex()':
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex:332:70: error: use of deleted function 'pthread_mutex_t::pthread_mutex_t(const pthread_mutex_t&)'
make[5]: *** [atomic.lo] Error 1

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

* Re: gcc-4.7-20111022 fails to build on PA-RISC
  2011-10-29 15:52 ` Dimitrios Apostolou
@ 2011-10-29 17:20   ` Jonathan Wakely
  2011-10-29 18:02     ` Jonathan Wakely
  0 siblings, 1 reply; 8+ messages in thread
From: Jonathan Wakely @ 2011-10-29 17:20 UTC (permalink / raw)
  To: Dimitrios Apostolou; +Cc: gcc-help

On 29 October 2011 16:51, Dimitrios Apostolou wrote:
> Hello again,
>
> I tried disabling precompiled headers for libstdc++ (thanks apinski for
> pointing this) and now the build fails while trying to build atomic.o. Any
> ideas? Please take a look at the error message in the attached file. The
> culprit seems to be the following:
>
> /usr/include/bits/pthreadtypes.h:34:8: error: no matching function for call
> to '<anonymous struct>::._3(const volatile __atomic_lock_t&)'

This looks as though it's a problem with how we used pthread_mutex_t,
which I changed a few days ago and that might have fixed it.

You could try making this change in libstdc++-v3/include/std/mutex (or
wait for the next 4.7 snapshot)

-    __native_type  _M_mutex = __GTHREAD_MUTEX_INIT;
+    __native_type  _M_mutex;

   public:
     typedef __native_type*                      native_handle_type;

 #ifdef __GTHREAD_MUTEX_INIT
-    constexpr mutex() : _M_mutex(__GTHREAD_MUTEX_INIT) { }
+    constexpr mutex() = default;
 #else

Please let me know if that helps.

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

* Re: gcc-4.7-20111022 fails to build on PA-RISC
  2011-10-29 17:20   ` Jonathan Wakely
@ 2011-10-29 18:02     ` Jonathan Wakely
  2011-10-29 18:33       ` Jonathan Wakely
  2011-10-29 18:35       ` Dimitrios Apostolou
  0 siblings, 2 replies; 8+ messages in thread
From: Jonathan Wakely @ 2011-10-29 18:02 UTC (permalink / raw)
  To: Dimitrios Apostolou; +Cc: gcc-help

What does the definition of _pthread_fastlock on line 34 of
/usr/include/bits/pthreadtypes.h look like?

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

* Re: gcc-4.7-20111022 fails to build on PA-RISC
  2011-10-29 18:02     ` Jonathan Wakely
@ 2011-10-29 18:33       ` Jonathan Wakely
  2011-10-29 18:37         ` Dimitrios Apostolou
  2011-10-29 18:35       ` Dimitrios Apostolou
  1 sibling, 1 reply; 8+ messages in thread
From: Jonathan Wakely @ 2011-10-29 18:33 UTC (permalink / raw)
  To: Dimitrios Apostolou; +Cc: gcc-help

On 29 October 2011 19:01, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> What does the definition of _pthread_fastlock on line 34 of
> /usr/include/bits/pthreadtypes.h look like?
>

Don't worry, I foudn the definition on an hppa-linux machine, and can
reproduce the problem even with the latest std::mutex code

e.g.

typedef volatile struct {
    int lock[4];
} __attribute__ ((aligned(16))) __atomic_lock_t;

struct _pthread_fastlock
{
    __atomic_lock_t __spinlock;
};

typedef struct {
    struct _pthread_fastlock lock;
} pthread_mutex_t;

struct mutex {
  pthread_mutex_t m = { };
  mutex() = default;
};

int main()
{
  mutex mx;
}

The problem is that the mutex contains a volatile type and can't be
copied by the implicit-declared copy constructor.

I'll have to look into this further tomorrow to see if it's a G++
problem or something we need to work around in the library.

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

* Re: gcc-4.7-20111022 fails to build on PA-RISC
  2011-10-29 18:02     ` Jonathan Wakely
  2011-10-29 18:33       ` Jonathan Wakely
@ 2011-10-29 18:35       ` Dimitrios Apostolou
  1 sibling, 0 replies; 8+ messages in thread
From: Dimitrios Apostolou @ 2011-10-29 18:35 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-help

Hi Jonathan,

I tried applying the latest changes from svn to mutex, but it stills fails 
to build.

On Sat, 29 Oct 2011, Jonathan Wakely wrote:

> What does the definition of _pthread_fastlock on line 34 of
> /usr/include/bits/pthreadtypes.h look like?
>

/* Fast locks (not abstract because mutexes and conditions aren't 
abstract). */
struct _pthread_fastlock
{
   __atomic_lock_t __spinlock;   /* Used by compare_and_swap emulation. 
Also,
                                    adaptive SMP lock stores spin count 
here. */
   long int __status;            /* "Free" or "taken" or head of waiting 
list */
};


Dimitris

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

* Re: gcc-4.7-20111022 fails to build on PA-RISC
  2011-10-29 18:33       ` Jonathan Wakely
@ 2011-10-29 18:37         ` Dimitrios Apostolou
  2011-10-30 16:47           ` Jonathan Wakely
  0 siblings, 1 reply; 8+ messages in thread
From: Dimitrios Apostolou @ 2011-10-29 18:37 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-help

On Sat, 29 Oct 2011, Jonathan Wakely wrote:
> On 29 October 2011 19:01, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> The problem is that the mutex contains a volatile type and can't be
> copied by the implicit-declared copy constructor.
>
> I'll have to look into this further tomorrow to see if it's a G++
> problem or something we need to work around in the library.
>

Thanks, I appreciate it :-)


Dimitris

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

* Re: gcc-4.7-20111022 fails to build on PA-RISC
  2011-10-29 18:37         ` Dimitrios Apostolou
@ 2011-10-30 16:47           ` Jonathan Wakely
  0 siblings, 0 replies; 8+ messages in thread
From: Jonathan Wakely @ 2011-10-30 16:47 UTC (permalink / raw)
  To: Dimitrios Apostolou; +Cc: gcc-help

On 29 October 2011 19:37, Dimitrios Apostolou wrote:
> On Sat, 29 Oct 2011, Jonathan Wakely wrote:
>>
>> I'll have to look into this further tomorrow to see if it's a G++
>> problem or something we need to work around in the library.
>>
>
> Thanks, I appreciate it :-)

Let's continue this thread on the libstdc++ list instead - it's a
problem we'll have to fix.

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

end of thread, other threads:[~2011-10-30 16:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-23 23:12 gcc-4.7-20111022 fails to build on PA-RISC Dimitrios Apostolou
2011-10-29 15:52 ` Dimitrios Apostolou
2011-10-29 17:20   ` Jonathan Wakely
2011-10-29 18:02     ` Jonathan Wakely
2011-10-29 18:33       ` Jonathan Wakely
2011-10-29 18:37         ` Dimitrios Apostolou
2011-10-30 16:47           ` Jonathan Wakely
2011-10-29 18:35       ` Dimitrios Apostolou

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