Hi everyone,
I am experiencing compilation errors.
herzc@54ee75c68e2e ~/D/S4D> /Library/Developer/CommandLineTools/usr/bin/gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
cmake version 3.18.1
Here some preview of the error messages:
/usr/local/include/stdlib.h:141:26: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
void *bsearch(const void *__key, const void *__base, size_t __nel,
^
/usr/local/include/stdlib.h:141:26: note: insert '_Nullable' if the pointer may be null
void *bsearch(const void *__key, const void *__base, size_t __nel,
^
_Nullable
/usr/local/include/stdlib.h:141:26: note: insert '_Nonnull' if the pointer should never be null
void *bsearch(const void *__key, const void *__base, size_t __nel,
^
_Nonnull
/usr/local/include/stdlib.h:141:45: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
void *bsearch(const void *__key, const void *__base, size_t __nel,
^
/usr/local/include/stdlib.h:141:45: note: insert '_Nullable' if the pointer may be null
void *bsearch(const void *__key, const void *__base, size_t __nel,
^
_Nullable
/usr/local/include/stdlib.h:141:45: note: insert '_Nonnull' if the pointer should never be null
void *bsearch(const void *__key, const void *__base, size_t __nel,
^
_Nonnull
fatal error: too many errors emitted, stopping now [-ferror-limit=]
I uploaded a gist here https://gist.github.com/che85/9cec7d8e0b2a4ada61ff553e51f3c567
Does anyone know how to fix these issues? I haven’t seen any recent changes which could have affected the build process and even tried older versions.