Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

libdb won't build with Apple Clang 9.1 and 10

27187a6b-61a2-4b55-957b-b1350c96ccc2Jul 27 2019 — edited Jul 27 2019

Hi!

I'm trying to build libdb on Linux and MacOS. So far, so good, it works well on Linux, however, on OSX there are two configurations which are not possible:

libdb version: 6.2.32

OS: OSX 10.3

Compiler: Apple Clang 9.1

Build Type: Release

How to reproduce my steps:

- Download libdb 6.2.32

- ./configure

- make

There are many errors involving **atomic_flag**, for instance:

/Applications/Xcode-9.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/atomic:1782:35: error: unknown type name 'atomic_flag'

atomic_flag_test_and_set_explicit(atomic_flag* __o, memory_order __m) _NOEXCEP

The full log can be obtained here: https://travis-ci.com/bincrafters/conan-libdb/jobs/215894032#L3774

libdb is supported by Apple Clang 9.1 and 10? If not, is there a patch to fix this?

Regards!

Comments
Post Details
Added on Jul 27 2019
0 comments
320 views