Skip to content

Instantly share code, notes, and snippets.

@rafal-adamek
Created June 14, 2017 17:30
Show Gist options
  • Save rafal-adamek/9fbd6afab8d05fad3c6daa8af783095b to your computer and use it in GitHub Desktop.
Save rafal-adamek/9fbd6afab8d05fad3c6daa8af783095b to your computer and use it in GitHub Desktop.
MuPDF error
make -j4 -C libmupdf generate
make[1]: Nothing to be done for `generate'.
ANDROID_HOME=/Users/dabu/Library/Android/sdk ./gradlew assembleDebug
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processArmeabi-v7aDebugManifest UP-TO-DATE
:processArmeabi-v7aDebugResources UP-TO-DATE
:processX86DebugManifest UP-TO-DATE
:processX86DebugResources UP-TO-DATE
:generateDebugSources UP-TO-DATE
:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:javaPreCompileDebug
:compileDebugJavaWithJavac UP-TO-DATE
:mergeDebugShaders UP-TO-DATE
:compileDebugShaders UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:transformClassesWithDexForDebug UP-TO-DATE
:generateJsonModelDebug UP-TO-DATE
:externalNativeBuildDebug
Build mupdf_java x86
make[1]: Entering directory `/Users/dabu/Projects/MuPDF'
[x86] Compile : mupdf_java <= mupdf_native.c
[x86] Compile : mupdf_core <= archive.c
[x86] Compile : mupdf_core <= bbox-device.c
[x86] Compile : mupdf_core <= bidi-std.c
In file included from /Users/dabu/Projects/MuPDF/libmupdf/source/fitz/archive.c:1:
In file included from /Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz.h:16:
In file included from /Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz/hash.h:6:
/Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz/output.h:190:16: error: redeclaration of 'strlen' must have the 'overloadable' attribute
extern size_t strlen(const char *s); /* avoid including string.h in public header */
^
/Users/dabu/Library/Android/sdk/ndk-bundle/sysroot/usr/include/string.h:97:8: note: previous overload of function is here
size_t strlen(const char* _Nonnull) __attribute_pure__ __overloadable
^
In file included from /Users/dabu/Projects/MuPDF/libmupdf/source/fitz/bbox-device.c:1:
In file included from /Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz.h:16:
In file included from /Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz/hash.h:6:
/Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz/output.h:190:16: error: redeclaration of 'strlen' must have the 'overloadable' attribute
In file included from /Users/dabu/Projects/MuPDF/libmupdf/platform/java/mupdf_native.c:12:
In file included from /Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz.h:16:
In file included from /Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz/hash.h:6:
/Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz/output.h:190:16: error: redeclaration of 'strlen' must have the 'overloadable' attribute
extern size_t strlen(const char *s); /* avoid including string.h in public header */
^
/Users/dabu/Library/Android/sdk/ndk-bundle/sysroot/usr/include/string.h:97:8: note: previous overload of function is here
size_t strlen(const char* _Nonnull) __attribute_pure__ __overloadable
^
In file included from
/Users/dabu/Projects/MuPDF/libmupdf/source/fitz/bidi-std.c
:
6
:
In file included from
/Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz.h
:16:
In file included from
/Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz/hash.h:
6:
/Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz/output.h:190:16: error: redeclaration of 'strlen' must have the 'overloadable' attribute
extern size_t strlen(const char *s); /* avoid including string.h in public header */
^
/Users/dabu/Library/Android/sdk/ndk-bundle/sysroot/usr/include/string.h:97:8: note: previous overload of function is here
size_t strlen(const char* _Nonnull) __attribute_pure__ __overloadable
^
extern size_t strlen(const char *s); /* avoid including string.h in public header */
^
/Users/dabu/Library/Android/sdk/ndk-bundle/sysroot/usr/include/string.h:97:8: note: previous overload of function is here
size_t strlen(const char* _Nonnull) __attribute_pure__ __overloadable
^
1 error generated.
make[1]: *** [/Users/dabu/Projects/MuPDF/build/intermediates/ndkBuild/debug/obj/local/x86/objs-debug/mupdf_core//Users/dabu/Projects/MuPDF/libmupdf/source/fitz/archive.o] Error 1
make[1]: *** Waiting for unfinished jobs....
1
error generated.
1 error generated.
make[1]:
*** [/Users/dabu/Projects/MuPDF/build/intermediates/ndkBuild/debug/obj/local/x86/objs-debug/mupdf_core//Users/dabu/Projects/MuPDF/libmupdf/source/fitz/bidi-std.o] Error 1
make[1]: *** [/Users/dabu/Projects/MuPDF/build/intermediates/ndkBuild/debug/obj/local/x86/objs-debug/mupdf_core//Users/dabu/Projects/MuPDF/libmupdf/source/fitz/bbox-device.o] Error 1
1 error generated.
make[1]: *** [/Users/dabu/Projects/MuPDF/build/intermediates/ndkBuild/debug/obj/local/x86/objs-debug/mupdf_java//Users/dabu/Projects/MuPDF/libmupdf/platform/java/mupdf_native.o] Error 1
make[1]: Leaving directory `/Users/dabu/Projects/MuPDF'
:externalNativeBuildDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':externalNativeBuildDebug'.
> Build command failed.
Error while executing process /Users/dabu/Library/Android/sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/dabu/Projects/MuPDF/libmupdf/platform/java/Android.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=/Users/dabu/Projects/MuPDF/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/Users/dabu/Projects/MuPDF/build/intermediates/ndkBuild/debug/lib -j4 /Users/dabu/Projects/MuPDF/build/intermediates/ndkBuild/debug/obj/local/x86/libmupdf_java.so}
make[1]: Entering directory `/Users/dabu/Projects/MuPDF'
[x86] Compile : mupdf_java <= mupdf_native.c
[x86] Compile : mupdf_core <= archive.c
[x86] Compile : mupdf_core <= bbox-device.c
[x86] Compile : mupdf_core <= bidi-std.c
In file included from /Users/dabu/Projects/MuPDF/libmupdf/source/fitz/archive.c:1:
In file included from /Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz.h:16:
In file included from /Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz/hash.h:6:
/Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz/output.h:190:16: error: redeclaration of 'strlen' must have the 'overloadable' attribute
extern size_t strlen(const char *s); /* avoid including string.h in public header */
^
/Users/dabu/Library/Android/sdk/ndk-bundle/sysroot/usr/include/string.h:97:8: note: previous overload of function is here
size_t strlen(const char* _Nonnull) __attribute_pure__ __overloadable
^
In file included from /Users/dabu/Projects/MuPDF/libmupdf/source/fitz/bbox-device.c:1:
In file included from /Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz.h:16:
In file included from /Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz/hash.h:6:
/Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz/output.h:190:16: error: redeclaration of 'strlen' must have the 'overloadable' attribute
In file included from /Users/dabu/Projects/MuPDF/libmupdf/platform/java/mupdf_native.c:12:
In file included from /Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz.h:16:
In file included from /Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz/hash.h:6:
/Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz/output.h:190:16: error: redeclaration of 'strlen' must have the 'overloadable' attribute
extern size_t strlen(const char *s); /* avoid including string.h in public header */
^
/Users/dabu/Library/Android/sdk/ndk-bundle/sysroot/usr/include/string.h:97:8: note: previous overload of function is here
size_t strlen(const char* _Nonnull) __attribute_pure__ __overloadable
^
In file included from /Users/dabu/Projects/MuPDF/libmupdf/source/fitz/bidi-std.c:6:
In file included from /Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz.h:16:
In file included from /Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz/hash.h:6:
/Users/dabu/Projects/MuPDF/libmupdf/include/mupdf/fitz/output.h:190:16: error: redeclaration of 'strlen' must have the 'overloadable' attribute
extern size_t strlen(const char *s); /* avoid including string.h in public header */
^
/Users/dabu/Library/Android/sdk/ndk-bundle/sysroot/usr/include/string.h:97:8: note: previous overload of function is here
size_t strlen(const char* _Nonnull) __attribute_pure__ __overloadable
^
extern size_t strlen(const char *s); /* avoid including string.h in public header */
^
/Users/dabu/Library/Android/sdk/ndk-bundle/sysroot/usr/include/string.h:97:8: note: previous overload of function is here
size_t strlen(const char* _Nonnull) __attribute_pure__ __overloadable
^
1 error generated.
make[1]: *** [/Users/dabu/Projects/MuPDF/build/intermediates/ndkBuild/debug/obj/local/x86/objs-debug/mupdf_core//Users/dabu/Projects/MuPDF/libmupdf/source/fitz/archive.o] Error 1
make[1]: *** Waiting for unfinished jobs....
1 error generated.
1 error generated.
make[1]: *** [/Users/dabu/Projects/MuPDF/build/intermediates/ndkBuild/debug/obj/local/x86/objs-debug/mupdf_core//Users/dabu/Projects/MuPDF/libmupdf/source/fitz/bidi-std.o] Error 1
make[1]: *** [/Users/dabu/Projects/MuPDF/build/intermediates/ndkBuild/debug/obj/local/x86/objs-debug/mupdf_core//Users/dabu/Projects/MuPDF/libmupdf/source/fitz/bbox-device.o] Error 1
1 error generated.
make[1]: *** [/Users/dabu/Projects/MuPDF/build/intermediates/ndkBuild/debug/obj/local/x86/objs-debug/mupdf_java//Users/dabu/Projects/MuPDF/libmupdf/platform/java/mupdf_native.o] Error 1
make[1]: Leaving directory `/Users/dabu/Projects/MuPDF'
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1.781 secs
make: *** [assembleDebug] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment