Gingerbread build for generic_x86.

62 views
Skip to first unread message

animesh

unread,
Mar 30, 2011, 5:51:33 AM3/30/11
to andro...@googlegroups.com
Hi All,

I have followed the procedure mentioned in 


The build command i used are as follows:-
make usb_img TARGET_PRODUCT=generic_x86

But i get this below error:-

target Dex: Email
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x40ed8bd3, pid=12228, tid=1087863664
#
# JRE version: 6.0_20-b20
# Java VM: OpenJDK Server VM (19.0-b09 mixed mode linux-x86 )
# Derivative: IcedTea6 1.9.7
# Distribution: Ubuntu 10.10, package 6b20-1.9.7-0ubuntu1
# Problematic frame:
# J  com.android.dx.cf.code.Ropper.doit()V
#
# An error report file with more information is saved as:
# /home/animeshb/Downloads/Android/android-x86/source/hs_err_pid12228.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#
make: *** [out/target/common/obj/APPS/Email_intermediates/noproguard.classes-with-local.dex] Aborted

The log file is also attached.
What modification do i need to do.
--
Regards,
Animesh Bhadra,
+91-9880868571
hs_err_pid12228.log

animesh

unread,
Mar 30, 2011, 6:37:38 AM3/30/11
to andro...@googlegroups.com
Hi,

When i complile first time i get the following java error:-
target Dex: MagicSmokeWallpapers
Copying: out/target/common/obj/APPS/MagicSmokeWallpapers_intermediates/noproguard.classes.dex
target Package: MagicSmokeWallpapers (out/target/product/generic_x86/obj/APPS/MagicSmokeWallpapers_intermediates/package.apk)
 'out/target/common/obj/APPS/MagicSmokeWallpapers_intermediates//classes.dex' as 'classes.dex'...
Notice file: packages/wallpapers/MagicSmoke/NOTICE -- out/target/product/generic_x86/obj/NOTICE_FILES/src//system/app/MagicSmokeWallpapers.apk.txt
Install: out/target/product/generic_x86/system/app/MagicSmokeWallpapers.apk
target R.java/Manifest.java: MediaProvider (out/target/common/obj/APPS/MediaProvider_intermediates/src/R.stamp)
target Java: MediaProvider (out/target/common/obj/APPS/MediaProvider_intermediates/classes)
packages/providers/MediaProvider/src/com/android/providers/media/MediaProvider.java:1869: cannot find symbol
symbol  : variable COMPILATION
location: class android.provider.MediaStore.Audio.Media
                String compilation = values.getAsString(MediaStore.Audio.Media.COMPILATION);
                                                                              ^
packages/providers/MediaProvider/src/com/android/providers/media/MediaProvider.java:1870: cannot find symbol
symbol  : variable COMPILATION
location: class android.provider.MediaStore.Audio.Media
                values.remove(MediaStore.Audio.Media.COMPILATION);
                                                    ^
packages/providers/MediaProvider/src/com/android/providers/media/MediaProvider.java:2340: cannot find symbol
symbol  : variable COMPILATION
location: class android.provider.MediaStore.Audio.Media
                        String compilation = values.getAsString(MediaStore.Audio.Media.COMPILATION);
                                                                                      ^
packages/providers/MediaProvider/src/com/android/providers/media/MediaProvider.java:2341: cannot find symbol
symbol  : variable COMPILATION
location: class android.provider.MediaStore.Audio.Media
                        values.remove(MediaStore.Audio.Media.COMPILATION);
                                                            ^
Note: packages/providers/MediaProvider/src/com/android/providers/media/MediaScannerService.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: packages/providers/MediaProvider/src/com/android/providers/media/MediaProvider.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
make: *** [out/target/common/obj/APPS/MediaProvider_intermediates/classes-full-debug.jar] Error 41

Yi Sun

unread,
Mar 31, 2011, 1:43:15 AM3/31/11
to andro...@googlegroups.com, animesh
I will send a patch for this soon... maybe today

> --
> You received this message because you are subscribed to the Google Groups
> "Android-x86" group.
> To post to this group, send email to andro...@googlegroups.com.
> To unsubscribe from this group, send email to
> android-x86...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/android-x86?hl=en.
>

--
Android-x86
http://www.android-x86.org

Yi Sun

unread,
Mar 31, 2011, 2:47:25 AM3/31/11
to andro...@googlegroups.com

AnimeshKBhadra

unread,
Mar 31, 2011, 4:11:36 AM3/31/11
to andro...@googlegroups.com, Yi Sun
Hi Yi,

Thanks for the Patch. Looks like it is working now.
Will revert back on any further issues.

Regards
Animesh K. Bhadra

Langit Biru

unread,
Mar 31, 2011, 4:44:23 AM3/31/11
to andro...@googlegroups.com
On 03/30/2011 04:51 PM, animesh wrote:
> Hi All,

> #
> # JRE version: 6.0_20-b20
> # Java VM: OpenJDK Server VM (19.0-b09 mixed mode linux-x86 )

Can we build gingerbread-x86 on 32 bit machine now?
AFAIK, we need 64 bit machine to build gingerbread (AOSP).


AnimeshKBhadra

unread,
Mar 31, 2011, 4:48:01 AM3/31/11
to andro...@googlegroups.com, Yi Sun
Hi Yi Sun,

I applied all the 3 patches available in the sites below:-
    0001-fixed-build-break-frameworks-base.patch
     
0001-fixed-build-break-in-Mms.patch
    0001-fixed-build-break-in-the-sip.patch

I used the following command to apply the patch:-
git apply --stat <patchname.patch>

But i am seeing the same issue still

Regards
Animesh k. Bhadra.

On Thursday 31 March 2011 12:17 PM, Yi Sun wrote:

AnimeshKBhadra

unread,
Mar 31, 2011, 5:03:52 AM3/31/11
to andro...@googlegroups.com, Langit Biru
Hi,

I did the modification mentioned in this discussion groups, for make it build for 32 bit.

http://groups.google.com/group/android-building/browse_thread/thread/7a58ab12d88b1b0c?fwc=1


regards
Animesh K. Bhadra

Al Sutton

unread,
Mar 31, 2011, 5:12:26 AM3/31/11
to andro...@googlegroups.com
Try using the Sun JDK, not OpenJDK.

Al.
-- 
T: @alsutton W: www.funkyandroid.com

The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries.

Yi Sun

unread,
Mar 31, 2011, 1:02:21 PM3/31/11
to AnimeshKBhadra, andro...@googlegroups.com
I have a 64bit machine with Ubuntu and I can build gingerbread now
(even through I did not get time to run it yet). Could you check your
source code to make sure all the changes are in the source code?
Especially, you should check following changes.
Also, all the patches are fixing the compile errors you mentioned in
your second e-mail not the first one.
Yi

ore/java/android/provider/MediaStore.java | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/core/java/android/provider/MediaStore.java
b/core/java/android/provider/MediaStore.java
index 075da33..3482a9b 100644
--- a/core/java/android/provider/MediaStore.java
+++ b/core/java/android/provider/MediaStore.java
@@ -898,7 +898,12 @@ public final class MediaStore {
* @hide
*/
public static final String ALBUM_ARTIST = "album_artist";
-
+ /**
+ * Whether the song is part of a compilation
+ * <P>Type: TEXT</P>
+ * @hide
+ */
+ public static final String COMPILATION="compilation";
/**
* A non human readable key calculated from the ARTIST, used for
* searching, sorting and grouping
--
1.7.1

--
Android-x86
http://www.android-x86.org

AnimeshKBhadra

unread,
Mar 31, 2011, 3:23:22 PM3/31/11
to Yi Sun, andro...@googlegroups.com
Hi Yi Sun,

Thanks for the help, I did a mistake in applying the Patch.
I looked into patch file and applied the patch in the path mentioned.

Also there was an issue with openJDK due to which i got the second
error. I changed it to Java-SDK and it compiled fine.

Regards
Animesh K. Bhadra

Yi Sun

unread,
Mar 31, 2011, 7:49:30 PM3/31/11
to AnimeshKBhadra, andro...@googlegroups.com
Thanks for the info. Since I have not tested the functionality of mms, so I don't know if I have broke anything. Anyway, I will push in the fix first and we can worry about functionality later. If you see issues, please do let us know
Yi
Reply all
Reply to author
Forward
0 new messages