frameworks/compile/slang/slang_rs_export_foreach.cpp: In static member function ‘static slang::RSExportForEach* slang::RSExportForEach::Create(slang::RSContext*, const clang::FunctionDecl*)’:
frameworks/compile/slang/slang_rs_export_foreach.cpp:249:23: error: variable ‘ParamName’ set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors

make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs_export_foreach.o] Error ...


 frameworks/compile/slang/Android.mk 파일 수정


============================================================ 
-    local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter -Werror 
+    local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter 
============================================================  

위와 같이 -Werror 를 없애준다 
ubuntu 11.10 amd64
ICS

'pthread_create'는 물론 pthread 관련 여러개의 undefined reference error가 발생


external/llvm/lib/Support/Mutex.cpp 파일 수정

=========================================================
 #include "llvm/Config/config.h" 
 #include "llvm/Support/Mutex.h" 
+    #undef ENABLE_THREADS 
+    #undef HAVE_PTHREAD_H 
======================================================== 


+2차

위 방법으로 해결 되지 않아서 아래 방법으로 해결하였다.
 
 external/llvm/llvm-host-build.mk 파일에 아래 내용 추가


=========================================================
LOCAL_LDLIBS := \
          -lpthread     \
          -ldl
=========================================================
external/gtest/src/../include/gtest/internal/gtest-param-util.h:122:11: error: ‘ptrdiff_t’ does not name a type 


external/gtest/src/../include/gtest/internal/gtest-param-util.h 파일 수정


======================================================
#include <vector>
+          #include <cstddef>
#include <gtest/internal/gtest-port.h> 
======================================================

위와 같이 cstddef include 추가 
Ubuntu 11.10 amd64
ICS


In file included from external/oprofile/libpp/arrange_profiles.cpp:24:0:
external/oprofile/libpp/format_output.h:94:22: error: reference ‘counts’ cannot be declared ‘mutable’ [-fpermissive]

make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/liboprofile_pp_intermediates/arrange_profiles.o] 오류 1



external/oprofile/libpp/format_output.h 파일의 94번행

========================================================
-       mutable counts_t & counts;
+       counts_t & counts;

========================================================
위와 같이 수정해주자.

_FORTIFY_SOURCE redefined Error

개발노트/Android 2012. 3. 7. 11:49 Posted by B Style
Ubuntu 11.10 amd64
ICS

 <command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: mkyaffs2image <= external/yaffs2/yaffs2/yaffs_tagsvalidity.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from external/yaffs2/yaffs2/yaffs_tagsvalidity.c:17:0:
external/yaffs2/yaffs2/yaffs_tagsvalidity.h:23:6: warning: redundant redeclaration of ‘yaffs_InitialiseTags’ [-Wredundant-decls]
external/yaffs2/yaffs2/yaffs_guts.h:888:6: note: previous declaration of ‘yaffs_InitialiseTags’ was here
host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors


make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] 오류 1
make: *** 끝나지 않은 작업을 기다리고 있습니다....


/build/core/combo/HOST_linux-x86.mk 파일을 수정해주면 해결된다.
==================================================================================================
-         HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
+         HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
==================================================================================================
위와 같이 수정
Ubuntu 11.10 amd64

안드로이드 환경 설치 중 lib32readline5-dev 를 찾을 수 없다고 설치가 되지 않는다.

apt-get install 메시지에서 lib32readline-gplv2-dev 로 대체 가능하다고 나오기에  lib32readline-gplv2-dev 를 설치하여 해결.