Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jan 2013 20:41:27 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        "freebs >> Current FreeBSD" <freebsd-current@FreeBSD.org>
Subject:   r245310: /usr/src/lib/libcxxrt/../../contrib/libcxxrt/memory.cc:64:10: error: too few arguments to function call, expected 4, have 3
Message-ID:  <50F06AE7.5000404@zedat.fu-berlin.de>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQEcBAEBAgAGBQJQ8GroAAoJEOgBcD7A/5N8+7YIALN8K/fz6lYEGrWZ9iGaw5W/
E0yWETxoGPtGHXSKqpyPNiLEMkdmc3tq0lZ/Bytnnhj2/AzLCt+zDlP8j3/Uh4E/
h+fbA0pyKrMNSwApfuuUd9EH8bX1UJai8uTYH22TTKmUZCUFTeKjI7yJEdSG8vZJ
k7/iuTb+PWz6qEFKf0p++CDGQzuu5xcl43pPgoJdXJK1wRL2+YeBsmv+ko4dc4Wm
jEf+j3HBcI/FZA7VvJFzzXQoBdlUMKUxLFIUbbig19LAnI2HfFx0qiuK+hO4+Yo+
lnALL5gnFpzmZacuJErCkrUfyRWnsUs1R12QGjRJJkoSo+Orj9R8NBC7rfkzPVk=
=ub2Q
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50F06AE7.5000404>