Re: r245310: /usr/src/lib/libcxxrt/../../contrib/libcxxrt/memory.cc:64:10: error: too few arguments to function call, expected 4, have 3

From: Garrett Cooper <yanegomi_at_gmail.com>
Date: Fri, 11 Jan 2013 14:59:04 -0800
Dimitry cced.

Sent from my iPhone

On Jan 11, 2013, at 11:41 AM, "O. Hartmann" <ohartman_at_zedat.fu-berlin.de> wrote:

> When building the system, I receive very quickly the following error
> when  /usr/src/lib/libcxxrt is compiled:
> 
> 
> c++ -fpic -DPIC  -O2 -pipe -O3 -march=native
> -I/usr/src/lib/libcxxrt/../../contrib/libcxxrt -Qunused-arguments
> -fstack-protector -Wno-empty-body -Wno-string-plus-int
> -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality
> -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum
> -Wno-parentheses -stdlib=libc++  -std=c++11 -c
> /usr/src/lib/libcxxrt/../../contrib/libcxxrt/memory.cc -o memory.So
> /usr/src/lib/libcxxrt/../../contrib/libcxxrt/memory.cc:64:10: error: too
> few arguments to function call, expected 4, have 3
> /usr/src/lib/libcxxrt/../../contrib/libcxxrt/memory.cc:64:10: error: too
> few arguments to function call, expected 4, have 3
>                return ATOMIC_SWAP(&new_handl, handler);
>                return ATOMIC_SWAP(&new_handl, handler);
>                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/src/lib/libcxxrt/../../contrib/libcxxrt/atomic.h:14:47: note:
> expanded from macro 'ATOMIC_SWAP'
>        __atomic_exchange(addr, val, __ATOMIC_ACQ_REL)
>        ~~~~~~~~~~~~~~~~~                            ^
> /usr/src/lib/libcxxrt/../../contrib/libcxxrt/memory.cc:69:10: error: too
> few arguments to function call, expected 3, have 2
>                return ATOMIC_LOAD(&new_handl);
>                       ^~~~~~~~~~~~~~~~~~~~~~~
> /usr/src/lib/libcxxrt/../../contrib/libcxxrt/atomic.h:25:38: note:
> expanded from macro 'ATOMIC_LOAD'
>        __atomic_load(addr, __ATOMIC_ACQUIRE)
>        ~~~~~~~~~~~~~                       ^
> /usr/src/lib/libcxxrt/../../contrib/libcxxrt/memory.cc:149:6: warning:
> function previously declared with an implicit exception specification
> redeclared with an explicit exception specification
> [-Wimplicit-exception-spec-mismatch]
> void operator delete[](void * ptr) throw()
>     ^
>                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/src/lib/libcxxrt/../../contrib/libcxxrt/atomic.h:14:47: note:
> expanded from macro 'ATOMIC_SWAP'
>        __atomic_exchange(addr, val, __ATOMIC_ACQ_REL)
>        ~~~~~~~~~~~~~~~~~                            ^
> /usr/src/lib/libcxxrt/../../contrib/libcxxrt/memory.cc:69:10: error: too
> few arguments to function call, expected 3, have 2
>                return ATOMIC_LOAD(&new_handl);
>                       ^~~~~~~~~~~~~~~~~~~~~~~
> /usr/src/lib/libcxxrt/../../contrib/libcxxrt/atomic.h:25:38: note:
> expanded from macro 'ATOMIC_LOAD'
>        __atomic_load(addr, __ATOMIC_ACQUIRE)
>        ~~~~~~~~~~~~~                       ^
> /usr/src/lib/libcxxrt/../../contrib/libcxxrt/memory.cc:149:6: warning:
> function previously declared with an implicit exception specification
> redeclared with an explicit exception specification
> [-Wimplicit-exception-spec-mismatch]
> void operator delete[](void * ptr) throw()
>     ^
> 1 warning and 2 errors generated.
> 1 warning and 2 errors generated.
> *** [memory.So] Error code 1
> *** [memory.o] Error code 1
> 2 errors
> *** [lib/libcxxrt__L] Error code 2
> 1 error
> *** [libraries] Error code 2
> 1 error
> *** [_libraries] Error code 2
> 1 error
> *** [buildworld] Error code 2
> 1 error
> 
Received on Fri Jan 11 2013 - 21:59:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:33 UTC