Re: [android-building] Problems building Android GB on Arch Linux

1,514 views
Skip to first unread message

Jean-Baptiste Queru

unread,
Jun 13, 2012, 6:25:52 PM6/13/12
to android-...@googlegroups.com
My best guess is that your host gcc is 4.6 or 4.7, but gingerbread
requires the host gcc to be 4.4.

JBQ

On Wed, Jun 13, 2012 at 3:12 PM, Peter Mullen <plati...@gmail.com> wrote:
> OK, so I'm pretty sure I have all the needed packages/dependancies
> installed, except for libusb, I wasn't able to install that. I'm moderately
> new to this, so please go easy on me.
>
> [peter@archie ANDROID_SRC_1]$ . build/envsetup
> bash: build/envsetup: No such file or directory
> [peter@archie ANDROID_SRC_1]$ cd ..
> [peter@archie ~]$ cd ANDROID_SRC
> [peter@archie ANDROID_SRC]$ sudo make -j6
> Password:
> ============================================
> PLATFORM_VERSION_CODENAME=REL
> PLATFORM_VERSION=2.3.3
> TARGET_PRODUCT=generic
> TARGET_BUILD_VARIANT=eng
> TARGET_SIMULATOR=
> TARGET_BUILD_TYPE=release
> TARGET_BUILD_APPS=
> TARGET_ARCH=arm
> HOST_ARCH=x86
> HOST_OS=linux
> HOST_BUILD_TYPE=release
> BUILD_ID=GRI40
> ============================================
> find: `frameworks/base/frameworks/base/docs/html': No such file or directory
> find: `out/target/common/docs/gen': No such file or directory
> find: `frameworks/base/frameworks/base/docs/html': No such file or directory
> find: `out/target/common/docs/gen': No such file or directory
> find: `frameworks/base/frameworks/base/docs/html': No such file or directory
> find: `out/target/common/docs/gen': No such file or directory
> find: `frameworks/base/frameworks/base/docs/html': No such file or directory
> find: `out/target/common/docs/gen': No such file or directory
> find: `frameworks/base/frameworks/base/docs/html': No such file or directory
> find: `out/target/common/docs/gen': No such file or directory
> Install: out/host/linux-x86/framework/apicheck.jar
> Install: out/host/linux-x86/framework/clearsilver.jar
> Install: out/host/linux-x86/lib/libneo_util.so
> Copying:
> out/target/common/obj/JAVA_LIBRARIES/core_intermediates/emma_out/lib/classes-jarjar.jar
> Install: out/host/linux-x86/framework/dx.jar
> host C++: aapt <= frameworks/base/tools/aapt/AaptAssets.cpp
> host C++: aapt <= frameworks/base/tools/aapt/Command.cpp
> host C++: aapt <= frameworks/base/tools/aapt/Main.cpp
> host C++: aapt <= frameworks/base/tools/aapt/Package.cpp
> host C++: aapt <= frameworks/base/tools/aapt/StringPool.cpp
> host C++: aapt <= frameworks/base/tools/aapt/XMLNode.cpp
> In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
>                  from frameworks/base/tools/aapt/Main.h:14,
>                  from frameworks/base/tools/aapt/Main.cpp:6:
> frameworks/base/tools/aapt/ZipFile.h:65:5: warning: 'typedef' was ignored in
> this declaration [enabled by default]
> In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
>                  from frameworks/base/tools/aapt/AaptAssets.cpp:5:
> frameworks/base/tools/aapt/ZipFile.h:65:5: warning: 'typedef' was ignored in
> this declaration [enabled by default]
> In file included from frameworks/base/include/utils/AssetManager.h:25:0,
>                  from frameworks/base/tools/aapt/AaptAssets.h:10,
>                  from frameworks/base/tools/aapt/Main.h:14,
>                  from frameworks/base/tools/aapt/Main.cpp:6:
> frameworks/base/include/utils/KeyedVector.h: In instantiation of 'const
> VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const
> [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]':
> frameworks/base/tools/aapt/AaptAssets.h:419:59:   required from here
> frameworks/base/include/utils/KeyedVector.h:193:31: error: 'indexOfKey' was
> not declared in this scope, and no declarations were found by
> argument-dependent lookup at the point of instantiation [-fpermissive]
> frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in
> dependent base 'android::KeyedVector<android::String8,
> android::sp<AaptSymbols> >' are not found by unqualified lookup
> frameworks/base/include/utils/KeyedVector.h:193:31: note: use
> 'this->indexOfKey' instead
> In file included from frameworks/base/include/utils/AssetManager.h:25:0,
>                  from frameworks/base/tools/aapt/AaptAssets.h:10,
>                  from frameworks/base/tools/aapt/AaptAssets.cpp:5:
> frameworks/base/include/utils/KeyedVector.h: In instantiation of 'const
> VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const
> [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]':
> frameworks/base/tools/aapt/AaptAssets.h:419:59:   required from here
> frameworks/base/include/utils/KeyedVector.h:193:31: error: 'indexOfKey' was
> not declared in this scope, and no declarations were found by
> argument-dependent lookup at the point of instantiation [-fpermissive]
> frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in
> dependent base 'android::KeyedVector<android::String8,
> android::sp<AaptSymbols> >' are not found by unqualified lookup
> frameworks/base/include/utils/KeyedVector.h:193:31: note: use
> 'this->indexOfKey' instead
> make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/Main.o]
> Error 1
> make: *** Waiting for unfinished jobs....
> frameworks/base/include/utils/KeyedVector.h: In instantiation of 'const
> VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const
> [with KEY = android::String8; VALUE = android::sp<AaptGroup>]':
> frameworks/base/tools/aapt/AaptAssets.cpp:1388:41:   required from here
> frameworks/base/include/utils/KeyedVector.h:193:31: error: 'indexOfKey' was
> not declared in this scope, and no declarations were found by
> argument-dependent lookup at the point of instantiation [-fpermissive]
> frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in
> dependent base 'android::KeyedVector<android::String8,
> android::sp<AaptGroup> >' are not found by unqualified lookup
> frameworks/base/include/utils/KeyedVector.h:193:31: note: use
> 'this->indexOfKey' instead
> frameworks/base/include/utils/KeyedVector.h: In instantiation of 'const
> VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const
> [with KEY = android::String8; VALUE = android::sp<AaptDir>]':
> frameworks/base/tools/aapt/AaptAssets.cpp:1447:53:   required from here
> frameworks/base/include/utils/KeyedVector.h:193:31: error: 'indexOfKey' was
> not declared in this scope, and no declarations were found by
> argument-dependent lookup at the point of instantiation [-fpermissive]
> frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in
> dependent base 'android::KeyedVector<android::String8, android::sp<AaptDir>
>>' are not found by unqualified lookup
> frameworks/base/include/utils/KeyedVector.h:193:31: note: use
> 'this->indexOfKey' instead
> In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
>                  from frameworks/base/tools/aapt/Main.h:14,
>                  from frameworks/base/tools/aapt/StringPool.h:10,
>                  from frameworks/base/tools/aapt/StringPool.cpp:7:
> frameworks/base/tools/aapt/ZipFile.h:65:5: warning: 'typedef' was ignored in
> this declaration [enabled by default]
> make: ***
> [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/AaptAssets.o] Error 1
> frameworks/base/tools/aapt/StringPool.cpp: In function 'void
> printStringPool(const android::ResStringPool*)':
> frameworks/base/tools/aapt/StringPool.cpp:33:43: warning: format '%ld'
> expects argument of type 'long int', but argument 2 has type 'size_t {aka
> unsigned int}' [-Wformat]
> In file included from frameworks/base/include/utils/AssetManager.h:25:0,
>                  from frameworks/base/tools/aapt/AaptAssets.h:10,
>                  from frameworks/base/tools/aapt/Main.h:14,
>                  from frameworks/base/tools/aapt/StringPool.h:10,
>                  from frameworks/base/tools/aapt/StringPool.cpp:7:
> frameworks/base/include/utils/KeyedVector.h: In instantiation of 'const
> VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const
> [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]':
> frameworks/base/tools/aapt/AaptAssets.h:419:59:   required from here
> frameworks/base/include/utils/KeyedVector.h:193:31: error: 'indexOfKey' was
> not declared in this scope, and no declarations were found by
> argument-dependent lookup at the point of instantiation [-fpermissive]
> frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in
> dependent base 'android::KeyedVector<android::String8,
> android::sp<AaptSymbols> >' are not found by unqualified lookup
> frameworks/base/include/utils/KeyedVector.h:193:31: note: use
> 'this->indexOfKey' instead
> frameworks/base/include/utils/KeyedVector.h: In instantiation of 'const
> VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const
> [with KEY = android::String16; VALUE = int]':
> frameworks/base/tools/aapt/StringPool.cpp:60:45:   required from here
> frameworks/base/include/utils/KeyedVector.h:193:31: error: 'indexOfKey' was
> not declared in this scope, and no declarations were found by
> argument-dependent lookup at the point of instantiation [-fpermissive]
> frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in
> dependent base 'android::KeyedVector<android::String16, int>' are not found
> by unqualified lookup
> frameworks/base/include/utils/KeyedVector.h:193:31: note: use
> 'this->indexOfKey' instead
> make: ***
> [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/StringPool.o] Error 1
> In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
>                  from frameworks/base/tools/aapt/Main.h:14,
>                  from frameworks/base/tools/aapt/Package.cpp:6:
> frameworks/base/tools/aapt/ZipFile.h:65:5: warning: 'typedef' was ignored in
> this declaration [enabled by default]
> In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
>                  from frameworks/base/tools/aapt/Main.h:14,
>                  from frameworks/base/tools/aapt/Command.cpp:6:
> frameworks/base/tools/aapt/ZipFile.h:65:5: warning: 'typedef' was ignored in
> this declaration [enabled by default]
> In file included from frameworks/base/include/utils/AssetManager.h:25:0,
>                  from frameworks/base/tools/aapt/AaptAssets.h:10,
>                  from frameworks/base/tools/aapt/Main.h:14,
>                  from frameworks/base/tools/aapt/Package.cpp:6:
> frameworks/base/include/utils/KeyedVector.h: In instantiation of 'const
> VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const
> [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]':
> frameworks/base/tools/aapt/AaptAssets.h:419:59:   required from here
> frameworks/base/include/utils/KeyedVector.h:193:31: error: 'indexOfKey' was
> not declared in this scope, and no declarations were found by
> argument-dependent lookup at the point of instantiation [-fpermissive]
> frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in
> dependent base 'android::KeyedVector<android::String8,
> android::sp<AaptSymbols> >' are not found by unqualified lookup
> frameworks/base/include/utils/KeyedVector.h:193:31: note: use
> 'this->indexOfKey' instead
> frameworks/base/include/utils/KeyedVector.h: In instantiation of 'const
> VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const
> [with KEY = android::String16; VALUE = unsigned int]':
> frameworks/base/tools/aapt/ResourceTable.h:480:100:   required from here
> frameworks/base/include/utils/KeyedVector.h:193:31: error: 'indexOfKey' was
> not declared in this scope, and no declarations were found by
> argument-dependent lookup at the point of instantiation [-fpermissive]
> frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in
> dependent base 'android::KeyedVector<android::String16, unsigned int>' are
> not found by unqualified lookup
> frameworks/base/include/utils/KeyedVector.h:193:31: note: use
> 'this->indexOfKey' instead
> In file included from frameworks/base/include/utils/AssetManager.h:25:0,
>                  from frameworks/base/tools/aapt/AaptAssets.h:10,
>                  from frameworks/base/tools/aapt/Main.h:14,
>                  from frameworks/base/tools/aapt/Command.cpp:6:
> frameworks/base/include/utils/KeyedVector.h: In instantiation of 'const
> VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const
> [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]':
> frameworks/base/tools/aapt/AaptAssets.h:419:59:   required from here
> frameworks/base/include/utils/KeyedVector.h:193:31: error: 'indexOfKey' was
> not declared in this scope, and no declarations were found by
> argument-dependent lookup at the point of instantiation [-fpermissive]
> frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in
> dependent base 'android::KeyedVector<android::String8,
> android::sp<AaptSymbols> >' are not found by unqualified lookup
> frameworks/base/include/utils/KeyedVector.h:193:31: note: use
> 'this->indexOfKey' instead
> frameworks/base/include/utils/KeyedVector.h: In instantiation of 'const
> VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const
> [with KEY = android::String16; VALUE = unsigned int]':
> frameworks/base/tools/aapt/ResourceTable.h:480:100:   required from here
> frameworks/base/include/utils/KeyedVector.h:193:31: error: 'indexOfKey' was
> not declared in this scope, and no declarations were found by
> argument-dependent lookup at the point of instantiation [-fpermissive]
> frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in
> dependent base 'android::KeyedVector<android::String16, unsigned int>' are
> not found by unqualified lookup
> frameworks/base/include/utils/KeyedVector.h:193:31: note: use
> 'this->indexOfKey' instead
> In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
>                  from frameworks/base/tools/aapt/Main.h:14,
>                  from frameworks/base/tools/aapt/StringPool.h:10,
>                  from frameworks/base/tools/aapt/XMLNode.h:10,
>                  from frameworks/base/tools/aapt/XMLNode.cpp:7:
> frameworks/base/tools/aapt/ZipFile.h:65:5: warning: 'typedef' was ignored in
> this declaration [enabled by default]
> make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/Package.o]
> Error 1
> make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/Command.o]
> Error 1
> In file included from frameworks/base/include/utils/AssetManager.h:25:0,
>                  from frameworks/base/tools/aapt/AaptAssets.h:10,
>                  from frameworks/base/tools/aapt/Main.h:14,
>                  from frameworks/base/tools/aapt/StringPool.h:10,
>                  from frameworks/base/tools/aapt/XMLNode.h:10,
>                  from frameworks/base/tools/aapt/XMLNode.cpp:7:
> frameworks/base/include/utils/KeyedVector.h: In instantiation of 'const
> VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const
> [with KEY = android::String8; VALUE = android::sp<AaptSymbols>]':
> frameworks/base/tools/aapt/AaptAssets.h:419:59:   required from here
> frameworks/base/include/utils/KeyedVector.h:193:31: error: 'indexOfKey' was
> not declared in this scope, and no declarations were found by
> argument-dependent lookup at the point of instantiation [-fpermissive]
> frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in
> dependent base 'android::KeyedVector<android::String8,
> android::sp<AaptSymbols> >' are not found by unqualified lookup
> frameworks/base/include/utils/KeyedVector.h:193:31: note: use
> 'this->indexOfKey' instead
> frameworks/base/include/utils/KeyedVector.h: In instantiation of 'const
> VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const
> [with KEY = android::String16; VALUE = unsigned int]':
> frameworks/base/tools/aapt/ResourceTable.h:480:100:   required from here
> frameworks/base/include/utils/KeyedVector.h:193:31: error: 'indexOfKey' was
> not declared in this scope, and no declarations were found by
> argument-dependent lookup at the point of instantiation [-fpermissive]
> frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in
> dependent base 'android::KeyedVector<android::String16, unsigned int>' are
> not found by unqualified lookup
> frameworks/base/include/utils/KeyedVector.h:193:31: note: use
> 'this->indexOfKey' instead
> make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/XMLNode.o]
> Error 1
>
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en



--
Jean-Baptiste M. "JBQ" Queru
Technical Lead, Android Open Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Magnus Bäck

unread,
Jun 13, 2012, 10:24:27 PM6/13/12
to android-...@googlegroups.com
On Wed, Jun 13, 2012 at 6:12 PM,
Peter Mullen <plati...@gmail.com> wrote:

> OK, so I'm pretty sure I have all the needed packages/dependancies
> installed, except for libusb, I wasn't able to install that. I'm moderately
> new to this, so please go easy on me.
>
> [peter@archie ANDROID_SRC_1]$ . build/envsetup
> bash: build/envsetup: No such file or directory

While hardly the cause for your problems, note that the file is named
build/envsetup.sh.

[...]

--
Magnus Bäck
ba...@google.com

Ramon-Tomislav Reberšak

unread,
Aug 23, 2013, 6:43:57 AM8/23/13
to android-...@googlegroups.com
@Peter
frameworks/base/include/utils/KeyedVector.h:193

note: use 'this->indexOfKey' instead
Compiler tell You what to change.
Open gedit and edit line 193 to 197 like this:
//#ifdef __clang__
    ssize_t i = this->indexOfKey(key);
//#else
//    ssize_t i = indexOfKey(key);
//#endif

This error occurred on GCC above 4.4.x but I don't know Your compiler version, so this workaround is 'global' for all newer GCC.
Cheers


On Thursday, 14 June 2012 00:12:41 UTC+2, Peter Mullen wrote:
OK, so I'm pretty sure I have all the needed packages/dependancies installed, except for libusb, I wasn't able to install that. I'm moderately new to this, so please go easy on me.

[peter@archie ANDROID_SRC_1]$ . build/envsetup
bash: build/envsetup: No such file or directory
[peter@archie ANDROID_SRC_1]$ cd ..
[peter@archie ~]$ cd ANDROID_SRC
[peter@archie ANDROID_SRC]$ sudo make -j6
Password: 
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.3
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GRI40
============================================
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory

trevd

unread,
Aug 25, 2013, 1:27:34 PM8/25/13
to android-...@googlegroups.com
you could just use gcc-4.4 although archways will probably crumble if you do that ;) 
Reply all
Reply to author
Forward
0 new messages