Closed jamiecollinson closed 3 years ago
Based on this:
/Users/jamie/work/z3/src/sat/smt/user_solver.h:26:11: error: redefinition of 'user' as different kind of symbol
namespace user {
^
/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/sys/user.h:87:8: note: previous definition is here
struct user {
It seems that when you're building for this particular target, z3 ends-up #includ
ing sys/user.h
, which declares a struct user
-- this struct collides with z3's own "user" namespace. My guess is that something else in toolchain brings-in sys/user.h
that doesn't happen "normally" (e.g., a regular x86 build).
At the top-level build folder (i.e., where you ran cmake
), could you run something like:
make src/sat/smt/CMakeFiles/sat_smt.dir/arith_axioms.cpp.i
grep "^#" src/sat/smt/CMakeFiles/sat_smt.dir/arith_axioms.cpp.i | awk '{print $3}' | perl -ne 'print if ++$k{$_}==1'
This should (roughly) allow us to see what chain of includes leads to sys/user.h
.
Hi @andrewvaughanj, and thanks for taking a look. I get the following output:
"/Users/jamie/work/z3/src/sat/smt/arith_axioms.cpp"
"<built-in>"
"<command
"/Users/jamie/work/z3/src/sat/smt/euf_solver.h"
"/Users/jamie/work/z3/src/util/scoped_ptr_vector.h"
"/Users/jamie/work/z3/src/util/vector.h"
"/Users/jamie/work/z3/src/util/debug.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/stdlib.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__config"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/features.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/sys/cdefs.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/android/versioning.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/android/api-level.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/bits/get_device_api_level_inlines.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/android/ndk-version.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/local/include/stdlib.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/stdlib.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/alloca.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/bits/wait.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/linux/wait.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/malloc.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/stddef.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/12.0.5/include/stddef.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/12.0.5/include/__stddef_max_align_t.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__nullptr"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/stdio.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/stdio.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/sys/types.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/stdint.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/12.0.5/include/stdint.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/stdint.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/bits/wchar_limits.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/linux/types.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/i686-linux-android/asm/types.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/asm-generic/types.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/asm-generic/int-ll64.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/i686-linux-android/asm/bitsperlong.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/asm-generic/bitsperlong.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/linux/posix_types.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/linux/stddef.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/linux/compiler_types.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/linux/compiler.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/i686-linux-android/asm/posix_types.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/i686-linux-android/asm/posix_types_32.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/asm-generic/posix_types.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/bits/pthread_types.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/12.0.5/include/stdarg.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/bits/seek_constants.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/bits/struct_file.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/xlocale.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/android/legacy_stdlib_inlines.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/math.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/local/include/math.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/math.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/limits.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/12.0.5/include/limits.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/limits.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/float.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/12.0.5/include/float.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/linux/limits.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/bits/posix_limits.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/type_traits"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/cstddef"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/version"
diagnostic
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/limits"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__undef_macros"
"/Users/jamie/work/z3/src/util/error_codes.h"
"/Users/jamie/work/z3/src/util/warning.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/iostream"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/ios"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/iosfwd"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/wchar.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/local/include/wchar.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/wchar.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/time.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/sys/time.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/linux/time.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/linux/time_types.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/sys/select.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/signal.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/i686-linux-android/asm/sigcontext.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/bits/signal_types.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/linux/signal.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/i686-linux-android/asm/signal.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/asm-generic/signal-defs.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/i686-linux-android/asm/siginfo.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/asm-generic/siginfo.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/bits/timespec.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/sys/ucontext.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/sys/user.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/android/legacy_signal_inlines.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/bits/mbstate_t.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/bits/wctype.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__locale"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/string"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/string_view"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__string"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/algorithm"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/initializer_list"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/cstring"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/string.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/string.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/bits/strcasecmp.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/strings.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/utility"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__tuple"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/cstdint"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__debug"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/memory"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/typeinfo"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/exception"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/cstdlib"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/new"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/iterator"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__functional_base"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/tuple"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/stdexcept"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/atomic"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__threading_support"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/chrono"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/ctime"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/ratio"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/climits"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/errno.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/errno.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/linux/errno.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/i686-linux-android/asm/errno.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/asm-generic/errno.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/asm-generic/errno-base.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/android/legacy_errno_inlines.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/pthread.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/sched.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/linux/sched.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/semaphore.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/functional"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/bit"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/cstdio"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/cwchar"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/cwctype"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/cctype"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/ctype.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/ctype.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/bits/ctype_inlines.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/wctype.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/local/include/wctype.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/wctype.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/mutex"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__mutex_base"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/system_error"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__errc"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/cerrno"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/locale.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/local/include/locale.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/locale.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/support/android/locale_bionic.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/streambuf"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/istream"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/ostream"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/locale"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/cstdarg"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__bsd_locale_fallbacks.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/bitset"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__bit_reference"
"/Users/jamie/work/z3/src/util/memory_manager.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/iomanip"
"/Users/jamie/work/z3/src/util/z3_exception.h"
"/Users/jamie/work/z3/src/util/hash.h"
"/Users/jamie/work/z3/src/util/util.h"
"/Users/jamie/work/z3/src/util/trail.h"
"/Users/jamie/work/z3/src/util/obj_hashtable.h"
"/Users/jamie/work/z3/src/util/hashtable.h"
"/Users/jamie/work/z3/src/util/region.h"
"/Users/jamie/work/z3/src/util/obj_ref.h"
"/Users/jamie/work/z3/src/ast/ast_translation.h"
"/Users/jamie/work/z3/src/ast/ast.h"
"/Users/jamie/work/z3/src/util/buffer.h"
"/Users/jamie/work/z3/src/util/zstring.h"
"/Users/jamie/work/z3/src/util/rational.h"
"/Users/jamie/work/z3/src/util/mpq.h"
"/Users/jamie/work/z3/src/util/mpz.h"
"/Users/jamie/work/z3/src/util/mutex.h"
"/Users/jamie/work/z3/src/util/small_object_allocator.h"
"/Users/jamie/work/z3/src/util/machine.h"
"/Users/jamie/work/z3/src/util/trace.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/fstream"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/filesystem"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/stack"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/deque"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__split_buffer"
"/Users/jamie/work/z3/src/util/scoped_numeral.h"
"/Users/jamie/work/z3/src/util/scoped_numeral_vector.h"
"/Users/jamie/work/z3/src/util/mpn.h"
"/Users/jamie/work/z3/src/util/symbol.h"
"/Users/jamie/work/z3/src/util/tptr.h"
"/Users/jamie/work/z3/src/util/string_buffer.h"
"/Users/jamie/work/z3/src/util/optional.h"
"/Users/jamie/work/z3/src/util/bit_vector.h"
"/Users/jamie/work/z3/src/util/symbol_table.h"
"/Users/jamie/work/z3/src/util/ref_vector.h"
"/Users/jamie/work/z3/src/util/ref.h"
"/Users/jamie/work/z3/src/util/ref_pair_vector.h"
"/Users/jamie/work/z3/src/util/ref_buffer.h"
"/Users/jamie/work/z3/src/util/obj_mark.h"
"/Users/jamie/work/z3/src/util/id_gen.h"
"/Users/jamie/work/z3/src/util/map.h"
"/Users/jamie/work/z3/src/util/parray.h"
"/Users/jamie/work/z3/src/util/dictionary.h"
"/Users/jamie/work/z3/src/util/chashtable.h"
"/Users/jamie/work/z3/src/util/dependency.h"
"/Users/jamie/work/z3/src/util/rlimit.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/variant"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/array"
"/Users/jamie/work/z3/src/ast/euf/euf_egraph.h"
"/Users/jamie/work/z3/src/util/statistics.h"
"/Users/jamie/work/z3/src/util/lbool.h"
"/Users/jamie/work/z3/src/ast/euf/euf_enode.h"
"/Users/jamie/work/z3/src/util/id_var_list.h"
"/Users/jamie/work/z3/src/util/approx_set.h"
"/Users/jamie/work/z3/src/util/sat_literal.h"
"/Users/jamie/work/z3/src/util/uint_set.h"
"/Users/jamie/work/z3/src/ast/euf/euf_justification.h"
"/Users/jamie/work/z3/src/ast/euf/euf_etable.h"
"/Users/jamie/work/z3/src/ast/ast_ll_pp.h"
"/Users/jamie/work/z3/src/ast/rewriter/th_rewriter.h"
"/Users/jamie/work/z3/src/ast/rewriter/rewriter_types.h"
"/Users/jamie/work/z3/src/util/common_msgs.h"
"/Users/jamie/work/z3/src/util/params.h"
"/Users/jamie/work/z3/src/util/cmd_context_types.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/sstream"
"/Users/jamie/work/z3/src/tactic/model_converter.h"
"/Users/jamie/work/z3/src/ast/ast_pp_util.h"
"/Users/jamie/work/z3/src/ast/decl_collector.h"
"/Users/jamie/work/z3/src/util/top_sort.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/memory.h"
"/Users/jamie/work/z3/src/ast/datatype_decl_plugin.h"
"/Users/jamie/work/z3/src/ast/ast_smt2_pp.h"
"/Users/jamie/work/z3/src/ast/format.h"
"/Users/jamie/work/z3/src/ast/arith_decl_plugin.h"
"/Users/jamie/work/z3/src/ast/bv_decl_plugin.h"
"/Users/jamie/work/z3/src/ast/array_decl_plugin.h"
"/Users/jamie/work/z3/src/ast/fpa_decl_plugin.h"
"/Users/jamie/work/z3/src/util/mpf.h"
"/Users/jamie/work/z3/src/ast/dl_decl_plugin.h"
"/Users/jamie/work/z3/src/ast/seq_decl_plugin.h"
"/Users/jamie/work/z3/src/ast/char_decl_plugin.h"
"/Users/jamie/work/z3/src/ast/ast_smt_pp.h"
"/Users/jamie/work/z3/src/util/smt2_util.h"
"/Users/jamie/work/z3/src/model/model.h"
"/Users/jamie/work/z3/src/util/plugin_manager.h"
"/Users/jamie/work/z3/src/model/model_core.h"
"/Users/jamie/work/z3/src/model/func_interp.h"
"/Users/jamie/work/z3/src/model/model_evaluator.h"
"/Users/jamie/work/z3/src/model/value_factory.h"
"/Users/jamie/work/z3/src/tactic/converter.h"
"/Users/jamie/work/z3/src/sat/sat_extension.h"
"/Users/jamie/work/z3/src/sat/sat_types.h"
"/Users/jamie/work/z3/src/util/stopwatch.h"
"/Users/jamie/work/z3/src/sat/smt/atom2bool_var.h"
"/Users/jamie/work/z3/src/ast/expr2var.h"
"/Users/jamie/work/z3/src/sat/smt/sat_th.h"
"/Users/jamie/work/z3/src/sat/smt/sat_smt.h"
"/Users/jamie/work/z3/src/ast/ast_pp.h"
"/Users/jamie/work/z3/src/sat/sat_solver.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/cmath"
"/Users/jamie/work/z3/src/util/var_queue.h"
"/Users/jamie/work/z3/src/util/heap.h"
"/Users/jamie/work/z3/src/util/ema.h"
"/Users/jamie/work/z3/src/util/scoped_limit_trail.h"
"/Users/jamie/work/z3/src/sat/sat_clause.h"
"/Users/jamie/work/z3/src/sat/sat_allocator.h"
"/Users/jamie/work/z3/src/sat/sat_watched.h"
"/Users/jamie/work/z3/src/sat/sat_justification.h"
"/Users/jamie/work/z3/src/sat/sat_config.h"
"/Users/jamie/work/z3/src/sat/sat_cleaner.h"
"/Users/jamie/work/z3/src/sat/sat_simplifier.h"
"/Users/jamie/work/z3/src/sat/sat_clause_set.h"
"/Users/jamie/work/z3/src/sat/sat_clause_use_list.h"
"/Users/jamie/work/z3/src/sat/sat_model_converter.h"
"/Users/jamie/work/z3/src/sat/sat_scc.h"
"/Users/jamie/work/z3/src/sat/sat_big.h"
"/Users/jamie/work/z3/src/sat/sat_asymm_branch.h"
"/Users/jamie/work/z3/src/sat/sat_cut_simplifier.h"
"/Users/jamie/work/z3/src/util/union_find.h"
"/Users/jamie/work/z3/src/sat/sat_aig_finder.h"
"/Users/jamie/work/z3/src/sat/sat_aig_cuts.h"
"/Users/jamie/work/z3/src/sat/sat_cutset.h"
"/Users/jamie/work/z3/src/sat/sat_probing.h"
"/Users/jamie/work/z3/src/sat/sat_mus.h"
"/Users/jamie/work/z3/src/sat/sat_binspr.h"
"/Users/jamie/work/z3/src/sat/sat_drat.h"
"/Users/jamie/work/z3/src/sat/sat_parallel.h"
"/Users/jamie/work/z3/src/sat/sat_local_search.h"
"/Users/jamie/work/z3/src/sat/sat_solver_core.h"
"/Users/jamie/work/z3/src/sat/smt/sat_internalizer.h"
"/Users/jamie/work/z3/src/smt/params/smt_params.h"
"/Users/jamie/work/z3/src/smt/params/dyn_ack_params.h"
"/Users/jamie/work/z3/src/smt/params/qi_params.h"
"/Users/jamie/work/z3/src/smt/params/theory_arith_params.h"
"/Users/jamie/work/z3/src/smt/params/theory_array_params.h"
"/Users/jamie/work/z3/src/smt/params/theory_bv_params.h"
"/Users/jamie/work/z3/src/smt/params/theory_str_params.h"
"/Users/jamie/work/z3/src/smt/params/theory_seq_params.h"
"/Users/jamie/work/z3/src/smt/params/theory_pb_params.h"
"/Users/jamie/work/z3/src/smt/params/theory_datatype_params.h"
"/Users/jamie/work/z3/build/x86/src/smt/params/smt_params_helper.hpp"
"/Users/jamie/work/z3/src/util/gparams.h"
"/Users/jamie/work/z3/src/smt/params/preprocessor_params.h"
"/Users/jamie/work/z3/src/params/pattern_inference_params.h"
"/Users/jamie/work/z3/src/params/bit_blaster_params.h"
"/Users/jamie/work/z3/src/params/context_params.h"
"/Users/jamie/work/z3/src/sat/smt/sat_dual_solver.h"
"/Users/jamie/work/z3/src/util/lim_vector.h"
"/Users/jamie/work/z3/src/sat/smt/euf_ackerman.h"
"/Users/jamie/work/z3/src/util/dlist.h"
"/Users/jamie/work/z3/src/sat/smt/user_solver.h"
"/Users/jamie/work/z3/src/solver/solver.h"
"/Users/jamie/work/z3/src/solver/check_sat_result.h"
"/Users/jamie/work/z3/src/util/event_handler.h"
"/Users/jamie/work/z3/src/util/timer.h"
"/Users/jamie/work/z3/src/solver/progress_callback.h"
"/Users/jamie/work/z3/src/sat/smt/arith_solver.h"
"/Users/jamie/work/z3/src/util/obj_pair_set.h"
"/Users/jamie/work/z3/src/ast/ast_trail.h"
"/Users/jamie/work/z3/src/math/lp/lp_solver.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/unordered_map"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__hash_table"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__node_handle"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/optional"
"/Users/jamie/work/z3/src/math/lp/lp_settings.h"
"/Users/jamie/work/z3/src/math/lp/lp_utils.h"
"/Users/jamie/work/z3/src/math/lp/numeric_pair.h"
"/Users/jamie/work/z3/src/util/sstream.h"
"/Users/jamie/work/z3/src/math/lp/lp_types.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/unordered_set"
"/Users/jamie/work/z3/src/math/lp/column_info.h"
"/Users/jamie/work/z3/src/math/lp/static_matrix.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/set"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/__tree"
"/Users/jamie/work/z3/src/math/lp/sparse_vector.h"
"/Users/jamie/work/z3/src/math/lp/indexed_vector.h"
"/Users/jamie/work/z3/src/math/lp/permutation_matrix.h"
"/Users/jamie/work/z3/src/math/lp/matrix.h"
"/Users/jamie/work/z3/src/math/lp/tail_matrix.h"
"/Users/jamie/work/z3/src/math/lp/lp_core_solver_base.h"
"/Users/jamie/work/z3/src/math/lp/core_solver_pretty_printer.h"
"/Users/jamie/work/z3/src/math/lp/lu.h"
"/Users/jamie/work/z3/src/math/lp/square_sparse_matrix.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/queue"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/vector"
"/Users/jamie/work/z3/src/math/lp/indexed_value.h"
"/Users/jamie/work/z3/src/math/lp/eta_matrix.h"
"/Users/jamie/work/z3/src/math/lp/binary_heap_upair_queue.h"
"/Users/jamie/work/z3/src/math/lp/binary_heap_priority_queue.h"
"/Users/jamie/work/z3/src/math/lp/u_set.h"
"/Users/jamie/work/z3/src/math/lp/row_eta_matrix.h"
"/Users/jamie/work/z3/src/math/lp/square_dense_submatrix.h"
"/Users/jamie/work/z3/src/math/lp/dense_matrix.h"
"/Users/jamie/work/z3/src/math/lp/column_namer.h"
"/Users/jamie/work/z3/src/math/lp/scaler.h"
"/Users/jamie/work/z3/src/math/lp/bound_analyzer_on_row.h"
"/Users/jamie/work/z3/src/math/lp/implied_bound.h"
"/Users/jamie/work/z3/src/math/lp/lar_constraints.h"
"/Users/jamie/work/z3/src/util/stacked_value.h"
"/Users/jamie/work/z3/src/math/lp/ul_pair.h"
"/Users/jamie/work/z3/src/math/lp/lar_term.h"
"/Users/jamie/work/z3/src/math/lp/test_bound_analyzer.h"
"/Users/jamie/work/z3/src/math/lp/lp_primal_simplex.h"
"/Users/jamie/work/z3/src/math/lp/lp_primal_core_solver.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/list"
"/Users/jamie/work/z3/src/math/lp/breakpoint.h"
"/Users/jamie/work/z3/src/math/lp/lp_dual_simplex.h"
"/Users/jamie/work/z3/src/math/lp/lp_dual_core_solver.h"
"/Users/jamie/work/z3/src/math/lp/lar_solver.h"
"/Users/jamie/work/z3/src/math/lp/lar_core_solver.h"
"/Users/jamie/work/z3/src/math/lp/stacked_vector.h"
"/Users/jamie/work/z3/src/math/lp/lar_solution_signature.h"
"/Users/jamie/work/z3/src/math/lp/random_updater.h"
"/Users/jamie/work/z3/src/math/lp/conversion_helper.h"
"/Users/jamie/work/z3/src/math/lp/int_solver.h"
"/Users/jamie/work/z3/src/math/lp/hnf_cutter.h"
"/Users/jamie/work/z3/src/math/lp/hnf.h"
"/Users/jamie/work/z3/src/util/ext_gcd.h"
"/Users/jamie/work/z3/src/math/lp/general_matrix.h"
"/Users/jamie/work/z3/src/math/lp/var_register.h"
"/Users/jamie/work/z3/src/math/lp/lia_move.h"
"/Users/jamie/work/z3/src/math/lp/explanation.h"
"/Users/jamie/work/z3/src/math/lp/int_gcd_test.h"
"/Users/jamie/work/z3/src/math/lp/nra_solver.h"
"/Users/jamie/work/z3/src/nlsat/nlsat_solver.h"
"/Users/jamie/work/z3/src/nlsat/nlsat_types.h"
"/Users/jamie/work/z3/src/math/polynomial/polynomial.h"
"/Users/jamie/work/z3/src/util/mpbqi.h"
"/Users/jamie/work/z3/src/util/mpbq.h"
"/Users/jamie/work/z3/src/util/basic_interval.h"
"/Users/jamie/work/z3/src/util/sign.h"
"/Users/jamie/work/z3/src/math/lp/lp_bound_propagator.h"
"/Users/jamie/work/z3/src/math/lp/nla_solver.h"
"/Users/jamie/work/z3/src/math/lp/monic.h"
"/Users/jamie/work/z3/src/math/lp/nla_defs.h"
"/Users/jamie/work/z3/src/math/lp/nla_settings.h"
"/Users/jamie/work/z3/src/math/lp/nla_core.h"
"/Users/jamie/work/z3/src/math/lp/factorization.h"
"/Users/jamie/work/z3/src/math/lp/var_eqs.h"
"/Users/jamie/work/z3/src/math/lp/incremental_vector.h"
"/Users/jamie/work/z3/src/math/lp/nla_tangent_lemmas.h"
"/Users/jamie/work/z3/src/math/lp/nla_common.h"
"/Users/jamie/work/z3/src/math/lp/emonics.h"
"/Users/jamie/work/z3/src/math/lp/nex_creator.h"
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/map"
"/Users/jamie/work/z3/src/math/lp/nex.h"
"/Users/jamie/work/z3/src/math/lp/nla_basics_lemmas.h"
"/Users/jamie/work/z3/src/math/lp/nla_order_lemmas.h"
"/Users/jamie/work/z3/src/math/lp/nla_monotone_lemmas.h"
"/Users/jamie/work/z3/src/math/lp/horner.h"
"/Users/jamie/work/z3/src/math/lp/nla_intervals.h"
"/Users/jamie/work/z3/src/math/interval/interval.h"
"/Users/jamie/work/z3/src/util/ext_numeral.h"
"/Users/jamie/work/z3/src/math/interval/dep_intervals.h"
"/Users/jamie/work/z3/src/math/lp/cross_nested.h"
"/Users/jamie/work/z3/src/math/lp/monomial_bounds.h"
"/Users/jamie/work/z3/src/math/grobner/pdd_solver.h"
"/Users/jamie/work/z3/src/math/dd/dd_pdd.h"
"/Users/jamie/work/z3/src/math/lp/lp_api.h"
"/Users/jamie/work/z3/src/util/inf_rational.h"
"/Users/jamie/work/z3/src/math/polynomial/algebraic_numbers.h"
Which grepping for user
shows:
"/Users/jamie/Library/Android/sdk/ndk/23.0.7599858/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/sys/user.h"
"/Users/jamie/work/z3/src/sat/smt/user_solver.h"
So I'd guess your hunch is right re: user.h
, and hopefully all the other errors cascade from that.
Any pointers on what I can do to investigate further / fix? I'm definitely out of my depth here so all help appreciated :-)
So, a brief look at this suggests that signal.h
(in android-ndk-r23
) brings in ucontext.h
(which then brings-in its sys
version), which brings in sys/user.h
. If you go higher-up, iostream
under (e.g.,) i686-linux-android30-clang++
brings in sys/user.h
(via signal.h
).
I opened #5587 to try and fix this for you.
Worked perfectly, and I've built all my desired targets (arm64-v8a
, armeabi-v7a
, x86
and x86_64
) with android-ndk-r23
so fairly confident that'll resolve it for anyone looking to build for other targets too.
Thanks - assistance much appreciated and if there's anything else Android related I can do to help the project let me know.
For catching any regressions at build time you are invited to add pipeline definitions to either our GitHub Actions or CI/Nightly Azure pipelines.
@NikolajBjorner I was thinking about doing that, as it wouldn't be a big step from the build script I've created (linked in first post). What would be best, I'm guessing Azure pipelines since that's where the other binary builds are happening?
I just looked at the script. It looks like it is mainly about ensuring that the VM has pulls the right SDK (apt-get).
Azure pipelines have more features but are heavier to dance with. Github action are more modular and can be run on every build. How about creating a github action and I can take it from there?
It is something like
name: Android Build
on:
push:
branches: [ master ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE= ${{env.BUILD_TYPE}} -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION=21 -DCMAKE_ANDROID_ARCH_ABI=$androidABI -DCMAKE_ANDROID_NDK=$NDK -DZ3_BUILD_JAVA_BINDINGS=TRUE -G "Unix Makefiles" -DJAVA_AWT_LIBRARY=NotNeeded -DJAVA_JVM_LIBRARY=NotNeeded -DJAVA_INCLUDE_PATH2=NotNeeded -DJAVA_AWT_INCLUDE_PATH=NotNeeded ../../
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Clone z3test
run: git clone https://github.com/z3prover/z3test z3test
- name: Run regressions
run: python z3test/scripts/test_benchmarks.py build/z3 z3test/regressions/smt2
where you have to replace $androidAPI with something like with ${{ }}
and set up a matrix (not in this script, but it seems to be
matrix:
target: [arm64-v8a, armeabi-v7a, x86, x86_64t]
Of course it takes up some time to write and test this script.
Leave it with me and I'll take a look. I know Azure pipelines have an instance with NDK already installed (not sure if Github actions do) but I'll start with GitHub actions as I've more experience with them.
I'm trying to build Z3 with java bindings for use in an Android project. I've successfully compiled for
arm64-v8a
with the cmake config in this script, but when I try for other targets (I'd ideally likearmeabi-v7a
,x86
andx86_64
so that I can build the project for all common Android devices) I get the following errors, apologies for long log, thought it would probably be helpful:I'm very rusty on C++ so was hoping someone might have some pointers - should I just be tweaking the
CMAKE_CXX_FLAGS
to change-Werror
config, or is this something more problematic I'm missing?