32-bit support in froyo/2.2

663 views
Skip to first unread message

bachus

unread,
Sep 28, 2010, 9:49:08 AM9/28/10
to android-platform
Hello everyone,

Since today's repository update I'm getting the following error
message when compiling the android's source code:

Checking build tools versions...
build/core/main.mk:72:
************************************************************
build/core/main.mk:73: You are attempting to build on a 32-bit system.
build/core/main.mk:74: Only 64-bit build environments are supported
beyond froyo/2.2.
build/core/main.mk:75:
************************************************************
build/core/main.mk:76: *** stop. Stop.

Does this means that from now on if we want to compile froyo we need
to use a 64-bit machine?
Or is there a way to circumvent this situation?

Any help would be great.

Regards






Teck Choon Giam

unread,
Sep 28, 2010, 12:40:36 PM9/28/10
to android-...@googlegroups.com
> Does this means that from now on if we want to compile froyo we need
> to use a 64-bit machine?
> Or is there a way to circumvent this situation?

master branch will need to have a 64-bit machine with java 1.6.
froyo branch will need java 1.5.

If you need to compile froyo, why use master branch (I assume)?

I might be wrong though but this is my experience.

Hope this helps!

Thanks.

Kindest regards,
Giam Teck Choon

Chih-Wei

unread,
Sep 28, 2010, 10:00:34 PM9/28/10
to android-platform
This sounds not good.

Can't we setup a build environment to build
froyo(and prior) and branches beyond froyo?

I believe this is a reasonable request.
Many developers need to work on both
a newest and an older branch.

isra...@gmail.com

unread,
Sep 28, 2010, 11:10:12 AM9/28/10
to android-...@googlegroups.com
I am not sure if a 64b machine is needed but I am able to avoid this message whit this change:

diff --git a/core/main.mk b/core/main.mk
index f761ba5..4ee4bf9 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -68,7 +68,7 @@ $(info Checking build tools versions...)
 
 ifeq ($(BUILD_OS),linux)
 build_arch := $(shell uname -m)
-ifneq (64,$(findstring 64,$(build_arch)))
+ifneq (i686,$(findstring i686,$(build_arch)))
 $(warning ************************************************************)
 $(warning You are attempting to build on a 32-bit system.)
 $(warning Only 64-bit build environments are supported beyond froyo/2.2.)


I just start to compile it, but I am not 100% sure if it will work at all







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


bachus

unread,
Sep 29, 2010, 11:59:18 AM9/29/10
to android-platform
Hi Giam,

I hereby confirm your statement and based on my last experiences I
would like to add the following:

> master branch will need to have a 64-bit machine with java 1.6

This is true, but you also need to have a native 64-bit OS installed,
otherwise the error message will also be thrown.

> froyo branch will need java 1.5

Also true.
However, in my 64-bit machine with Ubuntu 64-bit version installed,
either the master branch and froyo do not run as they should.
Basically, everything compiles perfectly but when I start the emulator
(in both versions) it takes too much time in the first two screens and
it never goes before the android logo screen. I'm still debating to
figure out what is wrong as I never experienced this issue before.
Nevertheless, I'm able to compile and run eclair perfectly, so
something must have changed and it is causing froyo to freeze on my
machine.

These are just side notes that might be useful for discussion.

Regards.

Stefan Jacobs

unread,
Sep 30, 2010, 7:55:53 AM9/30/10
to android-platform
Hi
Are you able to build it successfully after this patch? I am also
stuck up in the same part.

On Sep 28, 8:10 pm, "israe...@gmail.com" <israe...@gmail.com> wrote:
> I am not sure if a 64b machine is needed but I am able to avoid this message
> whit this change:
>
> diff --git a/core/main.mk b/core/main.mk
> index f761ba5..4ee4bf9 100644
> --- a/core/main.mk
> +++ b/core/main.mk
> @@ -68,7 +68,7 @@ $(info Checking build tools versions...)
>
>  ifeq ($(BUILD_OS),linux)
>  build_arch := $(shell uname -m)
> -ifneq (64,$(findstring 64,$(build_arch)))
> +ifneq (i686,$(findstring i686,$(build_arch)))
>  $(warning ************************************************************)
>  $(warning You are attempting to build on a 32-bit system.)
>  $(warning Only 64-bit build environments are supported beyond froyo/2.2.)
>
> I just start to compile it, but I am not 100% sure if it will work at all
>
> On Tue, Sep 28, 2010 at 8:49 AM, bachus <aeternal.de...@gmail.com> wrote:
> > Hello everyone,
>
> > Since today's repository update I'm getting the following error
> > message when compiling the android's source code:
>
> > Checking build tools versions...
> > build/core/main.mk:72:
> > ************************************************************
> > build/core/main.mk:73: You are attempting to build on a 32-bit system.
> > build/core/main.mk:74: Only 64-bit build environments are supported
> > beyond froyo/2.2.
> > build/core/main.mk:75:
> > ************************************************************
> > build/core/main.mk:76: *** stop.  Stop.
>
> > Does this means that from now on if we want to compile froyo we need
> > to use a 64-bit machine?
> > Or is there a way to circumvent this situation?
>
> > Any help would be great.
>
> > Regards
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-platform" group.
> > To post to this group, send email to android-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > android-platfo...@googlegroups.com<android-platform%2Bunsu...@googlegroups.com>
> > .

isra...@gmail.com

unread,
Sep 30, 2010, 11:03:50 AM9/30/10
to android-...@googlegroups.com
Hi,

Yes, it compiles successfully, and emulator is running correctly, just be sure that instead of 64 you use your machine architecture (you can get it running # uname -m) because mine is i686

To unsubscribe from this group, send email to android-platfo...@googlegroups.com.

bachus

unread,
Sep 30, 2010, 1:41:09 PM9/30/10
to android-platform
Hello Stefan,

In my case the patch does not work. I'm using another machine for this
purpose: a 64-bit machine running Ubuntu 32-bit version.
After applying the patch and updating Java to version 1.6 the
compilation fails as it cannot find gnu/stubs-64.h header file.

The error has already been reported in this thread:
http://groups.google.com/group/android-building/browse_thread/thread/333af6774ddf97a7

I took it further and installed libc6-dev-amd64 package, but the
compilation also failed with incompatible versions of libstdc++.so.

So, I would say that the compilation might work but for that you would
need to install the 64-bit library versions needed by android sources.

Regards

isra...@gmail.com

unread,
Sep 30, 2010, 2:13:14 PM9/30/10
to android-...@googlegroups.com
Hi bachus,

To solve the issue due to sun-java6-sdk, just comment all:

#    LOCAL_CFLAGS += -m64
#    LOCAL_LDFLAGS += -m64

in files:
./external/clearsilver/cgi/Android.mk
./external/clearsilver/java-jni/Android.mk
./external/clearsilver/util/Android.mk
./external/clearsilver/cs/Android.mk

or change 64 to 32

To unsubscribe from this group, send email to android-platfo...@googlegroups.com.

bachus

unread,
Oct 1, 2010, 11:37:58 AM10/1/10
to android-platform
Hi Israel,

After applying your suggested modifications everything compiled
perfectly and runs ;).

Nevertheless, the main screen is turned 90º degrees :).
So, instead of being vertical as usual, it is horizontally placed in
the simulator.
Probably this happens due to some emulator's configuration.

Regards

On Sep 30, 7:13 pm, "israe...@gmail.com" <israe...@gmail.com> wrote:
> Hi bachus,
>
> To solve the issue due to sun-java6-sdk, just comment all:
>
> #    LOCAL_CFLAGS += -m64
> #    LOCAL_LDFLAGS += -m64
>
> in files:
> ./external/clearsilver/cgi/Android.mk
> ./external/clearsilver/java-jni/Android.mk
> ./external/clearsilver/util/Android.mk
> ./external/clearsilver/cs/Android.mk
>
> or change 64 to 32
>
> On Thu, Sep 30, 2010 at 12:41 PM, bachus <aeternal.de...@gmail.com> wrote:
> > Hello Stefan,
>
> > In my case the patch does not work. I'm using another machine for this
> > purpose: a 64-bit machine running Ubuntu 32-bit version.
> > After applying the patch and updating Java to version 1.6 the
> > compilation fails as it cannot find gnu/stubs-64.h header file.
>
> > The error has already been reported in this thread:
>
> >http://groups.google.com/group/android-building/browse_thread/thread/...
> > <android-platform%2Bunsu...@googlegroups.com<android-platform%252Buns...@googlegroups.com>

Stefan Jacobs

unread,
Oct 2, 2010, 4:22:05 AM10/2/10
to android-platform
Hi guys,

I downloaded foryo code and built it using sun-java5 :(
Will try it in the weekend with the master branch and Israel's
patches
-- Thank you guys

Adam Jiang

unread,
Oct 3, 2010, 2:33:05 AM10/3/10
to android-...@googlegroups.com

I was stuck at the same place. Dose this mean we need new machines to
follow the move? What's the background of this change? Is there someone
could give us some bright on this? Thanks.

Best regards,
/adam

>
> Any help would be great.
>
> Regards
>
>
>
>
>
>

> --
> You received this message because you are subscribed to the Google Groups "android-platform" group.
> To post to this group, send email to android-...@googlegroups.com.

> To unsubscribe from this group, send email to android-platfo...@googlegroups.com.

bachus

unread,
Oct 4, 2010, 12:02:10 PM10/4/10
to android-platform
Hi Adam,

> I was stuck at the same place. Dose this mean we need new machines to
> follow the move?
No.

>What's the background of this change? Is there someone
> could give us some bright on this? Thanks.

If you have a 64-bit machine with a 64-bit OS, you are able to compile
and run the master branch.
If you have a 64-bit machine with a 32-bit OS, you should apply the
above patches and everything will work (master branch).

Finally, and not tested, If you're using a 32-bit machine with a 32-
bit OS, the above patches shall also work, but I haven't test this
scenario.

Hope this helps.

Regards

Alex

unread,
Oct 5, 2010, 3:37:41 AM10/5/10
to android-platform
I also encounter the same issue on latest Ubuntu 10.4.1 (32-bit).
Does it mean from now onwards we always need a 64-bit Ubuntu for
compiling android?

It seems the document on http://source.android.com/source/download.html
is outdated.

Alex
> > > android-platfo...@googlegroups.com<android-platform%2Bunsubscrib e...@googlegroups.com>

Adam Jiang

unread,
Oct 6, 2010, 11:20:22 AM10/6/10
to android-...@googlegroups.com
On Mon, Oct 04, 2010 at 09:02:10AM -0700, bachus wrote:
> Hi Adam,
>
> > I was stuck at the same place. Dose this mean we need new machines to
> > follow the move?
> No.
>
> >What's the background of this change? Is there someone
> > could give us some bright on this? Thanks.
>
> If you have a 64-bit machine with a 64-bit OS, you are able to compile
> and run the master branch.
> If you have a 64-bit machine with a 32-bit OS, you should apply the
> above patches and everything will work (master branch).
>
> Finally, and not tested, If you're using a 32-bit machine with a 32-
> bit OS, the above patches shall also work, but I haven't test this
> scenario.

Thanks in advance to you, bachus.

I have the source code compiled successfully on my 32-bit machine with a
32-bit OS(gentoo Linux) with the patches mentioned in the previous
mails. I have attached the whole change I made. All the things goes
well.

I wonder if further development is going on 64-bit machines just as this
change assumed. Does this movement indicates the direction?

Best regards,
/Adam

Adam Jiang

unread,
Oct 6, 2010, 11:21:59 AM10/6/10
to android-...@googlegroups.com
I am sorry I forgot the attachment. Send it again.

/Adam


On Mon, Oct 04, 2010 at 09:02:10AM -0700, bachus wrote:

for-32-bit-compilation.patch

maxisma

unread,
Oct 20, 2010, 7:26:52 AM10/20/10
to android-platform
I agree. I would like some explanation.
Thanks.

Regards,

Christian Brüggemann

On 3 Okt., 08:33, Adam Jiang <jiang.a...@gmail.com> wrote:
> On Tue, Sep 28, 2010 at 06:49:08AM -0700, bachus wrote:
> > Hello everyone,
>
> > Since today's repository update I'm getting the following error
> > message when compiling the android's source code:
>
> > Checking build tools versions...
> > build/core/main.mk:72:
> > ************************************************************
> >build/core/main.mk:73: You are attempting to build on a 32-bit system.> build/core/main.mk:74: Only 64-bit build environments are supported> beyond froyo/2.2.> build/core/main.mk:75:> ************************************************************> build/core/main.mk:76: *** stop.  Stop.
>
> > Does this means that from now on if we want to compile froyo we need
> > to use a 64-bit machine?
> > Or is there a way to circumvent this situation?
>
> I was stuck at the same place. Dose this mean we need new machines to
> follow the move? What's the background of this change? Is there someone
> could give us some bright on this? Thanks.
>
> Best regards,
> /adam
>
> > Any help would be great.
>
> > Regards
>
> > --
> > You received this message because you are subscribed to the Google Groups "android-platform" group.> To post to this group, send email toandroid...@googlegroups.com.> To unsubscribe from this group, send email toandroid-platf...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages