Please help Android Kernel build error - Android Q&A, Help & Troubleshooting

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.

Related

[Q] Errors while building vanila android

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, { } },
...........

Do Nexus 4 Kernels Work?

Do Nexus 4 kernels work on the Optimus G if you flash it to the proper partitions?
ie: fastboot flash boot kernel.img
NO. YOU WILL HARD BRICK.
Sent from my Optimus G using xda premium
WHAT?
Why would it hard brick if you flash it to the proper partition?
Talk to Shelnutt2, autoprime, houstonn, or another super user/dev like that. They actively discourage the usage of nexus kernels that are not modified. Your sd card, cap keys, and maybe some other stuff wouldn't work without kernel mods.
Sent from my Optimus G using xda premium
Ah okay, thank you.
Are there any kernels with sweep2wake? I can't seem to find any
ChummyDays said:
N4 doesn't have capacitive keys so no.
But there is a mod that let's you activate the phone by tapping or sliding the screen. (Its for the n4 only though)
Sent from my Optimus G using Tapatalk 2
Click to expand...
Click to collapse
Ah okay, so does that mean it cannot be used/modified for the Optimus G?
dancom96 said:
Why would it hard brick if you flash it to the proper partition?
Click to expand...
Click to collapse
It won't, but the problem is people just flash the zips, which are usually by partition # instead of by partition name, so people hard brick. Because of this we actively discourage it since hard bricking a $500 is not good. If you know enough to make sure it's flashed to the right partition then I won't discourage you. Most things will work.
Shelnutt2 said:
It won't, but the problem is people just flash the zips, which are usually by partition # instead of by partition name, so people hard brick. Because of this we actively discourage it since hard bricking a $500 is not good. If you know enough to make sure it's flashed to the right partition then I won't discourage you. Most things will work.
Click to expand...
Click to collapse
The n4 kernels only boot if your running the rpm/tz from the v20j ota.
Sent from my Optimus G using Tapatalk 4
I tried adding sweep2wake to B18c1 and I get stuck here:
make[3]: *** No rule to make target `drivers/input/touchscreen/sweep2wake.o', needed by `drivers/input/touchscreen/built-in.o'. Stop.
make[2]: *** [drivers/input/touchscreen] Error 2
make[1]: *** [drivers/input] Error 2
Do you know what that means?
dancom96 said:
I tried adding sweep2wake to B18c1 and I get stuck here:
make[3]: *** No rule to make target `drivers/input/touchscreen/sweep2wake.o', needed by `drivers/input/touchscreen/built-in.o'. Stop.
make[2]: *** [drivers/input/touchscreen] Error 2
make[1]: *** [drivers/input] Error 2
Do you know what that means?
Click to expand...
Click to collapse
Did you add the .c and the references to it in kconfig, makefile, and defconfig?
Sent from my LG-LS970 using xda app-developers app
xboxfanj said:
Did you add the .c and the references to it in kconfig, makefile, and defconfig?
Sent from my LG-LS970 using xda app-developers app
Click to expand...
Click to collapse
I was almost certain it wouldn't be that, but it was, thanks! Sweep2wake.c was in the wrong folder for some reason.
I'm now stuck here:
Code:
In file included from include/linux/delay.h:10:0,
from drivers/input/touchscreen/lge_touch_core.c:19:
drivers/input/touchscreen/lge_touch_core.c: In function 'lge_touch_attr_show':
include/linux/kernel.h:696:27: error: dereferencing pointer to incomplete type
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
drivers/input/touchscreen/lge_touch_core.c:1672:30: note: in expansion of macro 'container_of'
struct lge_touch_data *ts = container_of(lge_touch_kobj,
^
include/linux/kernel.h:696:48: warning: initialization from incompatible pointer type [enabled by default]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
drivers/input/touchscreen/lge_touch_core.c:1672:30: note: in expansion of macro 'container_of'
struct lge_touch_data *ts = container_of(lge_touch_kobj,
^
include/linux/kernel.h:696:48: warning: (near initialization for 'ts') [enabled by default]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
drivers/input/touchscreen/lge_touch_core.c:1672:30: note: in expansion of macro 'container_of'
struct lge_touch_data *ts = container_of(lge_touch_kobj,
^
In file included from include/linux/compiler-gcc.h:100:0,
from include/linux/compiler.h:48,
from include/linux/stddef.h:4,
from include/linux/posix_types.h:4,
from include/linux/types.h:17,
from include/linux/sysinfo.h:4,
from include/linux/kernel.h:4,
from include/linux/delay.h:10,
from drivers/input/touchscreen/lge_touch_core.c:19:
drivers/input/touchscreen/lge_touch_core.c:1673:13: error: invalid use of undefined type 'struct lge_touch_data'
struct lge_touch_data, lge_touch_kobj);
^
include/linux/compiler-gcc4.h:14:53: note: in definition of macro '__compiler_offsetof'
#define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
^
include/linux/kernel.h:697:29: note: in expansion of macro 'offsetof'
(type *)( (char *)__mptr - offsetof(type,member) );})
^
drivers/input/touchscreen/lge_touch_core.c:1672:30: note: in expansion of macro 'container_of'
struct lge_touch_data *ts = container_of(lge_touch_kobj,
^
drivers/input/touchscreen/lge_touch_core.c:1679:3: warning: passing argument 1 of 'lge_touch_priv->show' from incompatible pointer type [enabled by default]
ret = lge_touch_priv->show(ts, buf);
^
drivers/input/touchscreen/lge_touch_core.c:1679:3: note: expected 'struct lge_touch_data *' but argument is of type 'struct lge_touch_data *'
In file included from include/linux/delay.h:10:0,
from drivers/input/touchscreen/lge_touch_core.c:19:
drivers/input/touchscreen/lge_touch_core.c: In function 'lge_touch_attr_store':
include/linux/kernel.h:696:27: error: dereferencing pointer to incomplete type
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
drivers/input/touchscreen/lge_touch_core.c:1687:30: note: in expansion of macro 'container_of'
struct lge_touch_data *ts = container_of(lge_touch_kobj,
^
include/linux/kernel.h:696:48: warning: initialization from incompatible pointer type [enabled by default]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
drivers/input/touchscreen/lge_touch_core.c:1687:30: note: in expansion of macro 'container_of'
struct lge_touch_data *ts = container_of(lge_touch_kobj,
^
include/linux/kernel.h:696:48: warning: (near initialization for 'ts') [enabled by default]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
drivers/input/touchscreen/lge_touch_core.c:1687:30: note: in expansion of macro 'container_of'
struct lge_touch_data *ts = container_of(lge_touch_kobj,
^
In file included from include/linux/compiler-gcc.h:100:0,
from include/linux/compiler.h:48,
from include/linux/stddef.h:4,
from include/linux/posix_types.h:4,
from include/linux/types.h:17,
from include/linux/sysinfo.h:4,
from include/linux/kernel.h:4,
from include/linux/delay.h:10,
from drivers/input/touchscreen/lge_touch_core.c:19:
drivers/input/touchscreen/lge_touch_core.c:1688:12: error: invalid use of undefined type 'struct lge_touch_data'
struct lge_touch_data, lge_touch_kobj);
^
include/linux/compiler-gcc4.h:14:53: note: in definition of macro '__compiler_offsetof'
#define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
^
include/linux/kernel.h:697:29: note: in expansion of macro 'offsetof'
(type *)( (char *)__mptr - offsetof(type,member) );})
^
drivers/input/touchscreen/lge_touch_core.c:1687:30: note: in expansion of macro 'container_of'
struct lge_touch_data *ts = container_of(lge_touch_kobj,
I'm trying to manually merge the code from the Nexus 4 but the touch code seems to have been completely rewritten for the N4?
Code:
In file included from drivers/input/touchscreen/lge_touch_core.c:57:0:
include/linux/input/sweep2wake.h:36:48: warning: 'struct lge_touch_data' declared inside parameter list [enabled by default]
extern void detect_sweep2wake(int, int, struct lge_touch_data *ts);
^
include/linux/input/sweep2wake.h:36:48: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
drivers/input/touchscreen/lge_touch_core.c: In function 'is_single_touch':
drivers/input/touchscreen/lge_touch_core.c:152:47: error: 'struct t_data' has no member named 'state'
if ((!ts->ts_data.curr_data[i].state) ||
^
drivers/input/touchscreen/lge_touch_core.c:153:46: error: 'struct t_data' has no member named 'state'
(ts->ts_data.curr_data[i].state == ABS_RELEASE))
^

[ 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

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.

[Q] Error while building CM12.1 for Xperia J

Code:
target thumb C: scp <= external/openssh/bufaux.c
target thumb C: sdcard <= system/core/sdcard/main.c
target StaticLib: libsdcard (/home/soulpower11/android/system/out/target/product/jlo/obj/STATIC_LIBRARIES/libsdcard_intermediates/libsdcard.a)
target thumb C++: sensorservice <= frameworks/native/services/sensorservice/main_sensorservice.cpp
Symlink: /home/soulpower11/android/system/out/target/product/jlo/system/bin/su -> /system/xbin/su
target thumb C++: surfaceflinger <= frameworks/native/services/surfaceflinger/main_surfaceflinger.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/Client.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/DisplayDevice.cpp
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:40:
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:43: warning: unused parameter 'x' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:50: warning: unused parameter 'y' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:57: warning: unused parameter 'width' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:114:15: warning: unused parameter 'height' [-Wunused-parameter]
int height, bool preserve){}
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:114:28: warning: unused parameter 'preserve' [-Wunused-parameter]
int height, bool preserve){}
^
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/DispSync.cpp
5 warnings generated.
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/EventControlThread.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/EventThread.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/FrameTracker.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/Layer.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/LayerDim.cpp
In file included from frameworks/native/services/surfaceflinger/Layer.cpp:40:
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:43: warning: unused parameter 'x' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:50: warning: unused parameter 'y' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:57: warning: unused parameter 'width' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:114:15: warning: unused parameter 'height' [-Wunused-parameter]
int height, bool preserve){}
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:114:28: warning: unused parameter 'preserve' [-Wunused-parameter]
int height, bool preserve){}
^
frameworks/native/services/surfaceflinger/Layer.cpp:488:13: error: out-of-line definition of 'draw' does not match any declaration in 'android::Layer'
void Layer::draw(const sp<const DisplayDevice>& hw, const Region& clip) const {
^~~~
frameworks/native/services/surfaceflinger/Layer.h:243:10: note: member declaration does not match because it is not const qualified
void draw(const sp<const DisplayDevice>& hw, const Region& clip);
^ ~
frameworks/native/services/surfaceflinger/Layer.cpp:489:5: error: member function 'onDraw' not viable: 'this' argument has type 'const android::Layer', but function is not marked const
onDraw(hw, clip, false);
^~~~~~
frameworks/native/services/surfaceflinger/Layer.h:205:18: note: 'onDraw' declared here
virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
^
frameworks/native/services/surfaceflinger/Layer.cpp:491:13: error: out-of-line definition of 'draw' does not match any declaration in 'android::Layer'
void Layer::draw(const sp<const DisplayDevice>& hw,
^~~~
frameworks/native/services/surfaceflinger/Layer.h:244:10: note: member declaration does not match because it is not const qualified
void draw(const sp<const DisplayDevice>& hw, bool useIdentityTransform);
^ ~
frameworks/native/services/surfaceflinger/Layer.cpp:493:5: error: member function 'onDraw' not viable: 'this' argument has type 'const android::Layer', but function is not marked const
onDraw(hw, Region(hw->bounds()), useIdentityTransform);
^~~~~~
frameworks/native/services/surfaceflinger/Layer.h:205:18: note: 'onDraw' declared here
virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
^
frameworks/native/services/surfaceflinger/Layer.cpp:495:13: error: out-of-line definition of 'draw' does not match any declaration in 'android::Layer'
void Layer::draw(const sp<const DisplayDevice>& hw) const {
^~~~
frameworks/native/services/surfaceflinger/Layer.h:245:10: note: member declaration does not match because it is not const qualified
void draw(const sp<const DisplayDevice>& hw);
^ ~
frameworks/native/services/surfaceflinger/Layer.cpp:496:5: error: member function 'onDraw' not viable: 'this' argument has type 'const android::Layer', but function is not marked const
onDraw(hw, Region(hw->bounds()), false);
^~~~~~
frameworks/native/services/surfaceflinger/Layer.h:205:18: note: 'onDraw' declared here
virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
^
frameworks/native/services/surfaceflinger/Layer.cpp:498:13: error: out-of-line definition of 'onDraw' does not match any declaration in 'android::Layer'
void Layer::onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
^~~~~~
frameworks/native/services/surfaceflinger/Layer.h:205:18: note: member declaration does not match because it is not const qualified
virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
^
frameworks/native/services/surfaceflinger/Layer.cpp:1136:13: error: out-of-line definition of 'updateTransformHint' does not match any declaration in 'android::Layer'
void Layer::updateTransformHint(const sp<const DisplayDevice>& hw) const {
^~~~~~~~~~~~~~~~~~~
frameworks/native/services/surfaceflinger/Layer.h:292:10: note: member declaration does not match because it is not const qualified
void updateTransformHint(const sp<const DisplayDevice>& hw);
^ ~
5 warnings and 8 errors generated.
build/core/binary.mk:619: recipe for target '/home/soulpower11/android/system/out/target/product/jlo/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/Layer.o' failed
make: *** [/home/soulpower11/android/system/out/target/product/jlo/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/Layer.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from frameworks/native/services/surfaceflinger/LayerDim.cpp:29:
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:43: warning: unused parameter 'x' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:50: warning: unused parameter 'y' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:113:57: warning: unused parameter 'width' [-Wunused-parameter]
virtual void startTileComposition(int x, int y, int width,
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:114:15: warning: unused parameter 'height' [-Wunused-parameter]
int height, bool preserve){}
^
frameworks/native/services/surfaceflinger/RenderEngine/RenderEngine.h:114:28: warning: unused parameter 'preserve' [-Wunused-parameter]
int height, bool preserve){}
^
5 warnings generated.
make: Leaving directory '/home/soulpower11/android/system'
#### make failed to build some targets (20:26 (mm:ss)) ####
Got this error while trying to build CM12.1 with https://github.com/TamsuiCM11/local_manifest

Categories

Resources