Error building Gingerbread?

259 views
Skip to first unread message

trock

unread,
Dec 30, 2010, 12:55:13 PM12/30/10
to Android Building
This is my first attempt at building AOSP. I went though all the steps
to build Gingerbread and after some trial and error I am at a point
that I don't understand. When getting to the build I get this.

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.1
TARGET_PRODUCT=generic_inc
TARGET_BUILD_VARIANT=userdebug
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
Documents/Android.mk:63: Documents/minui/Android.mk: No such file or
directory
Documents/Android.mk:64: Documents/minzip/Android.mk: No such file or
directory
Documents/Android.mk:65: Documents/mtdutils/Android.mk: No such file
or directory
Documents/Android.mk:66: Documents/tools/Android.mk: No such file or
directory
Documents/Android.mk:67: Documents/edify/Android.mk: No such file or
directory
Documents/Android.mk:68: Documents/updater/Android.mk: No such file or
directory
Documents/Android.mk:69: Documents/applypatch/Android.mk: No such file
or directory
build/core/base_rules.mk:158: *** bootable/recovery:
MODULE.TARGET.EXECUTABLES.recovery already defined by Documents.
Stop.

Can someone please explain?

Jean-Baptiste Queru

unread,
Jan 4, 2011, 12:32:04 PM1/4/11
to android-...@googlegroups.com
My best guess is that you ran your original repo init in a directory
that wasn't empty, and the build system found some Android.mk file in
there and incorporated it into the build, in a way that caused
conflicts.

I suggest that you create a new clean empty directory, run repo init
there, copy .repo/projects from your existing client, and repo sync
it. That should take care of things.

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.

modyrater

unread,
Jan 4, 2011, 5:07:27 PM1/4/11
to android-...@googlegroups.com
I am just beginning and saw a similar error building rowboat

My  Rules.make was not actually pointing to the kernel

trock

unread,
Jan 8, 2011, 9:55:42 PM1/8/11
to Android Building
I now get this,

No private recovery resources for TARGET_DEVICE inc
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host C: libmincrypt <= system/core/libmincrypt/rsa.c
In file included from /usr/include/features.h:378,
from /usr/include/stdio.h:28,
from system/core/mkbootimg/mkbootimg.c:18:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or
directory
In file included from /usr/include/features.h:378,
from /usr/include/inttypes.h:26,
from system/core/include/mincrypt/rsa.h:31,
from system/core/libmincrypt/rsa.c:28:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or
directory
system/core/mkbootimg/mkbootimg.c: In function ‘write_padding’:
system/core/mkbootimg/mkbootimg.c:88: warning: comparison between
signed and unsigned integer expressions
system/core/mkbootimg/mkbootimg.c: In function ‘main’:
system/core/mkbootimg/mkbootimg.c:183: warning: pointer targets in
passing argument 1 of ‘strcpy’ differ in signedness
/usr/include/string.h:127: note: expected ‘char * __restrict__’ but
argument is of type ‘unsigned char *’
system/core/mkbootimg/mkbootimg.c:228: warning: assignment discards
qualifiers from pointer target type
system/core/mkbootimg/mkbootimg.c:241: warning: comparison between
signed and unsigned integer expressions
system/core/mkbootimg/mkbootimg.c:244: warning: comparison between
signed and unsigned integer expressions
system/core/mkbootimg/mkbootimg.c:248: warning: comparison between
signed and unsigned integer expressions
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/
libmincrypt_intermediates/rsa.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/
mkbootimg.o] Error 1

tl

unread,
Jan 13, 2011, 1:15:37 PM1/13/11
to Android Building
Can someone please explain what the issue is with Rules.make and how
to fix it.

Thanks
> > android-buildi...@googlegroups.com<android-building%2Bunsubscrib e...@googlegroups.com>

tl

unread,
Jan 13, 2011, 2:14:12 PM1/13/11
to Android Building
Creating a symbolic link frameworks kludge under frameworks/base fixes
some of the errors. Looks like the base directory
for frameworks base is not set right somewhere and it is adding an
additional "frameworks/base" which is fixed by adding
the additional symbolic link

Jean-Baptiste Queru

unread,
Jan 13, 2011, 3:56:04 PM1/13/11
to android-...@googlegroups.com
Oh, that error reported by "find" is actually a known harmless issue.
We should add it to the documentation.

JBQ

--

Reply all
Reply to author
Forward
0 new messages