target Dex: services
Copying: out/target/common/obj/APPS/Bluetooth_intermediates/
noproguard.classes.dex
Copying: out/target/common/obj/APPS/Development_intermediates/
noproguard.classes.dex
target Java: FrameworksCoreSystemPropertiesTests (out/target/common/
obj/APPS/FrameworksCoreSystemPropertiesTests_intermediates/classes)
target Java: FrameworksCoreTests (out/target/common/obj/APPS/
FrameworksCoreTests_intermediates/classes)
target Java: KeyChainTests (out/target/common/obj/APPS/
KeyChainTests_intermediates/classes)
error: error reading out/target/common/obj/JAVA_LIBRARIES/core-
tests_intermediates/javalib.jar; invalid header field
error: error reading out/target/common/obj/JAVA_LIBRARIES/core-
tests_intermediates/javalib.jar; invalid header field
error: error reading out/target/common/obj/JAVA_LIBRARIES/core-
tests_intermediates/javalib.jar; invalid header field
1 error
1 error
1 error
make: *** [out/target/common/obj/APPS/
FrameworksCoreTests_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
make: *** [out/target/common/obj/APPS/
FrameworksCoreSystemPropertiesTests_intermediates/classes-full-
debug.jar] Error 41
make: *** [out/target/common/obj/APPS/KeyChainTests_intermediates/
classes-full-debug.jar] Error 41
Mick,
Are you using Ubuntu (which version and architecture)? Did you follow
the steps in <http://source.android.com/source/initializing.html> to
install the jdk or did you use a different method?
~cco3
> --
> You received this message because you are subscribed to the "Android Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
I'm using Ubuntu 10.04 and JDK in my machine is version 6.29.
Yes, I do follow this address:
http://source.android.com/source/initializing.html
here are my last build:
--------------------------------
target Package: android.core.tests.libcore.package.tests.no-core-tests-
res (out/target/product/generic/obj/APPS/
android.core.tests.libcore.package.tests.no-core-tests-
res_intermediates/package.apk)
'out/target/common/obj/APPS/
android.core.tests.libcore.package.tests.no-core-tests-
res_intermediates//classes.dex' as 'classes.dex'...
Install: out/target/product/generic/system/app/Browser.apk
Add resources to package (out/target/product/generic/obj/APPS/
android.core.tests.libcore.package.tests_intermediates/package.apk)
# javalib.jar should only contain .dex files, but the harmony tests
also include
# some .class files, so get rid of them
Copying: out/target/common/obj/APPS/SystemUI_intermediates/
noproguard.classes.dex
target Package: SystemUI (out/target/product/generic/obj/APPS/
SystemUI_intermediates/package.apk)
'out/target/common/obj/APPS/SystemUI_intermediates//classes.dex' as
'classes.dex'...
Processing target/product/generic/obj/APPS/SystemUI_intermediates/
package.apk
Done!
Install: out/target/product/generic/system/app/SystemUI.odex
Install: out/target/product/generic/system/app/SystemUI.apk
Finding NOTICE files: out/target/product/generic/obj/NOTICE_FILES/hash-
timestamp
Combining NOTICE files: out/target/product/generic/obj/NOTICE.html
Installed file list: out/target/product/generic/installed-files.txt
Target system fs image: out/target/product/generic/obj/PACKAGING/
systemimage_intermediates/system.img
Copying: out/target/common/obj/APPS/
android.core.tests.libcore.package.dalvik.no-core-tests-
res_intermediates/noproguard.classes.dex
target Package: android.core.tests.libcore.package.dalvik.no-core-
tests-res (out/target/product/generic/obj/APPS/
android.core.tests.libcore.package.dalvik.no-core-tests-
res_intermediates/package.apk)
Copying: out/target/common/obj/APPS/
android.core.tests.libcore.package.sun.no-core-tests-res_intermediates/
noproguard.classes.dex
target Package: android.core.tests.libcore.package.sun.no-core-tests-
res (out/target/product/generic/obj/APPS/
android.core.tests.libcore.package.sun.no-core-tests-res_intermediates/
package.apk)
'out/target/common/obj/APPS/android.core.tests.libcore.package.sun.no-
core-tests-res_intermediates//classes.dex' as 'classes.dex'...
'out/target/common/obj/APPS/
android.core.tests.libcore.package.dalvik.no-core-tests-
res_intermediates//classes.dex' as 'classes.dex'...
Install system fs image: out/target/product/generic/system.img
Add resources to package (out/target/product/generic/obj/APPS/
android.core.tests.libcore.package.dalvik_intermediates/package.apk)
Add resources to package (out/target/product/generic/obj/APPS/
android.core.tests.libcore.package.sun_intermediates/package.apk)
# javalib.jar should only contain .dex files, but the harmony tests
also include
# javalib.jar should only contain .dex files, but the harmony tests
also include
# some .class files, so get rid of them
# some .class files, so get rid of them
Mick,
any body can help me solve this error in building ICS 4.0.1_r1
here are the errors:
target Dex: services
Copying: out/target/common/obj/APPS/Bluetooth_intermediates/
noproguard.classes.dex
Copying: out/target/common/obj/APPS/Development_intermediates/
noproguard.classes.dex
target Java: FrameworksCoreSystemPropertiesTests (out/target/common/
obj/APPS/FrameworksCoreSystemPropertiesTests_intermediates/classes)
target Java: FrameworksCoreTests (out/target/common/obj/APPS/
FrameworksCoreTests_intermediates/classes)
target Java: KeyChainTests (out/target/common/obj/APPS/
KeyChainTests_intermediates/classes)
error: error reading out/target/common/obj/JAVA_LIBRARIES/core-
tests_intermediates/javalib.jar; invalid header field
error: error reading out/target/common/obj/JAVA_LIBRARIES/core-
tests_intermediates/javalib.jar; invalid header field
error: error reading out/target/common/obj/JAVA_LIBRARIES/core-
tests_intermediates/javalib.jar; invalid header field
1 error
1 error
1 error
make: *** [out/target/common/obj/APPS/
FrameworksCoreTests_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
make: *** [out/target/common/obj/APPS/
FrameworksCoreSystemPropertiesTests_intermediates/classes-full-
debug.jar] Error 41
make: *** [out/target/common/obj/APPS/KeyChainTests_intermediates/
classes-full-debug.jar] Error 41
Mick,
make: *** [out/target/common/obj/APPS/
android.core.tests.libcore.package.dalvik.no-core-tests-
res_intermediates/noproguard.classes-with-local.dex] Killed
make: *** Waiting for unfinished jobs....
$ adb reboot bootloader
No command 'adb' found, did you mean: Command 'cdb' from package
'tinycdb' (main) Command 'gdb' from package 'gdb' (main) Command 'dab'
from package 'bsdgames' (universe) Command 'zdb' from package 'zfs-
fuse' (universe) Command 'mdb' from package 'mono-
debugger' (universe) Command 'kdb' from package 'elektra-
bin' (universe) Command 'tdb' from package 'tads2-
dev' (multiverse) Command 'pdb' from package 'python' (main) Command
'jdb' from package 'openjdk-6-jdk' (main) Command 'ab' from package
'apache2-utils' (main) Command 'ad' from package
'netatalk' (universe)adb: command not found
Mick,
On Nov 29, 2:28 pm, Amit Pundir <amit.pun...@linaro.org> wrote:
How much RAM and swap do you have in your system?
JBQ
--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.
Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.
I tried your suggestion, the following is output I had.
$ make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
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=ITL41D
============================================
make: Nothing to be done for `droid'.
Mick,
JBQ
I just upgraded to 8GB, hope that I can work well with the sources.
but my OS version is 32bit, so it is not affected by the new size.
Now I'm downloading Ubuntu 64bit version to haven it more Ram.
Mick,
JBQ
JBQ
> We are trying to build the android 4.0.1_r1 also getting the smiliar
> error mentioned in the thread:
>
> make: *** [out/target/common/obj/APPS/
> android.core.tests.libcore.package.dalvik.no-core-tests-
> res_intermediates/noproguard.classes-with-local.dex] Killed
> make: *** Waiting for unfinished jobs....
I'm pretty sure this is because the process was killed because you
ran out of memory, but until next time post the full error message.
What you posted above is just make reporting the symptom.
> Here are our machine configuration:
> Machine 1: Dual Core Intel Xeon (1.86GHz for each core)
> OS : Ubuntu 10.04 LTS server
> RAM: 2.5 GB
> Swap Space: 1 GB
>
> Machine 2: QuadCore Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
> OS : Ubuntu 11.04
> RAM: 4 GB
> Swap Space: 500 MB
>
> I have the following questions and any help will be truly appreciated:
>
> 1) Is the cofiguration fine for the build machine fine? As i have seen
> in one of the thread where JBQ mentioned 16 GB of RAM for android 4.0
> build, is that manadatory to have?
No, but anything less than 8 GB is going to be painful. Going from
4 to 8 GB makes a huge difference (I wouldn't even try with 2.5 GB),
but unless you run *many* parallel jobs taking it to 16 GB or more
won't make a dramatic difference.
Even on Gingerbread, the time for building an SDK from scratch on
a reasonably modern four-core machine was cut in half (or more) when
going from 4 to 8 GB. Javadoc is memory-hungry, and if you get 2-3
parallel instances each eating 1.5-2 GB RAM your computer will thrash
to a halt.
Your RAM needs will obviously vary depending on whether it's a
workstation that you expect to use while you're building or if
it's a headless node in a data center.
> 2) Is the 'Linux Swap' make any difference during build? What is the
> minimum Linux Swap spcace recommendation?
That depends on how much RAM you have. Linux will use little or no swap
if you have ample RAM. Just make sure RAM + swap cover your memory usage
profile.
--
Magnus B�ck Opinions are my own and do not necessarily
SW Configuration Manager represent the ones of my employer, etc.
Sony Ericsson
When I tried to make 4.0.3 build with Smartcard API from SEEK-for-Android, I had the same 2 problems as Mickey MK had, namely
1)
....
error: error reading out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/javalib.jar; invalid header field 1 error
2)
make: *** [out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates//classes-full-debug.jar] Error 41
...
make: *** [out/target/common/obj/APPS/
android.core.tests.libcore.package.dalvik.no-core-tests-
My build setup (on a 64bit Ubuntu 11.10 VM) was following:
res_intermediates/noproguard.classes-with-local.dex] Killed
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.3
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
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=IML74K
============================================
I managed to solve the problems with the following fixes_
The first problem:
// For me the reason was the wrong JDK (OpenJDK-java6) that was installed before.
// First get the JDK from Sun with the fallowing commands
sudo apt-get purge openjdk* // in case openjdk-java6-jdk was installed beforehand
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
// Then get rid off the created jars with openjdk and choose the correct jar path
cd out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/
rm javalib.jar classes-full-debug.jar
Second problem:
// It was a problem of the RAM capacity as a metter of fact. I am building from a W7 quadcore local machine
// with 8GB RAM. I had before 4 GB RAM and only 1 core reserved for VM.
// After going upto 5.5 GB and 4 cores. I could build the FW with the fllowing command
make -j4
Hope this post will help others facing similar problems.
Tunc
On Thursday, July 5, 2012 7:14:24 AM UTC+2, rtindru wrote:So any idea what caused the error?
Did the repo re-sync work? Was it a RAM problem?
Thanks & Regards
--