../Tools/autotest/sim_vehicle.py

SIM_VEHICLE: Start
SIM_VEHICLE: Killing tasks
SIM_VEHICLE: Starting up at SITL location
SIM_VEHICLE: WAF build
SIM_VEHICLE: Configure waf
SIM_VEHICLE: “/Users/ahmedhatem/Desktop/ardupilot/modules/waf/waf-light” “configure” “–board” “sitl”
Setting top to : /Users/ahmedhatem/Desktop/ardupilot
Setting out to : /Users/ahmedhatem/Desktop/ardupilot/build
Autoconfiguration : enabled
Setting board to : sitl
Using toolchain : native
Checking for ‘g++’ (C++ compiler) : not found
Checking for ‘clang++’ (C++ compiler) : /usr/bin/clang++
Checking for ‘gcc’ (C compiler) : not found
Checking for ‘clang’ (C compiler) : /usr/bin/clang
Checking for c flags ‘-MMD’ : yes
Checking for cxx flags ‘-MMD’ : yes
CXX Compiler : clang++ 14.0.0
Checking for feenableexcept : no
Disabling SLP for clang++
Checking for HAVE_CMATH_ISFINITE : no
Checking for HAVE_CMATH_ISINF : no
Checking for HAVE_CMATH_ISNAN : no
Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : no
Checking for NEED_CMATH_ISINF_STD_NAMESPACE : no
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE : no
Checking for header endian.h : not found
Checking for header byteswap.h : not found
Checking for HAVE_MEMRCHR : no
Checking for program ‘python’ : /usr/local/bin/python
Checking for python version >= 2.7.0 : 3.7.9
Checking for program ‘python’ : /usr/local/bin/python
Checking for python version >= 2.7.0 : 3.7.9
Source is git repository : yes
Update submodules : yes
Checking for program ‘git’ : /usr/bin/git
Checking for program ‘size’ : /usr/bin/size
Benchmarks : disabled
Unit tests : enabled
Scripting : enabled
Scripting runtime checks : enabled
Debug build : disabled
Coverage build : disabled
Checking for program ‘rsync’ : /usr/bin/rsync
‘configure’ finished successfully (2.367s)
SIM_VEHICLE: Building
SIM_VEHICLE: “/Users/ahmedhatem/Desktop/ardupilot/modules/waf/waf-light” “build” “–target” “bin/arduplane”
Waf: Entering directory `/Users/ahmedhatem/Desktop/ardupilot/build/sitl’
Embedding file locations.txt:Tools/autotest/locations.txt
Embedding file models/Callisto.json:Tools/autotest/models/Callisto.json
[3/6] Compiling libraries/AP_Scripting/generator/src/main.c
In file included from …/…/libraries/AP_Scripting/generator/src/main.c:1:
In file included from /usr/local/include/stdio.h:64:
/usr/local/include/_stdio.h:93:16: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
unsigned char *_base;
^
/usr/local/include/_stdio.h:93:16: note: insert ‘_Nullable’ if the pointer may be null
unsigned char *_base;
^
_Nullable
/usr/local/include/_stdio.h:93:16: note: insert ‘_Nonnull’ if the pointer should never be null
unsigned char _base;
^
_Nonnull
/usr/local/include/_stdio.h:138:32: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
int (
_Nullable _read) (void *, char , int);
^
/usr/local/include/_stdio.h:138:32: note: insert ‘_Nullable’ if the pointer may be null
int (
_Nullable _read) (void *, char , int);
^
_Nullable
/usr/local/include/_stdio.h:138:32: note: insert ‘_Nonnull’ if the pointer should never be null
int (
_Nullable _read) (void *, char , int);
^
_Nonnull
/usr/local/include/_stdio.h:138:40: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
int (
_Nullable _read) (void *, char , int);
^
/usr/local/include/_stdio.h:138:40: note: insert ‘_Nullable’ if the pointer may be null
int (
_Nullable _read) (void *, char , int);
^
_Nullable
/usr/local/include/_stdio.h:138:40: note: insert ‘_Nonnull’ if the pointer should never be null
int (
_Nullable _read) (void *, char , int);
^
_Nonnull
/usr/local/include/_stdio.h:139:35: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
fpos_t (
_Nullable _seek) (void , fpos_t, int);
^
/usr/local/include/_stdio.h:139:35: note: insert ‘_Nullable’ if the pointer may be null
fpos_t (
_Nullable _seek) (void , fpos_t, int);
^
_Nullable
/usr/local/include/_stdio.h:139:35: note: insert ‘_Nonnull’ if the pointer should never be null
fpos_t (
_Nullable _seek) (void , fpos_t, int);
^
_Nonnull
/usr/local/include/_stdio.h:140:32: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
int (
_Nullable _write)(void *, const char , int);
^
/usr/local/include/_stdio.h:140:32: note: insert ‘_Nullable’ if the pointer may be null
int (
_Nullable _write)(void *, const char , int);
^
_Nullable
/usr/local/include/_stdio.h:140:32: note: insert ‘_Nonnull’ if the pointer should never be null
int (
_Nullable _write)(void *, const char , int);
^
_Nonnull
/usr/local/include/_stdio.h:140:46: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
int (
_Nullable _write)(void *, const char , int);
^
/usr/local/include/_stdio.h:140:46: note: insert ‘_Nullable’ if the pointer may be null
int (
_Nullable _write)(void *, const char , int);
^
_Nullable
/usr/local/include/_stdio.h:140:46: note: insert ‘_Nonnull’ if the pointer should never be null
int (
_Nullable _write)(void *, const char *, int);
^
_Nonnull
/usr/local/include/_stdio.h:144:18: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
struct __sFILEX _extra; / additions to FILE to not break ABI */
^
/usr/local/include/_stdio.h:144:18: note: insert ‘_Nullable’ if the pointer may be null
struct __sFILEX _extra; / additions to FILE to not break ABI */
^
_Nullable
/usr/local/include/_stdio.h:144:18: note: insert ‘_Nonnull’ if the pointer should never be null
struct __sFILEX _extra; / additions to FILE to not break ABI */
^
_Nonnull
In file included from …/…/libraries/AP_Scripting/generator/src/main.c:1:
/usr/local/include/stdio.h:67:13: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
extern FILE *__stdinp;
^
/usr/local/include/stdio.h:67:13: note: insert ‘_Nullable’ if the pointer may be null
extern FILE *__stdinp;
^
_Nullable
/usr/local/include/stdio.h:67:13: note: insert ‘_Nonnull’ if the pointer should never be null
extern FILE __stdinp;
^
_Nonnull
/usr/local/include/stdio.h:395:41: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
int (
_Nullable)(void *, const char , int),
^
/usr/local/include/stdio.h:395:41: note: insert ‘_Nullable’ if the pointer may be null
int (
_Nullable)(void *, const char , int),
^
_Nullable
/usr/local/include/stdio.h:395:41: note: insert ‘_Nonnull’ if the pointer should never be null
int (
_Nullable)(void *, const char , int),
^
_Nonnull
/usr/local/include/stdio.h:395:55: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
int (
_Nullable)(void *, const char , int),
^
/usr/local/include/stdio.h:395:55: note: insert ‘_Nullable’ if the pointer may be null
int (
_Nullable)(void *, const char , int),
^
_Nullable
/usr/local/include/stdio.h:395:55: note: insert ‘_Nonnull’ if the pointer should never be null
int (
_Nullable)(void *, const char , int),
^
_Nonnull
/usr/local/include/stdio.h:396:44: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
fpos_t (
_Nullable)(void , fpos_t, int),
^
/usr/local/include/stdio.h:396:44: note: insert ‘_Nullable’ if the pointer may be null
fpos_t (
_Nullable)(void , fpos_t, int),
^
_Nullable
/usr/local/include/stdio.h:396:44: note: insert ‘_Nonnull’ if the pointer should never be null
fpos_t (
_Nullable)(void , fpos_t, int),
^
_Nonnull
/usr/local/include/stdio.h:397:41: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
int (
_Nullable)(void ));
^
/usr/local/include/stdio.h:397:41: note: insert ‘_Nullable’ if the pointer may be null
int (
_Nullable)(void ));
^
_Nullable
/usr/local/include/stdio.h:397:41: note: insert ‘_Nonnull’ if the pointer should never be null
int (
_Nullable)(void *));
^
_Nonnull
/usr/local/include/stdio.h:393:6: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
FILE *funopen(const void *,
^
/usr/local/include/stdio.h:393:6: note: insert ‘_Nullable’ if the pointer may be null
FILE *funopen(const void *,
^
_Nullable
/usr/local/include/stdio.h:393:6: note: insert ‘_Nonnull’ if the pointer should never be null
FILE *funopen(const void *,
^
_Nonnull
In file included from …/…/libraries/AP_Scripting/generator/src/main.c:2:
/usr/local/include/stdlib.h:134:25: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
double atof(const char *);
^
/usr/local/include/stdlib.h:134:25: note: insert ‘_Nullable’ if the pointer may be null
double atof(const char *);
^
_Nullable
/usr/local/include/stdlib.h:134:25: note: insert ‘_Nonnull’ if the pointer should never be null
double atof(const char *);
^
_Nonnull
/usr/local/include/stdlib.h:135:22: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
int atoi(const char *);
^
/usr/local/include/stdlib.h:135:22: note: insert ‘_Nullable’ if the pointer may be null
int atoi(const char *);
^
_Nullable
/usr/local/include/stdlib.h:135:22: note: insert ‘_Nonnull’ if the pointer should never be null
int atoi(const char *);
^
_Nonnull
/usr/local/include/stdlib.h:136:23: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
long atol(const char *);
^
/usr/local/include/stdlib.h:136:23: note: insert ‘_Nullable’ if the pointer may be null
long atol(const char *);
^
_Nullable
/usr/local/include/stdlib.h:136:23: note: insert ‘_Nonnull’ if the pointer should never be null
long atol(const char *);
^
_Nonnull
/usr/local/include/stdlib.h:139:20: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
atoll(const char *);
^
/usr/local/include/stdlib.h:139:20: note: insert ‘_Nullable’ if the pointer may be null
atoll(const char *);
^
_Nullable
/usr/local/include/stdlib.h:139:20: note: insert ‘_Nonnull’ if the pointer should never be null
atoll(const char *);
^
_Nonnull
/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=]
20 errors generated.

Waf: Leaving directory `/Users/ahmedhatem/Desktop/ardupilot/build/sitl’
Build failed
→ task in ‘/Users/ahmedhatem/Desktop/ardupilot/build/sitl/gen-bindings’ failed (exit status 1):
{task 140475906720208: /Users/ahmedhatem/Desktop/ardupilot/build/sitl/gen-bindings main.c → gen-bindings}
(run with -v to display more information)
SIM_VEHICLE: Build failed
SIM_VEHICLE: Killing tasks

Have you run git submodule command and environment setup script?

yes i’ve tried it multiple times

Checking for HAVE_CMATH_ISFINITE : no
Checking for HAVE_CMATH_ISINF : no
Checking for HAVE_CMATH_ISNAN : no
Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : no
Checking for NEED_CMATH_ISINF_STD_NAMESPACE : no
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE : no

do you have any idea why it cant check for those?

Really not aware of it… sorry… but take a look if you are using Python 3 instead of Python 2, I had some troubles with this a long time ago.