Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578506 - sys-libs/db[cxx]: build fails with clang++ -stdlib=libc++
Summary: sys-libs/db[cxx]: build fails with clang++ -stdlib=libc++
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-29 11:45 UTC by Yuta SATOH
Modified: 2016-09-26 10:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2016-03-29 11:45:20 UTC
The following message is displayed and fails to build.

If you think that can not be easy to fix, please add "sys-libs/db cxx" to profiles/arch/amd64-fbsd/clang/package.use.mask.


./libtool --mode=compile clang++ -stdlib=libc++ -c -I. -I/var/tmp/portage/sys-libs/db-4.8.30-r2/work/db-4.8.30/build_unix/../dist/..  -D_THREAD_SAFE -stdlib=libc++ -O2 -pipe -mtune=generic /var/tmp/portage/sys-libs/db-4.8.30-r2/work/db-4.8.30/build_unix/../dist/../cxx/cxx_db.cpp
libtool: compile:  clang++ -stdlib=libc++ -c -I. -I/var/tmp/portage/sys-libs/db-4.8.30-r2/work/db-4.8.30/build_unix/../dist/.. -D_THREAD_SAFE -stdlib=libc++ -O2 -pipe -mtune=generic /var/tmp/portage/sys-libs/db-4.8.30-r2/work/db-4.8.30/build_unix/../dist/../cxx/cxx_db.cpp  -fPIC -DPIC -o .libs/cxx_db.o
In file included from /var/tmp/portage/sys-libs/db-4.8.30-r2/work/db-4.8.30/build_unix/../dist/../cxx/cxx_db.cpp:13:
In file included from ./db_cxx.h:55:
In file included from /usr/include/c++/v1/iostream:38:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:15:
In file included from /usr/include/c++/v1/string:439:
In file included from /usr/include/c++/v1/algorithm:628:
In file included from /usr/include/c++/v1/memory:616:
/usr/include/c++/v1/atomic:1107:13: error: expected unqualified-id
atomic_init(volatile atomic<_Tp>* __o, _Tp __d) _NOEXCEPT
            ^
/var/tmp/portage/sys-libs/db-4.8.30-r2/work/db-4.8.30/build_unix/../dist/../dbinc/atomic.h:73:31: note: expanded from macro 'atomic_init'
#define atomic_init(p, val)     ((p)->value = (val))
                                  ^
In file included from /var/tmp/portage/sys-libs/db-4.8.30-r2/work/db-4.8.30/build_unix/../dist/../cxx/cxx_db.cpp:13:
In file included from ./db_cxx.h:55:
In file included from /usr/include/c++/v1/iostream:38:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:15:
In file included from /usr/include/c++/v1/string:439:
In file included from /usr/include/c++/v1/algorithm:628:
In file included from /usr/include/c++/v1/memory:616:
/usr/include/c++/v1/atomic:1107:13: error: expected ')'
/var/tmp/portage/sys-libs/db-4.8.30-r2/work/db-4.8.30/build_unix/../dist/../dbinc/atomic.h:73:31: note: expanded from macro 'atomic_init'
#define atomic_init(p, val)     ((p)->value = (val))
                                  ^
/usr/include/c++/v1/atomic:1107:1: note: to match this '('
atomic_init(volatile atomic<_Tp>* __o, _Tp __d) _NOEXCEPT
^
/var/tmp/portage/sys-libs/db-4.8.30-r2/work/db-4.8.30/build_unix/../dist/../dbinc/atomic.h:73:30: note: expanded from macro 'atomic_init'
#define atomic_init(p, val)     ((p)->value = (val))
                                 ^
In file included from /var/tmp/portage/sys-libs/db-4.8.30-r2/work/db-4.8.30/build_unix/../dist/../cxx/cxx_db.cpp:13:
In file included from ./db_cxx.h:55:
In file included from /usr/include/c++/v1/iostream:38:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:15:
In file included from /usr/include/c++/v1/string:439:
In file included from /usr/include/c++/v1/algorithm:628:
In file included from /usr/include/c++/v1/memory:616:
/usr/include/c++/v1/atomic:1107:1: error: expected ')'
atomic_init(volatile atomic<_Tp>* __o, _Tp __d) _NOEXCEPT
^
/var/tmp/portage/sys-libs/db-4.8.30-r2/work/db-4.8.30/build_unix/../dist/../dbinc/atomic.h:73:33: note: expanded from macro 'atomic_init'
#define atomic_init(p, val)     ((p)->value = (val))
                                    ^
/usr/include/c++/v1/atomic:1107:1: note: to match this '('
/var/tmp/portage/sys-libs/db-4.8.30-r2/work/db-4.8.30/build_unix/../dist/../dbinc/atomic.h:73:29: note: expanded from macro 'atomic_init'
#define atomic_init(p, val)     ((p)->value = (val))
                                ^
In file included from /var/tmp/portage/sys-libs/db-4.8.30-r2/work/db-4.8.30/build_unix/../dist/../cxx/cxx_db.cpp:13:
In file included from ./db_cxx.h:55:
In file included from /usr/include/c++/v1/iostream:38:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:15:
In file included from /usr/include/c++/v1/string:439:
In file included from /usr/include/c++/v1/algorithm:628:
In file included from /usr/include/c++/v1/memory:616:
/usr/include/c++/v1/atomic:1676:35: error: unknown type name 'atomic_flag'
atomic_flag_test_and_set(volatile atomic_flag* __o) _NOEXCEPT
                                  ^
/usr/include/c++/v1/atomic:1683:26: error: unknown type name 'atomic_flag'
atomic_flag_test_and_set(atomic_flag* __o) _NOEXCEPT
                         ^
/usr/include/c++/v1/atomic:1690:44: error: unknown type name 'atomic_flag'
atomic_flag_test_and_set_explicit(volatile atomic_flag* __o, memory_order __m) _NOEXCEPT
                                           ^
/usr/include/c++/v1/atomic:1697:35: error: unknown type name 'atomic_flag'
atomic_flag_test_and_set_explicit(atomic_flag* __o, memory_order __m) _NOEXCEPT
                                  ^
/usr/include/c++/v1/atomic:1704:28: error: unknown type name 'atomic_flag'
atomic_flag_clear(volatile atomic_flag* __o) _NOEXCEPT
                           ^
/usr/include/c++/v1/atomic:1711:19: error: unknown type name 'atomic_flag'
atomic_flag_clear(atomic_flag* __o) _NOEXCEPT
                  ^
/usr/include/c++/v1/atomic:1718:37: error: unknown type name 'atomic_flag'
atomic_flag_clear_explicit(volatile atomic_flag* __o, memory_order __m) _NOEXCEPT
                                    ^
/usr/include/c++/v1/atomic:1725:28: error: unknown type name 'atomic_flag'
atomic_flag_clear_explicit(atomic_flag* __o, memory_order __m) _NOEXCEPT
                           ^
11 errors generated.
gmake: *** [cxx_db.lo] Error 1
 * ERROR: sys-libs/db-4.8.30-r2::gentoo failed (compile phase):
 *   emake failed
Comment 1 Yuta SATOH 2016-06-18 08:40:11 UTC
I found a fix in FreeBSD ports.
https://svnweb.freebsd.org/ports?view=revision&revision=413084
Comment 2 Alexis Ballier gentoo-dev 2016-09-26 10:39:35 UTC
merged, thx