vst3sdk icon indicating copy to clipboard operation
vst3sdk copied to clipboard

3.7.4_build_25: Fails to build: unknown type name '_Bool'

Open yurivict opened this issue 3 years ago • 1 comments

clang-12 fails to build it:

In file included from /disk-samsung/freebsd-ports/audio/vst3sdk/work/vst3sdk-3.7.4_build_25/pluginterfaces/base/funknown.cpp:59:
/usr/include/stdatomic.h:186:17: error: unknown type name '_Bool'
typedef _Atomic(_Bool)                  atomic_bool;
                ^
/usr/include/stdatomic.h:186:26: error: C++ requires a type specifier for all declarations
typedef _Atomic(_Bool)                  atomic_bool;
~~~~~~~                                 ^
/usr/include/stdatomic.h:378:17: error: unknown type name '_Bool'
static __inline _Bool
                ^
/usr/include/stdatomic.h:382:10: error: address argument to atomic operation must be a pointer to _Atomic type ('volatile atomic_bool *' (aka 'volatile int *') invalid)
        return (atomic_exchange_explicit(&__object->__flag, 1, __order));
                ^                        ~~~~~~~~~~~~~~~~~
/usr/include/stdatomic.h:242:2: note: expanded from macro 'atomic_exchange_explicit'
        __c11_atomic_exchange(object, desired, order)
        ^                     ~~~~~~
/usr/include/stdatomic.h:389:2: error: address argument to atomic operation must be a pointer to _Atomic type ('volatile atomic_bool *' (aka 'volatile int *') invalid)
        atomic_store_explicit(&__object->__flag, 0, __order);
        ^                     ~~~~~~~~~~~~~~~~~
/usr/include/stdatomic.h:256:2: note: expanded from macro 'atomic_store_explicit'
        __c11_atomic_store(object, desired, order)
        ^                  ~~~~~~
/usr/include/stdatomic.h:393:17: error: unknown type name '_Bool'
static __inline _Bool
                ^
6 errors generated.

OS: FreeBSD 13

yurivict avatar Jan 02 '22 17:01 yurivict

It looks more like a toolchain problem on FreeBSD 13 with clang 12. stdatomic.h is a standard library header, see https://en.cppreference.com/w/cpp/header/stdatomic.h

scheffle avatar Jan 25 '22 06:01 scheffle

Should be fixed with the version 3.7.5.

scheffle avatar Aug 29 '22 13:08 scheffle