ubuntu1204LTSでICS403r1のBuild時のエラー
●エラー1つ目
host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp <コマンドライン>:0:0: エラー: "_FORTIFY_SOURCE" が再定義されました [-Werror] <組み込み>:0:0: 備考: ここが以前の宣言がある位置です cc1plus: all warnings being treated as errors make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] エラー 1
Androg: Ubuntu 11.10 on VMware でICSビルド時のエラーと対策メモ
●エラー2つ目
frameworks/compile/slang/slang_rs_export_foreach.cpp: 静的メンバ関数 ‘static slang::RSExportForEach* slang::RSExportForEach::Create(slang::RSContext*, const clang::FunctionDecl*)’ 内: frameworks/compile/slang/slang_rs_export_foreach.cpp:249:23: エラー: 変数 ‘ParamName’ が設定されましたが使用されていません [-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] エラー 1
Fix/Workaround:
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
●エラー3つ目
external/mesa3d/src/glsl/linker.cpp: 関数 ‘void assign_varying_locations(gl_shader_program*, gl_shader*, gl_shader*)’ 内: external/mesa3d/src/glsl/linker.cpp:1394:49: エラー: expected primary-expression before ‘,’ token external/mesa3d/src/glsl/linker.cpp:1394:50: エラー: ‘varyings’ was not declared in this scope external/mesa3d/src/glsl/linker.cpp:1394:58: エラー: ‘offsetof’ was not declared in this scope external/mesa3d/src/glsl/linker.cpp:1395:48: エラー: expected primary-expression before ‘,’ token external/mesa3d/src/glsl/linker.cpp:1412:47: エラー: expected primary-expression before ‘,’ token external/mesa3d/src/glsl/linker.cpp:1412:48: エラー: ‘position’ was not declared in this scope external/mesa3d/src/glsl/linker.cpp:1414:47: エラー: expected primary-expression before ‘,’ token external/mesa3d/src/glsl/linker.cpp:1414:48: エラー: ‘pointSize’ was not declared in this scope external/mesa3d/src/glsl/linker.cpp:1424:47: エラー: expected primary-expression before ‘,’ token external/mesa3d/src/glsl/linker.cpp:1424:48: エラー: ‘position’ was not declared in this scope external/mesa3d/src/glsl/linker.cpp:1428:47: エラー: expected primary-expression before ‘,’ token external/mesa3d/src/glsl/linker.cpp:1428:48: エラー: ‘frontFacingPointCoord’ was not declared in this scope external/mesa3d/src/glsl/linker.cpp:1431:47: エラー: expected primary-expression before ‘,’ token external/mesa3d/src/glsl/linker.cpp:1431:48: エラー: ‘frontFacingPointCoord’ was not declared in this scope external/mesa3d/src/glsl/linker.cpp: 関数 ‘void link_shaders(const gl_context*, gl_shader_program*)’ 内: external/mesa3d/src/glsl/linker.cpp:1734:49: エラー: expected primary-expression before ‘,’ token external/mesa3d/src/glsl/linker.cpp:1734:50: エラー: ‘fragColor’ was not declared in this scope external/mesa3d/src/glsl/linker.cpp:1734:59: エラー: ‘offsetof’ was not declared in this scope make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libMesa_intermediates/src/glsl/linker.o] エラー 1
[http://ktakeda47.blogspot.jp/2012/01/make-outhostlinux-x86objstaticlibraries.html:title=ktakeda47: make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libMesa_intermediates/src/glsl/linker.o] エラー1]
●エラー4つ目
In file included from external/oprofile/libpp/arrange_profiles.cpp:24:0: external/oprofile/libpp/format_output.h:94:22: エラー: reference ‘counts’ cannot be declared ‘mutable’ [-fpermissive] make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/liboprofile_pp_intermediates/arrange_profiles.o] エラー 1
PandaboardにAndroid4.0.4を入れてみる - ぴーたーの日記
vi external/oprofile/libpp/format_output.h
●エラー5つ目
external/gtest/src/../include/gtest/internal/gtest-param-util.h:122:11: エラー: ‘ptrdiff_t’ does not name a type In file included from external/gtest/src/gtest-all.cc:38:0: external/gtest/src/../src/gtest-filepath.cc: メンバ関数 ‘bool testing::internal::FilePath::FileOrDirectoryExists() const’ 内: In file included from external/gtest/src/gtest-all.cc:38:0: external/gtest/src/../src/gtest-filepath.cc: メンバ関数 ‘bool testing::internal::FilePath::DirectoryExists() const’ 内: make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libgtest_host_intermediates/gtest-all.o] エラー 1
Building Android 4.0.4 (Master branch) on Arch Linux 64-bit - Google グループ
●エラー6つ目
make: *** [out/host/linux-x86/obj/EXECUTABLES/test-librsloader_intermediates/test-librsloader] エラー 1
One More Thing: Bulding AOSP on Ubuntu 12.04
Ubuntu11.10でAndroidソースコード入手とビルド - Unexpected Error
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libgtest_host_intermediates/gtest-all.o] エラー 1 m_fujii@ubuntu1204:~/ICS403R1$ ^C
2)
vi external/gtest/include/gtest/internal/gtest-param-util.hAdd '#include <stddef.h>' to list of includes as shown:
#include <vector>
#include <cstddef>
#include <gtest/internal/gtest-port.h>
●エラー7つ目
target Dex: Settings make: *** [out/target/common/obj/APPS/android.core.tests.libcore.package.com.no-core-tests-res_intermediates/noproguard.classes-with-local.dex] 強制終了
makeを
make -j8からmake(シングルプロセス)で動かしたら正常終了した。
メモリ容量かな?いまはメモリ5GB、SWAPなしで動かしてる。
Error in building ICS - Google グループ