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
요렇게 옵션 추가
'Programming > linux왕초보' 카테고리의 다른 글
checking panel.h usability... no (0) | 2012.10.10 |
---|---|
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory in i686 (0) | 2012.10.10 |
Qt Cross compile (0) | 2012.08.20 |
perl : Can't locate Term/ReadKey.pm ERROR (0) | 2012.05.22 |
(target: Desktop) When executing build step 'qmake' (1) | 2012.05.21 |
kernel make menuconfig: needs ncurses? (0) | 2012.04.25 |
sh파일 실행 시 Syntax error: "(" unexpected 를 만날 때 (0) | 2012.04.23 |
arm kernel 컴파일도중 u-boot 들먹이며 거절할 때 (0) | 2012.04.23 |
find 명령어(linux) (4) | 2012.04.03 |
ALSA SoC Layer (0) | 2012.04.03 |