Cargo build failed due to clang interaction with rusqlite's libsqlite3-sys #182
Labels
No labels
A-build
A-cli
A-core
A-design
A-edn
A-ffi
A-query
A-sdk
A-sdk-android
A-sdk-ios
A-sync
A-transact
A-views
A-vocab
P-Android
P-desktop
P-iOS
bug
correctness
dependencies
dev-ergonomics
discussion
documentation
duplicate
enhancement
enquiry
good first bug
good first issue
help wanted
hygiene
in progress
invalid
question
ready
size
speed
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: greg/mentat#182
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
failed to run custom build command for
libsqlite3-sys v0.8.1
--- stdout
TARGET = Some("x86_64-apple-darwin")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-apple-darwin")
HOST = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
HOST = Some("x86_64-apple-darwin")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
HOST_CC = None
CC = None
HOST = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
HOST = Some("x86_64-apple-darwin")
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-DSQLITE_CORE" "-DSQLITE_DEFAULT_FOREIGN_KEYS=1" "-DSQLITE_ENABLE_API_ARMOR" "-DSQLITE_ENABLE_COLUMN_METADATA" "-DSQLITE_ENABLE_DBSTAT_VTAB" "-DSQLITE_ENABLE_FTS3" "-DSQLITE_ENABLE_FTS3_PARENTHESIS" "-DSQLITE_ENABLE_FTS5" "-DSQLITE_ENABLE_JSON1" "-DSQLITE_ENABLE_LOAD_EXTENSION=1" "-DSQLITE_ENABLE_MEMORY_MANAGEMENT" "-DSQLITE_ENABLE_RTREE" "-DSQLITE_ENABLE_STAT2" "-DSQLITE_ENABLE_STAT4" "-DSQLITE_HAVE_ISNAN" "-DSQLITE_SOUNDEX" "-DSQLITE_THREADSAFE=1" "-DSQLITE_USE_URI" "-DHAVE_USLEEP=1" "-Wall" "-Wextra" "-o" "../mentat/target/debug/build/libsqlite3-sys-a1f16be914e07476/out/sqlite3/sqlite3.o" "-c" "sqlite3/sqlite3.c"
cargo:warning=sqlite3/sqlite3.c:28836:10: error: use of unknown builtin '__builtin_add_overflow' [-Wimplicit-function-declaration]
cargo:warning= return __builtin_add_overflow(*pA, iB, pA);
cargo:warning= ^
cargo:warning=sqlite3/sqlite3.c:28856:10: error: use of unknown builtin '__builtin_sub_overflow' [-Wimplicit-function-declaration]
cargo:warning= return __builtin_sub_overflow(*pA, iB, pA);
cargo:warning= ^
cargo:warning=sqlite3/sqlite3.c:28856:10: note: did you mean '__builtin_add_overflow'?
cargo:warning=sqlite3/sqlite3.c:28836:10: note: '__builtin_add_overflow' declared here
cargo:warning= return __builtin_add_overflow(*pA, iB, pA);
cargo:warning= ^
cargo:warning=sqlite3/sqlite3.c:28871:10: error: use of unknown builtin '__builtin_mul_overflow' [-Wimplicit-function-declaration]
cargo:warning= return __builtin_mul_overflow(*pA, iB, pA);
cargo:warning= ^
cargo:warning=sqlite3/sqlite3.c:28871:10: note: did you mean '__builtin_sub_overflow'?
cargo:warning=sqlite3/sqlite3.c:28856:10: note: '__builtin_sub_overflow' declared here
cargo:warning= return __builtin_sub_overflow(*pA, iB, pA);
cargo:warning= ^
cargo:warning=sqlite3/sqlite3.c:106364:7: warning: unused parameter 'argc' [-Wunused-parameter]
cargo:warning= int argc,
cargo:warning= ^
cargo:warning=sqlite3/sqlite3.c:173012:9: warning: unused parameter 'pAux' [-Wunused-parameter]
cargo:warning= void *pAux,
cargo:warning= ^
cargo:warning=sqlite3/sqlite3.c:173064:40: warning: unused parameter 'tab' [-Wunused-parameter]
cargo:warning=static int statBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){
cargo:warning= ^
cargo:warning=sqlite3/sqlite3.c:173446:27: warning: unused parameter 'idxStr' [-Wunused-parameter]
cargo:warning= int idxNum, const char *idxStr,
cargo:warning= ^
cargo:warning=sqlite3/sqlite3.c:173447:7: warning: unused parameter 'argc' [-Wunused-parameter]
cargo:warning= int argc, sqlite3_value **argv
cargo:warning= ^
cargo:warning=sqlite3/sqlite3.c:173567:3: warning: missing field 'xSavepoint' initializer [-Wmissing-field-initializers]
cargo:warning= };
cargo:warning= ^
cargo:warning=6 warnings and 3 errors generated.
exit code: 1
--- stderr
thread 'main' panicked at '
Internal error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-DSQLITE_CORE" "-DSQLITE_DEFAULT_FOREIGN_KEYS=1" "-DSQLITE_ENABLE_API_ARMOR" "-DSQLITE_ENABLE_COLUMN_METADATA" "-DSQLITE_ENABLE_DBSTAT_VTAB" "-DSQLITE_ENABLE_FTS3" "-DSQLITE_ENABLE_FTS3_PARENTHESIS" "-DSQLITE_ENABLE_FTS5" "-DSQLITE_ENABLE_JSON1" "-DSQLITE_ENABLE_LOAD_EXTENSION=1" "-DSQLITE_ENABLE_MEMORY_MANAGEMENT" "-DSQLITE_ENABLE_RTREE" "-DSQLITE_ENABLE_STAT2" "-DSQLITE_ENABLE_STAT4" "-DSQLITE_HAVE_ISNAN" "-DSQLITE_SOUNDEX" "-DSQLITE_THREADSAFE=1" "-DSQLITE_USE_URI" "-DHAVE_USLEEP=1" "-Wall" "-Wextra" "-o" "../mentat/target/debug/build/libsqlite3-sys-a1f16be914e07476/out/sqlite3/sqlite3.o" "-c" "sqlite3/sqlite3.c" with args "cc" did not execute successfully (status code exit code: 1).
$ clang -v
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
This might be helpful.