Forum Stats

  • 3,826,336 Users
  • 2,260,627 Discussions
  • 7,896,903 Comments

Discussions

libdb won't build with Apple Clang 9.1 and 10

27187a6b-61a2-4b55-957b-b1350c96ccc2
edited Jul 27, 2019 9:22AM in Berkeley DB

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!