Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android build failure #53

Closed
dixitpeeyush opened this issue Mar 19, 2015 · 1 comment
Closed

Android build failure #53

dixitpeeyush opened this issue Mar 19, 2015 · 1 comment

Comments

@dixitpeeyush
Copy link

make android is failing with below error:

[x86_64] Compile++      : mx3_android <= native_api.cpp
../../deps/sqlite3/sqlite3.c: In function 'sqlite3TempInMemory':
../../deps/sqlite3/sqlite3.c:121876:55: error: unused parameter 'db' [-Werror=unused-parameter]
SQLITE_PRIVATE int sqlite3TempInMemory(const sqlite3 *db){
                                                   ^
 [mips64] Compile++      : mx3_android <= jni_main.cpp
../../deps/sqlite3/sqlite3.c: In function 'sqlite3TempInMemory':
../../deps/sqlite3/sqlite3.c:121876:55: error: unused parameter 'db' [-Werror=unused-parameter]
 SQLITE_PRIVATE int sqlite3TempInMemory(const sqlite3 *db){
                                                   ^

[armeabi] Compile++ thumb: mx3_android <= native_api.cpp
../../deps/sqlite3/sqlite3.c: In function 'sqlite3TempInMemory':
../../deps/sqlite3/sqlite3.c:121876:55: error: unused parameter 'db' [-Werror=unused-parameter]
SQLITE_PRIVATE int sqlite3TempInMemory(const sqlite3 *db){
                                                   ^

../../deps/sqlite3/sqlite3.c: At top level:
cc1: error: unrecognized command line option "-Wno-unused-const-variable" [-Werror]
cc1: all warnings being treated as errors

SQLITE_TEMP_STORE=3 define is triggering the unused parameter warning which -Werror is forcing as error. Wno-unused-const-variable is unrecognized. As a workaround, I tried removing -Werror from common.gypi and was able to build successfully but with unused parameter warnings.

@skabbes
Copy link
Contributor

skabbes commented Mar 20, 2015

Thank you. Really wish travis-ci supported android ndk. I updated with a fix here:

39e449a

@skabbes skabbes closed this as completed Mar 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants