我下載了三明治冰淇淋android中
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
在編譯過程中需要修改這一些東西。才能完整編完。所以
但是實在要編太久了!大約用了5-6個小時才編完。
本文出處
https://groups.google.com/forum/?fromgroups=#!topic/android-building/AgeruY7XIwQ
Not saying any of this is right, just that it finished my build.
Using the cm9 repo (ics branch), ubuntu oneiric ocelot. Take it for
what it's worth, which may be nothin'.
--fattire
ERROR: :0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
FIX:
in build/core/comboHOST_linux-
-HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
+HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
-------
ERROR: external/gtest/src/../
util.h:122:11: error: ‘ptrdiff_t’ does not name a type
FIX:
in external/gtest/internal/gtest-
#include
+#include
#include
-------
ERROR: external/oprofile/libpp/
reference ‘counts’ cannot be declared ‘mutable’ [-fpermissive]
FIX:
in external/libpp/format_output.h b/libpp/format_output.h
- mutable counts_t & counts;
+ counts_t & counts;
-------
ERROR: frameworks/compile/slang/
error: variable ‘ParamName’ set but not used [-Werror=unused-but-set-
variable]
FIX:
in android/ics/frameworks/
-local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter
-Werror
+local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter
-------
ERROR: Numerous pthread errors w/llvm:
Example: external/llvm/lib/Support/
reference to `pthread_create'
FIX: This is a really dumb fix. But it got me to the end of the
build. In external/llvm...
diff --git a/lib/Support/Mutex.cpp b/lib/Support/Mutex.cpp
index b408973..3a13adf 100644
--- a/lib/Support/Mutex.cpp
+++ b/lib/Support/Mutex.cpp
@@ -13,6 +13,8 @@
#include "llvm/Config/config.h"
#include "llvm/Support/Mutex.h"
+#undef ENABLE_THREADS
+#undef HAVE_PTHREAD_H
//
===---------------------------
===//
//=== WARNING: Implementation here must contain only TRULY operating
system
diff --git a/lib/Support/Signals.cpp b/lib/Support/Signals.cpp
index a117893..68fa5e7 100644
--- a/lib/Support/Signals.cpp
+++ b/lib/Support/Signals.cpp
@@ -25,6 +25,8 @@ using namespace sys;
}
+#undef HAVE_DLFCN_H
+
// Include the platform-specific parts of this class.
#ifdef LLVM_ON_UNIX
#include "Unix/Signals.inc"
diff --git a/lib/Support/Threading.cpp b/lib/Support/Threading.cpp
index 2957956..f1339a3 100644
--- a/lib/Support/Threading.cpp
+++ b/lib/Support/Threading.cpp
@@ -16,6 +16,7 @@
#include "llvm/Support/Mutex.h"
#include "llvm/Config/config.h"
#include
+#undef LLVM_MULTITHREADED
using namespace llvm;
沒有留言:
張貼留言