compilation error with froyo 2.2 with rowboat repo

20 views
Skip to first unread message

Ananthapadmanaban

unread,
Feb 22, 2011, 8:57:09 AM2/22/11
to android-porting
Hi all,

  When i compile froyo with dsp version of image i end up with this error.
 Any one came across this type of error ?

target Jar: core-tests (out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/javalib.jar)
 'out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/classes.dex' as 'classes.dex'...
java.util.zip.ZipException: duplicate entry: hyts_Foo.c
    at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:192)
    at java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:109)
    at sun.tools.jar.Main.addFile(Main.java:731)
    at sun.tools.jar.Main.update(Main.java:585)
    at sun.tools.jar.Main.run(Main.java:220)
    at sun.tools.jar.Main.main(Main.java:1167)
make: *** [out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/javalib.jar] Error 1
make: *** Deleting file `out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/javalib.jar'

Thanks and regards,
Ananth.

freakingtux

unread,
Apr 21, 2011, 9:38:01 AM4/21/11
to android...@googlegroups.com
Hi

I am having the same problem here:
During the jar phase of the core-tests every resource gets added to the root of the jar (you can see this if you run make showcommands core-tests)

jar cf ......
-C dalvik/libcore/luni/src/test/resources hyts_Foo.c
-C dalvik/libcore/support/src/test/resources hyts_Foo.c 

so there are two resources called hyts_Foo.c that get included in the core tests. and booth file are mostly empty. I cam across this when doing a clean/compile in the dalvik folder.

Removing one of them solves the problem but will result in the next issue
java.util.zip.ZipException: duplicate entry: staff2.dtd so you guessed it:
find . -name staff2.dtd
./dalvik/libcore/xml/src/test/resources/staff2.dtd
./dalvik/libcore/dom/src/test/resources/staff2.dtd


Reply all
Reply to author
Forward
0 new messages