make sdk error in ICS

2,433 views
Skip to first unread message

Maiyu

unread,
Nov 23, 2011, 6:35:53 AM11/23/11
to Android Building

Hi.

I got some error messages like this [***:couldn't locate source
file:***] when I have 'make sdk' build.

Currently I block some lines for remove build error by force.
But, I think I should build those error items and include it for
perfect sdk build.

Do I miss build settings (build command)?
Please help for resolve this ...

----------------------------------------------------------
I use Ubuntu 10.04 64bit and update all package that is used for
build.

Linux version 2.6.32-24-generic (buildd@yellow) (gcc version 4.4.3
(Ubuntu 4.4.3-4ubuntu5) ) #39-Ubuntu SMP Wed Jul 28 05:14:15 UTC 2010
JDK version is java-6-sun-1.6.0.16

----------------------------------------------------------
I refer official env. setup page below.
http://source.android.com/source/initializing.html
and refer below for gpg setup step.
http://forums.androidcentral.com/htc-hero-rooting-roms-hacks/8072-how-build-your-own-kernel-package-source.html

----------------------------------------------------------
Sync "android-4.0.1_r1" version source code.
Commands are below
$ source build/envsetup.sh
$ lunch full-eng
$ make
$ make sdk
* no error when I have "make" build

----------------------------------------------------------
Error messages are below.
also I can't find these files ...

development/build/sdk.atree:229: couldn't locate source file:
framework/layoutlib-tests.jar
development/build/sdk.atree:230: couldn't locate source file: system/
app/ConnectivityTest.apk
development/build/sdk.atree:231: couldn't locate source file: system/
app/GpsLocationTest.apk

sdk/build/tools.atree:47: couldn't locate source file: usr/share/pc-
bios/bios.bin
sdk/build/tools.atree:48: couldn't locate source file: usr/share/pc-
bios/vgabios-cirrus.bin

sdk/build/tools.atree:146: couldn't locate source file: framework/
ddmlib-tests.jar
sdk/build/tools.atree:147: couldn't locate source file: framework/
ninepatch-tests.jar
sdk/build/tools.atree:148: couldn't locate source file: framework/
common-tests.jar
sdk/build/tools.atree:150: couldn't locate source file: framework/
sdkuilib-tests.jar

Jean-Baptiste Queru

unread,
Nov 23, 2011, 9:06:01 AM11/23/11
to android-...@googlegroups.com
I think you need to use "lunch sdk-eng" instead of "lunch full-eng"
before you can use "make sdk".

JBQ

> --
> 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
>

--
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.

Maiyu

unread,
Nov 24, 2011, 6:27:47 AM11/24/11
to Android Building

Thank you JBQ.

I succeeded with your advice.
ICS SDK build is working fine with JDK6!

Actually I find that howto_build_SDK.txt file from my disk after see
your comment..
what a silly mistake :'(

Thank you so much!


On 11월23일, 오후11시06분, Jean-Baptiste Queru <j...@android.com> wrote:
> I think you need to use "lunch sdk-eng" instead of "lunch full-eng"
> before you can use "make sdk".
>
> JBQ
>
>
>
>
>
>
>
>
>
> On Wed, Nov 23, 2011 at 3:35 AM, Maiyu <dai...@gmail.com> wrote:
>
> > Hi.
>
> > I got some error messages like this [***:couldn't locate source
> > file:***] when I have 'make sdk' build.
>
> > Currently I block some lines for remove build error by force.
> > But, I think I should build those error items and include it for
> > perfect sdk build.
>
> > Do I miss build settings (build command)?
> > Please help for resolve this ...
>
> > ----------------------------------------------------------
> > I use Ubuntu 10.04 64bit and update all package that is used for
> > build.
>
> > Linux version 2.6.32-24-generic (buildd@yellow) (gcc version 4.4.3
> > (Ubuntu 4.4.3-4ubuntu5) ) #39-Ubuntu SMP Wed Jul 28 05:14:15 UTC 2010
> > JDK version is java-6-sun-1.6.0.16
>
> > ----------------------------------------------------------
> > I refer official env. setup page below.
> >http://source.android.com/source/initializing.html
> > and refer below for gpg setup step.

> >http://forums.androidcentral.com/htc-hero-rooting-roms-hacks/8072-how...

Jean-Baptiste Queru

unread,
Nov 28, 2011, 12:23:02 PM11/28/11
to android-...@googlegroups.com
Glad to hear that it works fine.

Ying, Xav, it'd be good to make the build fail early when using a
lunch config that's not appropriate for "make sdk". Bonus points if
the default target can be the right one when building under an sdk
lunch config.

JBQ

dexter

unread,
Nov 25, 2011, 10:09:51 AM11/25/11
to Android Building
Hi JBQ,

I'm still facing the same problem, even after changing the build
profile to sdk-eng. It now says:
sdk/build/tools.atree:63: couldn't locate source file: bin/lint
sdk/build/tools.atree:107: couldn't locate source file: framework/
lint.jar
sdk/build/tools.atree:108: couldn't locate source file: framework/
lint_api.jar
sdk/build/tools.atree:109: couldn't locate source file: framework/
lint_checks.jar

I have followed the following steps to 'make sdk':
1) Sync "android-4.0.1_r1" version source code.
2) Commands:
$ source build/envsetup.sh
$ lunch sdk-eng
$ make -j2 (no errors here)
$ make sdk

I guess lint is no absolutely necessary tool for sdk build?
Kindly help to resolve this.

Thanks and Regards,
Dexter.

On Nov 23, 7:06 pm, Jean-Baptiste Queru <j...@android.com> wrote:
> I think you need to use "lunch sdk-eng" instead of "lunch full-eng"
> before you can use "make sdk".
>
> JBQ
>
>
>
>
>
>
>
>
>
> On Wed, Nov 23, 2011 at 3:35 AM, Maiyu <dai...@gmail.com> wrote:
>
> > Hi.
>
> > I got some error messages like this [***:couldn't locate source
> > file:***] when I have 'make sdk' build.
>
> > Currently I block some lines for remove build error by force.
> > But, I think I should build those error items and include it for
> > perfect sdk build.
>
> > Do I miss build settings (build command)?
> > Please help for resolve this ...
>
> > ----------------------------------------------------------
> > I use Ubuntu 10.04 64bit and update all package that is used for
> > build.
>
> > Linux version 2.6.32-24-generic (buildd@yellow) (gcc version 4.4.3
> > (Ubuntu 4.4.3-4ubuntu5) ) #39-Ubuntu SMP Wed Jul 28 05:14:15 UTC 2010
> > JDK version is java-6-sun-1.6.0.16
>
> > ----------------------------------------------------------
> > I refer official env. setup page below.
> >http://source.android.com/source/initializing.html
> > and refer below for gpg setup step.

> >http://forums.androidcentral.com/htc-hero-rooting-roms-hacks/8072-how...

Jean-Baptiste Queru

unread,
Nov 28, 2011, 4:56:59 PM11/28/11
to android-...@googlegroups.com
I'm looking into this. It's broken in master for sure, I'll
double-check 4.0.1 as well.

JBQ

Jean-Baptiste Queru

unread,
Nov 28, 2011, 6:20:10 PM11/28/11
to android-...@googlegroups.com
As far as I can tell the issue doesn't exist in 4.0.1, it's specific
to the master branch. I've fixed it.

Long story: we usually develop the developer tools directly in AOSP.
Right now, without a code review server for AOSP, that development is
happening on Google's private code review server, and the changes that
get submitted in the sdk/ and external/qemu/ projects get pushed to
AOSP in near-real-time. What happened here is that there was a related
change done in the build/ project, which doesn't get pushed in real
time, and that caused the breakage until I cherry-picked the fix from
Google's private master branch into AOSP.

JBQ

dexter

unread,
Dec 2, 2011, 7:00:57 AM12/2/11
to Android Building
Thanks! I'm able to create sdk now.

Best Regards,
Dexter

On Nov 29, 4:20 am, Jean-Baptiste Queru <j...@android.com> wrote:
> As far as I can tell the issue doesn't exist in 4.0.1, it's specific
> to the master branch. I've fixed it.
>
> Long story: we usually develop the developer tools directly in AOSP.
> Right now, without a code review server for AOSP, that development is
> happening on Google's private code review server, and the changes that
> get submitted in the sdk/ and external/qemu/ projects get pushed to
> AOSP in near-real-time. What happened here is that there was a related
> change done in the build/ project, which doesn't get pushed in real
> time, and that caused the breakage until I cherry-picked the fix from
> Google's private master branch into AOSP.
>
> JBQ
>
>
>
>
>
>
>
>
>
> On Mon, Nov 28, 2011 at 1:56 PM, Jean-Baptiste Queru <j...@android.com> wrote:
> > I'm looking into this. It's broken in master for sure, I'll
> > double-check 4.0.1 as well.
>
> > JBQ
>

Ron M

unread,
Dec 26, 2011, 1:56:57 PM12/26/11
to Android Building
JBQ,
The "sdk-eng" is bound to the arm config, and that makes a redundant
build for those of us who don't build for ARM at all.
Is there anything that can be done to make "sdk-eng" supported for
x86?

Why is the sdk-eng configuration tightly bound to ARM anyway? I would
assume that it is for "historic reasons"...

Jean-Baptiste Queru

unread,
Dec 27, 2011, 1:05:56 PM12/27/11
to android-...@googlegroups.com
Android was historically ARM-only indeed, and I think that so far the
only SDK system images released by Google have been for ARM.

Once we have Gerrit up and running again, we'll gladly accept
contributions for an x86 SDK target.

For the purpose of AOSP platform development (as opposed to packaging
SDKs), you can use full_x86-eng, which works fine.

JBQ

Reply all
Reply to author
Forward
0 new messages