mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Compiling bdb with clang-16 on aarch64 (hardware) currently fails:
```bash
make -C depends/ bdb CC=clang CXX=clang++
...
checking for mutexes... UNIX/fcntl
configure: WARNING: NO SHARED LATCH IMPLEMENTATION FOUND FOR THIS PLATFORM.
configure: error: Unable to find a mutex implementation
```
Looking at config.log we've got:
```bash
configure:18704: checking for mutexes
configure:18815: clang -o conftest -pipe -std=c11 -O2 -Wno-error=implicit-function-declaration -Wno-error=format-security -I/bitcoin/depends/aarch64-unknown-linux-gnu/include -D_GNU_SOURCE -D_REENTRANT -L/bitcoin/depends/aarch64-unknown-linux-gnu/lib conftest.c -lpthread >&5
conftest.c:45:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
main() {
^
int
conftest.c:50:2: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
exit (
^
conftest.c:50:2: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
1 warning and 1 error generated.
```
Clang-16 changed `-Wimplicit-function-declaration` and `-Wimplicit-int`
warnings into errors, see:
https://releases.llvm.org/16.0.0/tools/clang/docs/ReleaseNotes.html#potentially-breaking-changes.
> The -Wimplicit-function-declaration and -Wimplicit-int warnings now
> default to an error in C99, C11, and C17. As of C2x, support for implicit
> function declarations and implicit int has been removed, and the
> warning options will have no effect. Specifying -Wimplicit-int in
> C89 mode will now issue warnings instead of being a noop.
Github-Pull: #27462
Rebased-From:
|
||
|---|---|---|
| .. | ||
| bdb.mk | ||
| boost.mk | ||
| capnp.mk | ||
| expat.mk | ||
| fontconfig.mk | ||
| freetype.mk | ||
| libevent.mk | ||
| libmultiprocess.mk | ||
| libnatpmp.mk | ||
| libXau.mk | ||
| libxcb.mk | ||
| libxcb_util.mk | ||
| libxcb_util_image.mk | ||
| libxcb_util_keysyms.mk | ||
| libxcb_util_render.mk | ||
| libxcb_util_wm.mk | ||
| libxkbcommon.mk | ||
| miniupnpc.mk | ||
| native_capnp.mk | ||
| native_cctools.mk | ||
| native_clang.mk | ||
| native_ds_store.mk | ||
| native_libdmg-hfsplus.mk | ||
| native_libmultiprocess.mk | ||
| native_libtapi.mk | ||
| native_mac_alias.mk | ||
| packages.mk | ||
| qrencode.mk | ||
| qt.mk | ||
| sqlite.mk | ||
| systemtap.mk | ||
| xcb_proto.mk | ||
| xproto.mk | ||
| zeromq.mk | ||