[Q] Errors while building vanila android - Android Q&A, Help & Troubleshooting

I downloaded the android source code, by following the steps here
source.android.com/source/downloading.html
then i started building the source code, by following this
source.android.com/source/building.html
while making
$ make -j16
i get the following error (and a lot more similar to them after these lines)
Code:
device/htc/dream-sapphire/libsensors/sensors.c:53:37: error: field 'device' has incomplete type
device/htc/dream-sapphire/libsensors/sensors.c:59:34: error: field 'device' has incomplete type
device/htc/dream-sapphire/libsensors/sensors.c:61:5: error: unknown type name 'sensors_data_t'
device/htc/dream-sapphire/libsensors/sensors.c:73:17: warning: braces around scalar initializer [enabled by default]
device/htc/dream-sapphire/libsensors/sensors.c:73:17: warning: (near initialization for 'sSensorList[0].minDelay') [enabled by default]
device/htc/dream-sapphire/libsensors/sensors.c:73:17: error: empty scalar initializer
device/htc/dream-sapphire/libsensors/sensors.c:73:17: error: (near initialization for 'sSensorList[0].minDelay')
Earlier these lines, the make process does not complains of any missing files as such. and I have no idea why these errors are coming up since i am just trying to begin and learn this stuff.
What is causing this, and more importantly what should i do to resolve them ?
I am building on Linux virtual Machine and have taken all care that the Environment is right, as given here
source.android.com/source/initializing.html
i am building on Ubuntu 11.10 64 Bit, the commands were, in order,
Code:
source build/envsetup.sh
lunch full-eng
make -j16

i now build aosp_primou_kitkat and have this error to.
Code:
device/htc/primou/libsensors/sensors.c:37:17: warning: braces around scalar initializer [enabled by default]
device/htc/primou/libsensors/sensors.c:37:17: warning: (near initialization for 'sSensorList[0].fifoReservedEventCount') [enabled by default]
device/htc/primou/libsensors/sensors.c:37:17: error: empty scalar initializer
device/htc/primou/libsensors/sensors.c:37:17: error: (near initialization for 'sSensorList[0].fifoReservedEventCount')
device/htc/primou/libsensors/sensors.c:37:17: warning: missing initializer [-Wmissing-field-initializers]
device/htc/primou/libsensors/sensors.c:37:17: warning: (near initialization for 'sSensorList[0].fifoReservedEventCount') [-Wmissing-field-initializers]
when i did build android 4.2 there was no error
error is here
Code:
static const struct sensor_t sSensorList[] = {
{ "BMA150 3-axis Accelerometer",
"Bosh",
1, SENSORS_HANDLE_BASE+ID_A,
37-> SENSOR_TYPE_ACCELEROMETER, 4.0f*9.81f, (4.0f*9.81f)/256.0f, 0.2f, 0, { } },
...........

Related

[ GUIDE ] How to Setup Ubuntu 14.10 Utopic Unicorn to Compile Android ROMs

--- If you would rather use a ready-to-go Virtual Machine, check out my post here. ---
--- Copied with permission from http://nathanpfry.com ---
TLDR; if you don't care about an explanation of what your system is doing,
click here to check out XDA Senior Member Aaahh's sweet two-step method based on my guide below.
Otherwise, keep reading!​
With a new version of Ubuntu comes an update to my world-famous guide for setting up a build environment to compile Android ROMs. The aim of this guide is to simplify the configuration process for you.
Follow the directions step-by-step. All you have to do is copy and paste the code sections in order and you will be up and running in no time!
This guide applies to all variations of Ubuntu 14.10 Utopic Unicorn 64 bit. Do not use the 32 Bit version.
Also, PAY CLOSE ATTENTION when to use "sudo" and when to not. It can make things funky if you do something as root that you shouldn't.
Much thanks goes out to Google, ProTekk, Canonical, and everyone else that I read a random paragraph here and snippet there.
Ready to begin? Ok.
1) Unless it's a completely fresh Ubuntu installation, many of you may have the wrong version of Java installed. Let's fix that first.
The command below makes sure you're starting with a clean slate. Copy and paste it into a terminal (command prompt) window:
Code:
sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*
If necessary, follow the on-screen instructions to remove any previous versions. Otherwise, move on to the next step.
It's time to install Java, one of the core pieces for compiling Android ROMs. Depending on which version of Android you are building, you will need the corresponding version of the Java Development Kit.
*** IF YOU ARE BUILDING ANDROID GINGERBREAD THRU KITKAT (2.3 - 4.4.x) USE THESE INSTRUCTIONS FOR JDK 6***
2) Copy and paste the following into the terminal:
Code:
sudo add-apt-repository ppa:webupd8team/java
This will add the correct PPA to your system for updated builds of Java 6 JDK.
3) Now you need to install the package. More copy-paste:
Code:
sudo apt-get update && sudo apt-get install oracle-java6-installer
Follow the on-screen instructions. You must accept the Licensing Agreement to complete the install.
Press Enter to acknowledge the "OK", then tab over to "Yes" and press Enter again to accept the license. The installation will continue automatically.
4) Let's make sure the correct version of Java is activated. Run the terminal command:
Code:
java -version
You should see something like:
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
Continue to Step 5.
*** IF YOU ARE BUILDING ANDROID L AND ABOVE (CURRENT AOSP MASTER BRANCH) USE THESE INSTRUCTIONS FOR JDK 7***
2) Install Open-JDK 7 for the necessary Java development tools.
Code:
sudo apt-get update && sudo apt-get install openjdk-7-jdk
Follow the on-screen instructions.
3) Let's make sure the correct version of Java is activated. Run the terminal command:
Code:
java -version
You should see something like OpenJDK 1.7
Continue on to Step 5.
5) Back to a fresh terminal prompt. Install the main build tools with this command:
Code:
sudo apt-get install git gnupg ccache lzop flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z1-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc libreadline6-dev lib32readline-gplv2-dev libncurses5-dev bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev squashfs-tools pngcrush schedtool dpkg-dev
6) When those are done installing, run the next line in your terminal window:
Code:
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
That's it on the package side of things. You guessed it, time for more Terminal. This really is the easiest way, I promise.
7) A program called "repo" lets you communicate with git servers and download all that precious source code. The next command will install it:
Code:
mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo
8) Use your favorite text editor to open ~/.bashrc - I like nano:
Code:
sudo nano ~/.bashrc
9) At the very bottom (use the Page Down key) paste this code to a new (empty) line:
Code:
export PATH=~/bin:$PATH
10) Save it. In nano that would be Ctrl-O and then Enter. Then Ctrl-X to exit back to a prompt. Restart bash:
Code:
source ~/.bashrc
11) In the terminal, navigate to where you would like to download the Android source code. The commands below will make it in your home folder, but if you have limited space you may want to create it somewhere else. Faster is better, i.e. SSD would be best, USB external (even 3.0) will be comparatively slow. Here we go:
Code:
mkdir ~/android
cd ~/android
12) Now you're going to initialize the repo. This is where you decide the flavor of Android you want to build, i.e. AOKP, CyanogenMod, AOSP etc.
For the purposes of the tutorial, here's the command for AOKP KitKat:
Code:
repo init -u git://github.com/AOKP/platform_manifest.git -b kitkat
13) Almost there. Last step, it's a doozy. Time to get the source. Prepare yourself, 10+ GB of downloading await.
Don't worry, it's automated.
Hey everyone, it's the final terminal command:
Code:
repo sync
Check back periodically every hour or so. It all depends on how fast your connection is.
That should be everything. Now you're ready to build Android the right way. Good luck!
Feel free to buy me a coconut water (donate) if you like my work. It would be greatly appreciated!
Please hit the "Thanks" button if this post helped you out!​
Error while compiling in ubuntu 14.04
i am trying to build aosp_2.3.x using above instruction but facing problem
i am using ubuntu 14.04 64 bit
[email protected]:/home/hackjack/Desktop/aosp_2.3.x# . build/envsetup.sh
including device/htc/passion/vendorsetup.sh
including device/samsung/crespo4g/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
[email protected]:/home/hackjack/Desktop/aosp_2.3.x# lunch
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
2. full_x86-eng
3. simulator
4. full_passion-userdebug
5. full_crespo4g-userdebug
6. full_crespo-userdebug
Which would you like? [full-eng] 1
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
[email protected]:/home/hackjack/Desktop/aosp_2.3.x# make -j6
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
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
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
frameworks/base/tools/aapt/StringPool.cpp:1:0: note: this is the location of the previous definition
//
^
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
frameworks/base/tools/aapt/Command.cpp:1:0: note: this is the location of the previous definition
//
^
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
frameworks/base/tools/aapt/Package.cpp:1:0: note: this is the location of the previous definition
//
^
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
frameworks/base/tools/aapt/AaptAssets.cpp:1:0: note: this is the location of the previous definition
//
^
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
frameworks/base/tools/aapt/Main.cpp:1:0: note: this is the location of the previous definition
//
^
frameworks/base/tools/aapt/XMLNode.cpp:1:0: note: this is the location of the previous definition
//
^
In file included from frameworks/base/tools/aapt/Main.h:10:0,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/StringPool.cpp:7:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
In file included from frameworks/base/tools/aapt/Main.h:10:0,
from frameworks/base/tools/aapt/Main.cpp:6:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
In file included from frameworks/base/include/utils/AssetManager.h:23:0,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
In file included from frameworks/base/include/utils/AssetManager.h:23: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/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
In file included from frameworks/base/include/utils/AssetManager.h:23: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/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
In file included from frameworks/base/include/utils/ZipFileRO.h:35:0,
from frameworks/base/include/utils/AssetManager.h:29,
from frameworks/base/tools/aapt/AaptAssets.h:10,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
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/Main.h:10:0,
from frameworks/base/tools/aapt/Package.cpp:6:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
In file included from frameworks/base/tools/aapt/Main.h:10:0,
from frameworks/base/tools/aapt/Command.cpp:6:
frameworks/base/include/utils/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
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]
};
^
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:23: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/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
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:efaultKeyedVector<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]
ssize_t i = indexOfKey(key);
^
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:23: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/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
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=]
printf("String #%ld: %s\n", s, str);
^
In file included from frameworks/base/tools/aapt/Main.h:10:0,
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/threads.h:259:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(const char* name) {
^
frameworks/base/include/utils/threads.h:262:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline Mutex::Mutex(int type, const char* name) {
^
frameworks/base/include/utils/threads.h:351:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(const char* name) {
^
frameworks/base/include/utils/threads.h:354:8: warning: unused parameter ‘name’ [-Wunused-parameter]
inline RWLock::RWLock(int type, const char* name) {
^
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:efaultKeyedVector<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]
ssize_t i = indexOfKey(key);
^
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:efaultKeyedVector<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]
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]
};
^
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/Main.o] Error 1
make: *** Waiting for unfinished jobs....
frameworks/base/tools/aapt/AaptAssets.cpp:1877:1: warning: unused parameter ‘bundle’ [-Wunused-parameter]
AaptAssets::slurpResourceZip(Bundle* bundle, const char* filename)
^
In file included from frameworks/base/include/utils/AssetManager.h:23: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/Asset.h:299:17: warning: unused parameter ‘outStart’ [-Wunused-parameter]
virtual int openFileDescriptor(off_t* outStart, off_t* outLength) const { return -1; }
^
frameworks/base/include/utils/Asset.h:299:17: warning: unused parameter ‘outLength’ [-Wunused-parameter]
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:efaultKeyedVector<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]
ssize_t i = indexOfKey(key);
^
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/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]
};
^
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<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:efaultKeyedVector<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/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/StringPool.o] Error 1
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/AaptAssets.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/Package.cpp:6:
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android:efaultKeyedVector<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]
ssize_t i = indexOfKey(key);
^
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:efaultKeyedVector<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:efaultKeyedVector<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]
ssize_t i = indexOfKey(key);
^
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:efaultKeyedVector<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
frameworks/base/tools/aapt/XMLNode.cpp:176:10: warning: unused parameter ‘bundle’ [-Wunused-parameter]
status_t parseStyledString(Bundle* bundle,
^
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/Package.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:efaultKeyedVector<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]
ssize_t i = indexOfKey(key);
^
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:efaultKeyedVector<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/Command.o] Error 1
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/XMLNode.o] Error 1
[email protected]:/home/hackjack/Desktop/aosp_2.3.x#
Click to expand...
Click to collapse
i have highligted the error message
i am using aosp as base rom
below is the command use to get the repo
repo init -u https // android [dot] googlesource [dot] com/platform/manifest.git -b gingerbread

[Q]Xiaomi Red rice 1S. Problems with cm11

Hello.
I want create cm11 for red rice 1s and i have this error
Code:
target thumb C: tc <= external/iproute2/tc/q_prio.c
external/iproute2/tc/q_prio.c: In function 'prio_parse_opt':
external/iproute2/tc/q_prio.c:35:9: warning: excess elements in struct initializer [enabled by default]
external/iproute2/tc/q_prio.c:35:9: warning: (near initialization for 'opt') [enabled by default]
external/iproute2/tc/q_prio.c:60:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:64:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:85:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/iproute2/tc/q_prio.c:31:46: warning: unused parameter 'qu' [-Wunused-parameter]
external/iproute2/tc/q_prio.c: In function 'prio_print_opt':
external/iproute2/tc/q_prio.c:133:30: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
make: *** [/home/lenovo/cm11/out/target/product/armani/obj/EXECUTABLES/tc_intermediates/q_prio.o] Ошибка 1
maybe somebody can help me?

Who can help me to finish my cm12 build? I am in truble!

I want to build cm12 on samsung jfltexx (S4) by Ubuntu 14.04,but it can not.
i follow this to build CM12 http://wiki.cyanogenmod.org/w/Build_for_jfltexx
That is my setp
1.repo sync cm12 codes (it takes me 3 days...):crying:
2.download samsung codes
https://github.com/CyanogenMod/android_device_samsung_jfltexx ---rename jfltexx and copy to device/samsung/
https://github.com/broodplank/samsung-kernel-jfltexx ---rename kernel and copy to out/target/product/jfltexx/
https://github.com/CyanogenMod/android_device_samsung_jf-common ---remane jf-common and copy to device/samsung/
https://github.com/CyanogenMod/android_device_samsung_qcom-common ---remane and copy to device/samsung/
3.
$ source build/envsetup.sh
$ breakfast jfltexx
$ cd device/samsung/jfltexx
--connect my phone to computer
$ ./extract-files.sh
--(but no files found)
--copy the system folder from "cm12-plus-5.0-Beta5.1-jfltexx.zip" to vendor/samsung/jfltexx/
--copy jf-common to vendor/samsung/jfltexx
$ croot
$ brunch jfltexx
--now build is start
but a few minutes later, it show that code and stop to build
i am new here and my english is bad sorry.
and i am new to build android source code,please help me to fix it,thank you!
--------------------------------------------------------------------------------------------------------------------------------------------------------
target arm C: libunz <= external/zlib/src/inftrees.c
target arm C: libunz <= external/zlib/src/inffast.c
target arm C: libunz <= external/zlib/src/trees.c
target arm C: libunz <= external/zlib/src/uncompr.c
target arm C: libunz <= external/zlib/src/zutil.c
Import includes file: /home/qwejay/android/cm/out/target/product/jfltexx/obj/EXECUTABLES/alsaucm_test_intermediates/import_includes
target thumb C: libalsa-intf <= hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_mixer.c
target thumb C: libalsa-intf <= hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c
target thumb C: libalsa-intf <= hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_mixer.c:33:23: fatal error: sound/tlv.h: No such file or directory
#include <sound/tlv.h>
^
compilation terminated.
make: *** [/home/qwejay/android/cm/out/target/product/jfltexx/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o] error 1
make: *** Waiting for the unfinished task....
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:139:31: error: 'SND_AUDIOCODEC_AC3_PASS_THROUGH' undeclared here (not in a function)
FORMAT_AC3_PASS_THROUGH = SND_AUDIOCODEC_AC3_PASS_THROUGH,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:141:31: error: 'SND_AUDIOCODEC_WMA_PRO' undeclared here (not in a function)
FORMAT_WMA_PRO = SND_AUDIOCODEC_WMA_PRO,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:142:31: error: 'SND_AUDIOCODEC_DTS' undeclared here (not in a function)
FORMAT_DTS = SND_AUDIOCODEC_DTS,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:143:31: error: 'SND_AUDIOCODEC_DTS_LBR' undeclared here (not in a function)
FORMAT_DTS_LBR = SND_AUDIOCODEC_DTS_LBR,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:144:31: error: 'SND_AUDIOCODEC_DTS_PASS_THROUGH' undeclared here (not in a function)
FORMAT_DTS_PASS_THROUGH = SND_AUDIOCODEC_DTS_PASS_THROUGH,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_avail':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:443:9: warning: format '%d' expects argument of type 'int', but argument 4 has type 'snd_pcm_uframes_t' [-Wformat=]
ALOGV("hw_ptr = %d buf_size = %d appl_ptr = %d\n",
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:443:9: warning: format '%d' expects argument of type 'int', but argument 6 has type 'snd_pcm_uframes_t' [-Wformat=]
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'appl_pt_forward':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:483:3: warning: too many arguments for format [-Wformat-extra-args]
ALOGE("appl_ptr %ld set to ld",
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'dst_address':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:561:22: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
return pcm->addr + pcm_offset;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'mmap_transfer':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:565:57: warning: unused parameter 'offset' [-Wunused-parameter]
int mmap_transfer(struct pcm *pcm, void *data, unsigned offset,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'mmap_transfer_capture':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:620:26: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
src_addr = pcm->addr + pcm_offset;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:596:65: warning: unused parameter 'offset' [-Wunused-parameter]
int mmap_transfer_capture(struct pcm *pcm, void *data, unsigned offset,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_write_mmap':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:682:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((bytes_written >= pcm->sw_p->start_threshold) && (!pcm->start)) {
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:643:50: warning: unused parameter 'data' [-Wunused-parameter]
static int pcm_write_mmap(struct pcm *pcm, void *data, unsigned count)
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'enable_timer':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:825:8: warning: return makes integer from pointer without a cast [enabled by default]
return &bad_pcm;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:854:11: warning: return makes integer from pointer without a cast [enabled by default]
return &bad_pcm;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_open':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:939:9: warning: return makes pointer from integer without a cast [enabled by default]
return -EINVAL;
^
make: *** [/home/qwejay/android/cm/out/target/product/jfltexx/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_pcm.o] error 1
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_identifier':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:78:43: warning: unused parameter 'fmt' [-Wunused-parameter]
char *snd_use_case_identifier(const char *fmt, ...)
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_free_list':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:90:40: warning: parameter 'list' set but not used [-Wunused-but-set-parameter]
int snd_use_case_free_list(const char *list[], int items)
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:90:52: warning: unused parameter 'items' [-Wunused-parameter]
int snd_use_case_free_list(const char *list[], int items)
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_get_list':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:133:15: warning: assignment from incompatible pointer type [enabled by default]
*list = (char ***)uc_mgr->card_ctxt_ptr->verb_list;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:157:15: warning: assignment from incompatible pointer type [enabled by default]
*list = verb_list[verb_index].device_list;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:181:15: warning: assignment from incompatible pointer type [enabled by default]
*list = verb_list[verb_index].modifier_list;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_apply_mixer_controls':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:936:65: warning: comparison between pointer and integer [enabled by default]
(check_devices_for_voice_call(uc_mgr, use_case) != NULL))
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_mgr_reload':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:2207:49: warning: unused parameter 'uc_mgr' [-Wunused-parameter]
int snd_use_case_mgr_reload(snd_use_case_mgr_t *uc_mgr) {
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'print_list':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:3324:47: warning: unused parameter 'verb_index' [-Wunused-parameter]
static int print_list(card_mctrl_t *list, int verb_index, int count)
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'free_list':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:3884:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mindex < list[case_index].ena_mixer_list[index].value;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:3902:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mindex < list[case_index].dis_mixer_list[index].value;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:3870:40: warning: unused parameter 'verb_index' [-Wunused-parameter]
void free_list(card_mctrl_t *list, int verb_index, int count)
^
--------------------------------------------------------------------------------------------------------------------------------------------------------
I can not fix it X(;
#include <sound/tlv.h>
It is strange. There is something very wrong with this source code. Technically the solution is finding that tlv.h and copying it into that "sound" directory. However, if a source code can't build because of an inclusion error, this means that either the repo is broken or the source code you downloaded is broken for some reason. Fixing that error will just throw another one, not worth trying.
By the way, I don't get all the downloading and renaming part, that's explained in a different way on the guide! In order to get the files specific to the device:
Breakfast jfltexx
./extract-files.sh
And then build it! If you are getting problems with the building of the vendor apps, look for "TheMuppets" github page.
Why are you building cm12? 12.1 is the latest.
Ciuffy's SM-G900F CM 12.1 spirit hath marked this way.

[Update] [CWM] [Recovery] [v6.0.5.1] [v3] [CM-11.0] [Star Pro | Plus] [GT-S7262]

CWM Recovery v6.0.5.1 v3
* Your warranty is now void.
* I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed.
* Please do some research if you have any concerns about features included in this Kernel before flashing it! You are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
Click to expand...
Click to collapse
For Help: https://www.facebook.com/groups/GTS7262/
Functionality (Navigation, Selection buttons):
Up - Volume Up
Down - Volume Down
Select - Power, Home
Back - Home's Right, Power (Click on ++++Go Back++++)
Changelog: v1.0
1) Initial release of CWM Recovery v6.0.5.1
2) fstab.sc6820i v2
3) SELinux support
4) Compiled with Cyanogenmod 11.0 and Star Kernel v3 source
5) Install flashable zip from Internal Storage (External Storage support by default)
6) Backup, Restore, Delete from Internal Storage (External Storage support by default)
7) Misc changes in Mounts and Storage
8) Fix issue where android device manager, etc, dont actually wipe data.
--wipe_data issues via /cache/recovery/command will now completely format data.
9) All other manual wipe commands will preserve data on /data/media.
10) There is another mounts/storage option that will do a true data format.
11) No need of flashing back Stock ROM and/or kernel before flashing this recovery.
Changelog: v2
1) Better visible graphics.
2) SELinux policies changes
3) Other misc changes in kernel source
4) Other misc recovery changes
Changelog: v3
1) Now "Home" button will also act like "Select" button
2) Rainbow mode enabled, you can now see the rainbow changes effectively. Keep scrolling through the menu at least 5 times fully and experience the fun.
3) SELinux policies updated
4) Added "init.recovery.sc6820i.rc" for better compatibility
5) Now using default stock samsung kernel source (no changes for drivers etc) with fixes for compiling "Cyanogenmod" and selinux changes in defconfig
6) Other misc recovery changes
Installation:
Download attached cwm-recovery-s7262-v6.0.5.1-v3.tar.md5 and Odin 3.zip files to your PC.
Extract the downloaded Odin 3.zip file, run Odin3 v3.07 as administrator.
Power off your device, press and hold Volume Down + Home + Power buttons at the same time until you see a Warning with an Yellow Triangle.
Now press Volume Up button. Your phone now is in ODIN MODE (Download Mode).
Connect your phone to your PC via USB Cable and wait until you get a blue sign in Odin3 with an Added! message.
Now in Odin, un-check everything, except F-Reset Time. Click on PDA and choose the cwm-recovery-s7262-v6.0.5.1-v3.tar.md5 file.
Click the Start button, sit back and wait for a few seconds to let the process complete. When you see a green PASS message on Odin, remove the USB Cable and then remove the battery for 2 minutes.
Attach the battery again, press Power button for 2 seconds and then simultaneously press and hold Volume Up + Home buttons at the same time. You will then see a small red colored mark on the top left corner of the screen. Release the power button and keep pressing other buttons (atleast the Volume Up button). Your mobile now will enter into CWM Recovery mode.
Note: If your phone still doesn’t boot into CWM Recovery mode then you will need to:
Download attached ADB.zip file and extract the contents to your C:/ drive in windows.
Power on your mobile, go to Settings -> Developer Options -> Enable Developer Options -> Check USB debugging -> Home.
Now connect your device to PC with a USB Cable, press Windows + R button to open Run prompt. Type cmd and hit enter.
Type cd/ and hit enter. Type cd ADB and hit enter. Type adb devices and hit enter. If you found some random number as attached device then your mobile is connected in USB debugging mode else make sure you followed correct steps or install Samsung driver and repeat the steps.
Now type adb reboot recovery and hit enter. Your phone will now reboot into CWM Recovery. Remove the USB Cable.
Download(s):
CWM v6.0.5.1 v3: https://www.up-4ever.org/dfqzcx50gtbi
Odin3: https://www.up-4ever.org/35vxd0t9mwef
ADB: https://drive.google.com/file/d/0B8BX0zYYXQ1YZFV3OVVETVFHNVU/view?pli=1
XDA:DevDB Information
CWM Recovery v6.0.5.1, Tool/Utility for the Samsung Galaxy Star
Contributors
ItsAnilSingh
Source Code: https://github.com/CyanogenMod/android_bootable_recovery/tree/cm-11.0
Version Information
Status: Stable
Current Stable Version: v3
Stable Release Date: 2016-01-17
Created 2015-11-18
Last Updated 2020-01-07
For screenshots, click on Screenshots tab of the dev project.
anilsingh1605 said:
For screenshots, click on Screenshots tab of the dev project.
Click to expand...
Click to collapse
I sent you an email through GitHub about a month and a half ago... sorry to bug you, but would you be willing to answer it?
Sent from my SGH-M919 using XDA Free mobile app
Qiangong2 said:
I sent you an email through GitHub about a month and a half ago... sorry to bug you, but would you be willing to answer it?
Sent from my SGH-M919 using XDA Free mobile app
Click to expand...
Click to collapse
I replied to that email long ago. Check github or your email folders.
anilsingh1605 said:
I replied to that email long ago. Check github or your email folders.
Click to expand...
Click to collapse
Sorry, but I have no record of it
Qiangong2 said:
Sorry, but I have no record of it
Click to expand...
Click to collapse
Can you link me to that query in github?
anilsingh1605 said:
Can you link me to that query in github?
Click to expand...
Click to collapse
It wasn't a GitHub query. I sent it from my personal email to yours
Sent from my SGH-M919 using XDA Free mobile app
anilsingh1605 said:
Can you link me to that query in github?
Click to expand...
Click to collapse
Thanks for trying. After about ten attempts, I believe I finally made a test build I used your GitHub trees, just so you know. I hope that's fine
Qiangong2 said:
It wasn't a GitHub query. I sent it from my personal email to yours
Sent from my SGH-M919 using XDA Free mobile app
Click to expand...
Click to collapse
Qiangong2 said:
Thanks for trying. After about ten attempts, I believe I finally made a test build I used your GitHub trees, just so you know. I hope that's fine
Click to expand...
Click to collapse
My Cyanogenmod 10.1 device tree? Its open source, you can use it as you like with a little credits when you release the stuff.
By the way, what device are you compiling for? How was the test build? I moved to CM 11.0, abandoned CM 10.1 because of RIL issues.
anilsingh1605 said:
My Cyanogenmod 10.1 device tree? Its open source, you can use it as you like with a little credits when you release the stuff.
Click to expand...
Click to collapse
Okay, some people just want their explicit permission before using it. Just checking is all.
By the way, what device are you compiling for? How was the test build? I moved to CM 11.0, abandoned CM 10.1 because of RIL issues.
Click to expand...
Click to collapse
I'm still building... I have 2gigs of RAM and no SSD. It will take a while. Also a dual core CPU. And no ccache. Yay. Will report tomorrow if it works. So far no build errors though. I'm building CyanogenMod 10.1 for the s7262. I plan on trying an Ubuntu touch port if this works.
Qiangong2 said:
Okay, some people just want their explicit permission before using it. Just checking is all.
I'm still building... I have 2gigs of RAM and no SSD. It will take a while. Also a dual core CPU. And no ccache. Yay. Will report tomorrow if it works. So far no build errors though. I'm building CyanogenMod 10.1 for the s7262. I plan on trying an Ubuntu touch port if this works.
Click to expand...
Click to collapse
10.1 won't work. Now trying ishantvivek's cm-11 device tree
Sent from my SGH-M919 using XDA Free mobile app
Snip
Sorry for replying late but I was busy in personal works, hence couldn't login and reply.
Qiangong2 said:
10.1 won't work. Now trying ishantvivek's cm-11 device tree
Sent from my SGH-M919 using XDA Free mobile app
Click to expand...
Click to collapse
10.1 has RIL and wifi issues, that is the reason I am not releasing the ROMs. Switched to CM11.0 for the same reason.
Qiangong2 said:
Yay. Another reply....
but, i ran into a problem.
Code:
/home/me/Pictures/haaaap/kernel/samsung/logan2g/drivers/gpu/mali/mali/Kbuild:49: "USING_PROFILING not supported, disabling."
/home/me/Pictures/haaaap/kernel/samsung/logan2g/drivers/gpu/mali/mali/Kbuild:116: Current directory is /home/me/Pictures/haaaap/out/target/product/logan2g/obj/KERNEL_OBJ/drivers/gpu/mali/mali
/home/me/Pictures/haaaap/kernel/samsung/logan2g/drivers/gpu/mali/mali/Kbuild:117: *** No configuration found for config sc8825. Check that arch-sc8825/config.h exists. Stop.
make[5]: *** [drivers/gpu/mali/mali] Error 2
make[4]: *** [drivers/gpu/mali] Error 2
make[3]: *** [drivers/gpu] Error 2
make[2]: *** [drivers] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/kurt/Pictures/haaaap/kernel/samsung/logan2g'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/Pictures/haaaap$
Do you have any idea what my problem is? I'm using FireLord1's kernel source and device source, and i've built prebuilts. i have term.apk which it gave me an error about before.
Any help is appreciated,
Qiangong2
Click to expand...
Click to collapse
Use kernel source from this repo of mine. It has fixes https://github.com/ItsAnilSingh
anilsingh1605 said:
Sorry for replying late but I was busy in personal works, hence couldn't login and reply.
Click to expand...
Click to collapse
Errors:
Code:
external/e2fsprogs/e2fsck/problem.c:891:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1196:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1196:4: warning: (near initialization for 'problem_table[212].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1201:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1201:4: warning: (near initialization for 'problem_table[213].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1206:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1206:4: warning: (near initialization for 'problem_table[214].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1211:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1211:4: warning: (near initialization for 'problem_table[215].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1216:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1216:4: warning: (near initialization for 'problem_table[216].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1221:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1221:4: warning: (near initialization for 'problem_table[217].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1226:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1226:4: warning: (near initialization for 'problem_table[218].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1231:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1231:4: warning: (near initialization for 'problem_table[219].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1236:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1236:4: warning: (near initialization for 'problem_table[220].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1240:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1240:4: warning: (near initialization for 'problem_table[221].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1245:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1245:4: warning: (near initialization for 'problem_table[222].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1250:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1250:4: warning: (near initialization for 'problem_table[223].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1255:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1255:4: warning: (near initialization for 'problem_table[224].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1260:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1260:4: warning: (near initialization for 'problem_table[225].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1265:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1265:4: warning: (near initialization for 'problem_table[226].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1270:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1270:4: warning: (near initialization for 'problem_table[227].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1275:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1275:4: warning: (near initialization for 'problem_table[228].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1280:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1280:4: warning: (near initialization for 'problem_table[229].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1285:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1285:4: warning: (near initialization for 'problem_table[230].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1290:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1290:4: warning: (near initialization for 'problem_table[231].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1295:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1295:4: warning: (near initialization for 'problem_table[232].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1299:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1299:4: warning: (near initialization for 'problem_table[233].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1304:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1304:4: warning: (near initialization for 'problem_table[234].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1309:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1309:4: warning: (near initialization for 'problem_table[235].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1314:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1314:4: warning: (near initialization for 'problem_table[236].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1321:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1321:4: warning: (near initialization for 'problem_table[237].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1326:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1326:4: warning: (near initialization for 'problem_table[238].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1331:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1331:4: warning: (near initialization for 'problem_table[239].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1336:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1336:4: warning: (near initialization for 'problem_table[240].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1341:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1341:4: warning: (near initialization for 'problem_table[241].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1346:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1346:4: warning: (near initialization for 'problem_table[242].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1351:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1351:4: warning: (near initialization for 'problem_table[243].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1356:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1356:4: warning: (near initialization for 'problem_table[244].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1361:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1361:4: warning: (near initialization for 'problem_table[245].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1366:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1366:4: warning: (near initialization for 'problem_table[246].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1371:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1371:4: warning: (near initialization for 'problem_table[247].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1376:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1376:4: warning: (near initialization for 'problem_table[248].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1381:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1381:4: warning: (near initialization for 'problem_table[249].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1386:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1386:4: warning: (near initialization for 'problem_table[250].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1391:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1391:4: warning: (near initialization for 'problem_table[251].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1396:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1396:4: warning: (near initialization for 'problem_table[252].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1401:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1401:4: warning: (near initialization for 'problem_table[253].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1406:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1406:4: warning: (near initialization for 'problem_table[254].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1411:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1411:4: warning: (near initialization for 'problem_table[255].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1416:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1416:4: warning: (near initialization for 'problem_table[256].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1421:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1421:4: warning: (near initialization for 'problem_table[257].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1426:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1426:4: warning: (near initialization for 'problem_table[258].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1431:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1431:4: warning: (near initialization for 'problem_table[259].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1436:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1436:4: warning: (near initialization for 'problem_table[260].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1443:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1443:4: warning: (near initialization for 'problem_table[261].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1448:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1448:4: warning: (near initialization for 'problem_table[262].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1453:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1453:4: warning: (near initialization for 'problem_table[263].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1458:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1458:4: warning: (near initialization for 'problem_table[264].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1463:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1463:4: warning: (near initialization for 'problem_table[265].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1468:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1468:4: warning: (near initialization for 'problem_table[266].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1475:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1475:4: warning: (near initialization for 'problem_table[267].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1480:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1480:4: warning: (near initialization for 'problem_table[268].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1485:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1485:4: warning: (near initialization for 'problem_table[269].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1490:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1490:4: warning: (near initialization for 'problem_table[270].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1497:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1497:4: warning: (near initialization for 'problem_table[271].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1504:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1504:4: warning: (near initialization for 'problem_table[272].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1509:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1509:4: warning: (near initialization for 'problem_table[273].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1514:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1514:4: warning: (near initialization for 'problem_table[274].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1519:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1519:4: warning: (near initialization for 'problem_table[275].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1524:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1524:4: warning: (near initialization for 'problem_table[276].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1529:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1529:4: warning: (near initialization for 'problem_table[277].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1534:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1534:4: warning: (near initialization for 'problem_table[278].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1539:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1539:4: warning: (near initialization for 'problem_table[279].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1544:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1544:4: warning: (near initialization for 'problem_table[280].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1549:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1549:4: warning: (near initialization for 'problem_table[281].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1554:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1554:4: warning: (near initialization for 'problem_table[282].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1559:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1559:4: warning: (near initialization for 'problem_table[283].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1564:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1564:4: warning: (near initialization for 'problem_table[284].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1569:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1569:4: warning: (near initialization for 'problem_table[285].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1574:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1574:4: warning: (near initialization for 'problem_table[286].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1579:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1579:4: warning: (near initialization for 'problem_table[287].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1585:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1585:4: warning: (near initialization for 'problem_table[288].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1590:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1590:4: warning: (near initialization for 'problem_table[289].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1595:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1595:4: warning: (near initialization for 'problem_table[290].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1600:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1600:4: warning: (near initialization for 'problem_table[291].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1605:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1605:4: warning: (near initialization for 'problem_table[292].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1610:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1610:4: warning: (near initialization for 'problem_table[293].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1615:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1615:4: warning: (near initialization for 'problem_table[294].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1620:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1620:4: warning: (near initialization for 'problem_table[295].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1625:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1625:4: warning: (near initialization for 'problem_table[296].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1630:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1630:4: warning: (near initialization for 'problem_table[297].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1637:4: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1637:4: warning: (near initialization for 'problem_table[298].second_code') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1639:2: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1639:2: warning: (near initialization for 'problem_table[299].e2p_description') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1649:2: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1649:2: warning: (near initialization for 'pr_latch_info[0].flags') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1650:2: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1650:2: warning: (near initialization for 'pr_latch_info[1].flags') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1651:2: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1651:2: warning: (near initialization for 'pr_latch_info[2].flags') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1652:2: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1652:2: warning: (near initialization for 'pr_latch_info[3].flags') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1653:2: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1653:2: warning: (near initialization for 'pr_latch_info[4].flags') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1654:2: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1654:2: warning: (near initialization for 'pr_latch_info[5].flags') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1655:2: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1655:2: warning: (near initialization for 'pr_latch_info[6].flags') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1656:2: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1656:2: warning: (near initialization for 'pr_latch_info[7].flags') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1657:2: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1657:2: warning: (near initialization for 'pr_latch_info[8].flags') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1658:2: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1658:2: warning: (near initialization for 'pr_latch_info[9].flags') [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1659:2: warning: missing initializer [-Wmissing-field-initializers]
external/e2fsprogs/e2fsck/problem.c:1659:2: warning: (near initialization for 'pr_latch_info[10].flags') [-Wmissing-field-initializers]
host C: e2fsck_host <= external/e2fsprogs/e2fsck/ea_refcount.c
host C: e2fsck_host <= external/e2fsprogs/e2fsck/rehash.c
host C: e2fsck_host <= external/e2fsprogs/e2fsck/region.c
external/e2fsprogs/e2fsck/rehash.c: In function 'fill_dir_block':
external/e2fsprogs/e2fsck/rehash.c:124:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/e2fsprogs/e2fsck/rehash.c: In function 'copy_dir_entries':
external/e2fsprogs/e2fsck/rehash.c:443:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/e2fsprogs/e2fsck/rehash.c: In function 'e2fsck_rehash_dir':
external/e2fsprogs/e2fsck/rehash.c:752:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/e2fsprogs/e2fsck/rehash.c: In function 'e2fsck_rehash_directories':
external/e2fsprogs/e2fsck/rehash.c:829:28: warning: variable 'dir_index' set but not used [-Wunused-but-set-variable]
external/e2fsprogs/e2fsck/rehash.c: In function 'e2fsck_rehash_dir':
external/e2fsprogs/e2fsck/rehash.c:483:30: warning: 'rec_len' may be used uninitialized in this function [-Wmaybe-uninitialized]
external/e2fsprogs/e2fsck/rehash.c:406:16: note: 'rec_len' was declared here
host SharedLib: libext2_com_err_host (/home/kurt/Pictures/qaanaaq/out/host/linux-x86/obj/lib/libext2_com_err_host.so)
host SharedLib: libext2_uuid_host (/home/kurt/Pictures/qaanaaq/out/host/linux-x86/obj/lib/libext2_uuid_host.so)
host SharedLib: libext2_e2p_host (/home/kurt/Pictures/qaanaaq/out/host/linux-x86/obj/lib/libext2_e2p_host.so)
host SharedLib: libext2_profile_host (/home/kurt/Pictures/qaanaaq/out/host/linux-x86/obj/lib/libext2_profile_host.so)
Install: /home/kurt/Pictures/qaanaaq/out/host/linux-x86/lib/libext2_uuid_host.so
Install: /home/kurt/Pictures/qaanaaq/out/host/linux-x86/lib/libext2_com_err_host.so
Install: /home/kurt/Pictures/qaanaaq/out/host/linux-x86/lib/libext2_e2p_host.so
Install: /home/kurt/Pictures/qaanaaq/out/host/linux-x86/bin/validatekeymaps
Install: /home/kurt/Pictures/qaanaaq/out/host/linux-x86/framework/antlr-runtime.jar
Install: /home/kurt/Pictures/qaanaaq/out/host/linux-x86/framework/guavalib.jar
Copying: /home/kurt/Pictures/qaanaaq/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-jarjar.jar
host Prebuilt: jarjar (/home/kurt/Pictures/qaanaaq/out/host/common/obj/JAVA_LIBRARIES/jarjar_intermediates/javalib.jar)
Install: /home/kurt/Pictures/qaanaaq/out/host/linux-x86/bin/aidl
Install: /home/kurt/Pictures/qaanaaq/out/host/linux-x86/bin/aapt
target Prebuilt: (/home/kurt/Pictures/qaanaaq/out/target/product/logan2g/kernel)
acp: missing destination file
make: *** [/home/kurt/Pictures/qaanaaq/out/target/product/logan2g/kernel] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/Pictures/qaanaaq$
Help?
anilsingh1605 said:
Sorry for replying late but I was busy in personal works, hence couldn't login and reply.
10.1 has RIL and wifi issues, that is the reason I am not releasing the ROMs. Switched to CM11.0 for the same reason.
Use kernel source from this repo of mine. It has fixes https://github.com/ItsAnilSingh
Click to expand...
Click to collapse
Sorry about that last post it was about 11pm and I was beat
Here's what the code boils down to:
external/e2fsprogs/e2fsck/problem.c:1201:4: warning: missing initializer [-Wmissing-field-initializers]
Also, kernel make error 2
Sent from my SGH-M919 using XDA Free mobile app
Qiangong2 said:
Errors:
Code:
.............
Help?
Click to expand...
Click to collapse
Qiangong2 said:
Sorry about that last post it was about 11pm and I was beat
Here's what the code boils down to:
external/e2fsprogs/e2fsck/problem.c:1201:4: warning: missing initializer [-Wmissing-field-initializers]
Also, kernel make error 2
Sent from my SGH-M919 using XDA Free mobile app
Click to expand...
Click to collapse
Looks like you have outdated code for cm11.0
Delete external/e2fsprogs folder from cm source.
Download the android_external_e2fsprogs-cm-11.0.zip file from the following link and exact it in external directory of cm source.
https://github.com/CyanogenMod/android_external_e2fsprogs/archive/cm-11.0.zip
Rename android_external_e2fsprogs-cm-11.0 folder to e2fsprogs and compile again.
anilsingh1605 said:
Looks like you have outdated code for cm11.0
Delete external/e2fsprogs folder from cm source.
Download the android_external_e2fsprogs-cm-11.0.zip file from the following link and exact it in external directory of cm source.
https://github.com/CyanogenMod/android_external_e2fsprogs/archive/cm-11.0.zip
Rename android_external_e2fsprogs-cm-11.0 folder to e2fsprogs and compile again.
Click to expand...
Click to collapse
Okay. Fixed that. Now I'm getting RIL errors under classes debug jar. They are all under the device framework. I've tried using your tree, FireLord1's tree, ishantvivek's tree, and even 123vipulj's tree. All using your kernel (which builds the recovery and boot image fine).
I've attached the errors
Qiangong2 said:
Okay. Fixed that. Now I'm getting RIL errors under classes debug jar. They are all under the device framework. I've tried using your tree, FireLord1's tree, ishantvivek's tree, and even 123vipulj's tree. All using your kernel (which builds the recovery and boot image fine).
I've attached the errors
Click to expand...
Click to collapse
I did not update my device tree for CM-11.0 yet. The tree you are referring is for CM-10.1, all those people you mentioned use my tree atleast as a base. So, they will definitely generate error for RIL.
Instead, download the file from below link and then replace it with the existing one in device tree and compile again. No need to "make clean".
https://github.com/SamsungBCM-Cyano...android/internal/telephony/SamsungBCMRIL.java
Update: The file I uploaded was corrupt. Compiled again the recovery from source now and uploaded the working file. Please check the first post for updated link. Replaced the old link with newer one.
anilsingh1605 said:
Update: The file I uploaded was corrupt. Compiled again the recovery from source now and uploaded the working file. Please check the first post for updated link. Replaced the old link with newer one.
Click to expand...
Click to collapse
Thanks, it's building now just trying to figure out some minzip errors and then it should be good to go.
Sent from my SGH-M919 using XDA Free mobile app

Please help Android Kernel build error

Hi XDA Members.
I'm one of an amature-kernel developer.
I'm building Kernel for GT-I9506, and I have some problem with my kernel building.
When I add https://github.com/LineageOS/android_kernel_samsung_klte/commit/e48c0870dbfe9964d5973df9abd59ba238e6ed46
this commit, my kernel build makes error, but I can't find any way to fix a bug.
My kernel source is this: https://bitbucket.org/Kitakami/android_kernel_samsung_msm8974/overview
Error is :
Code:
/home/kitakami/msm8974/mm/zswap.c:432:15: error: variable ‘zswap_zs_ops’ has initializer but incomplete type
static struct zs_ops zswap_zs_ops = {
^~~~~~
/home/kitakami/msm8974/mm/zswap.c:433:3: error: ‘struct zs_ops’ has no member named ‘alloc’
.alloc = zswap_alloc_page,
^~~~~
/home/kitakami/msm8974/mm/zswap.c:433:11: warning: excess elements in struct initializer
.alloc = zswap_alloc_page,
^~~~~~~~~~~~~~~~
/home/kitakami/msm8974/mm/zswap.c:433:11: note: (near initialization for ‘zswap_zs_ops’)
/home/kitakami/msm8974/mm/zswap.c:434:3: error: ‘struct zs_ops’ has no member named ‘free’
.free = zswap_free_page
^~~~
/home/kitakami/msm8974/mm/zswap.c:434:10: warning: excess elements in struct initializer
.free = zswap_free_page
^~~~~~~~~~~~~~~
/home/kitakami/msm8974/mm/zswap.c:434:10: note: (near initialization for ‘zswap_zs_ops’)
/home/kitakami/msm8974/mm/zswap.c: In function ‘zswap_frontswap_store’:
/home/kitakami/msm8974/mm/zswap.c:816:11: error: too many arguments to function ‘zs_malloc’
handle = zs_malloc(tree->pool, dlen,
^~~~~~~~~
In file included from /home/kitakami/msm8974/mm/zswap.c:37:0:
/home/kitakami/msm8974/include/linux/zsmalloc.h:35:15: note: declared here
unsigned long zs_malloc(struct zs_pool *pool, size_t size);
^~~~~~~~~
/home/kitakami/msm8974/mm/zswap.c: In function ‘zswap_frontswap_init’:
/home/kitakami/msm8974/mm/zswap.c:1039:15: error: too many arguments to function ‘zs_create_pool’
tree->pool = zs_create_pool(GFP_NOWAIT, &zswap_zs_ops);
^~~~~~~~~~~~~~
In file included from /home/kitakami/msm8974/mm/zswap.c:37:0:
/home/kitakami/msm8974/include/linux/zsmalloc.h:32:17: note: declared here
struct zs_pool *zs_create_pool(gfp_t flags);
^~~~~~~~~~~~~~
/home/kitakami/msm8974/mm/zswap.c: At top level:
/home/kitakami/msm8974/mm/zswap.c:432:22: error: storage size of ‘zswap_zs_ops’ isn’t known
static struct zs_ops zswap_zs_ops = {
^~~~~~~~~~~~
Please understand my short English. I'm so sorry.

Categories

Resources