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

O. Hartmann ohartman at zedat.fu-berlin.de
Fri Jan 11 19:41:36 UTC 2013


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20130111/85a7449d/attachment.sig>


More information about the freebsd-current mailing list