728x90

ERROR

host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)
host SharedLib: libneo_cs (out/host/linux-x86/obj/lib/libneo_cs.so)
host C++: libutils <= frameworks/base/libs/utils/RefBase.cpp
frameworks/base/libs/utils/RefBase.cpp: In member function void android::RefBase::weakref_type::trackMe(bool,
bool):
frameworks/base/libs/utils/RefBase.cpp:483:67: error: passing const android::RefBase::weakref_impl as this
argument of void android::RefBase::weakref_impl::trackMe(bool, bool) discards qualifiers [-fpermissive]
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/RefBase.o] Error 1
make: *** Waiting for unfinished jobs....

SOLUTION
frameworks/base/libs/utils/Android.mk


- LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS)
+ LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) -fpermissive

 

=====================================================================================================

ERROR

host C++: q2dm <= sdk/emulator/qtools/armdis.cpp
host C++: q2dm <= sdk/emulator/qtools/thumbdis.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
sdk/emulator/qtools/thumbdis.cpp: In function char* disasm_insn_thumb(uint32_t, uint32_t, uint32_t, char*):
sdk/emulator/qtools/thumbdis.cpp:387:71: warning: format not a string literal and no format arguments [-Wformatsecurity]
sdk/emulator/qtools/thumbdis.cpp:396:71: warning: format not a string literal and no format arguments [-Wformatsecurity]
cc1plus: all warnings being treated as errors

SOLUTION

build/core/combo/HOST_linux-x86.mk

 line 61

-HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
+HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0

 

 

요약하자면

 

frameworks/base/libs/utils/Android.mk  파일에서

 

LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS)
이녀석을 찾아서

 

LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) -fpermissive

요렿게 옵션 추가


build/core/combo/HOST_linux-x86.mk 파일에서

 

HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0

요녀석을 찾아서

HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0

요렇게 옵션 추가

 

728x90

+ Recent posts