Cargo build failed due to clang interaction with rusqlite's libsqlite3-sys #182

Open
opened 2020-08-06 16:56:18 +00:00 by gburd · 0 comments
gburd commented 2020-08-06 16:56:18 +00:00 (Migrated from github.com)

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.

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](https://bugzilla.mozilla.org/show_bug.cgi?id=1340028) might be helpful.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: greg/mentat#182
No description provided.