Android build fails with No such file/directory

634 views
Skip to first unread message

Vaishali

unread,
Mar 12, 2012, 6:26:43 AM3/12/12
to Android Building
vaishali@vaishali-desktop:~/WORKING_DIRECTORY$ make -j4
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=full_crespo4g
TARGET_BUILD_VARIANT=userdebug
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
/bin/bash: out/target/product/crespo4g/clean_steps.mk: Permission denied
/bin/bash: out/target/product/crespo4g/clean_steps.mk: Permission denied
/bin/bash: out/target/product/crespo4g/previous_build_config.mk: Permission denied
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
/bin/bash: out/target/product/crespo4g/obj/PACKAGING/updater_extensions_intermediates/register.inc.temp: Permission denied
*** glibc detected *** make: free(): invalid next size (fast): 0x0000000008a7fc00 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x78a8f)[0x7f8778ac4a8f]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x73)[0x7f8778ac88e3]
make[0x408ff8]
make[0x40aedb]
make[0x405c7b]
make[0x40577b]
make[0x405823]
make[0x40aea4]
make[0x405c7b]
make[0x40577b]
make[0x405970]
make[0x4060b8]
make[0x4088e6]
make[0x40aedb]
make[0x405c7b]
make[0x40577b]
make[0x41d5d2]
make[0x41dc8b]
make[0x416228]
make[0x4176e2]
make[0x416977]
make[0x4176e2]
make[0x417ab4]
make[0x4119ff]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xff)[0x7f8778a6aeff]
make[0x4025e9]
======= Memory map: ========
00400000-00429000 r-xp 00000000 08:01 7084538                            /usr/local/bin/make
00628000-00629000 r--p 00028000 08:01 7084538                            /usr/local/bin/make
00629000-0062b000 rw-p 00029000 08:01 7084538                            /usr/local/bin/make
0062b000-0062c000 rw-p 00000000 00:00 0
025f3000-08e0b000 rw-p 00000000 00:00 0                                  [heap]
7f8773dea000-7f8773dff000 r-xp 00000000 08:01 8916643                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f8773dff000-7f8773ffe000 ---p 00015000 08:01 8916643                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f8773ffe000-7f8773fff000 r--p 00014000 08:01 8916643                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f8773fff000-7f8774000000 rw-p 00015000 08:01 8916643                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f8774000000-7f8774021000 rw-p 00000000 00:00 0
7f8774021000-7f8778000000 ---p 00000000 00:00 0
7f87780a2000-7f87781a3000 rw-p 00000000 00:00 0
7f87781a3000-7f877882e000 r--p 00000000 08:01 6691864                    /usr/lib/locale/locale-archive
7f877882e000-7f8778846000 r-xp 00000000 08:01 8916680                    /lib/x86_64-linux-gnu/libpthread-2.13.so
7f8778846000-7f8778a46000 ---p 00018000 08:01 8916680                    /lib/x86_64-linux-gnu/libpthread-2.13.so
7f8778a46000-7f8778a47000 r--p 00018000 08:01 8916680                    /lib/x86_64-linux-gnu/libpthread-2.13.so
7f8778a47000-7f8778a48000 rw-p 00019000 08:01 8916680                    /lib/x86_64-linux-gnu/libpthread-2.13.so
7f8778a48000-7f8778a4c000 rw-p 00000000 00:00 0
7f8778a4c000-7f8778bd6000 r-xp 00000000 08:01 8916615                    /lib/x86_64-linux-gnu/libc-2.13.so
7f8778bd6000-7f8778dd5000 ---p 0018a000 08:01 8916615                    /lib/x86_64-linux-gnu/libc-2.13.so
7f8778dd5000-7f8778dd9000 r--p 00189000 08:01 8916615                    /lib/x86_64-linux-gnu/libc-2.13.so
7f8778dd9000-7f8778dda000 rw-p 0018d000 08:01 8916615                    /lib/x86_64-linux-gnu/libc-2.13.so
7f8778dda000-7f8778de0000 rw-p 00000000 00:00 0
7f8778de0000-7f8778de7000 r-xp 00000000 08:01 8916684                    /lib/x86_64-linux-gnu/librt-2.13.so
7f8778de7000-7f8778fe6000 ---p 00007000 08:01 8916684                    /lib/x86_64-linux-gnu/librt-2.13.so
7f8778fe6000-7f8778fe7000 r--p 00006000 08:01 8916684                    /lib/x86_64-linux-gnu/librt-2.13.so
7f8778fe7000-7f8778fe8000 rw-p 00007000 08:01 8916684                    /lib/x86_64-linux-gnu/librt-2.13.so
7f8778fe8000-7f8779009000 r-xp 00000000 08:01 8916602                    /lib/x86_64-linux-gnu/ld-2.13.so
7f87790e3000-7f87791e8000 rw-p 00000000 00:00 0
7f8779201000-7f8779202000 rw-p 00000000 00:00 0
7f8779204000-7f8779208000 rw-p 00000000 00:00 0
7f8779208000-7f8779209000 r--p 00020000 08:01 8916602                    /lib/x86_64-linux-gnu/ld-2.13.so
7f8779209000-7f877920b000 rw-p 00021000 08:01 8916602                    /lib/x86_64-linux-gnu/ld-2.13.so
7fff8ab7e000-7fff8abb3000 rw-p 00000000 00:00 0                          [stack]
7fff8abff000-7fff8ac00000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted

Conley Owens

unread,
Mar 12, 2012, 1:58:05 PM3/12/12
to android-...@googlegroups.com
Hi Vaishali,

"Permission denied" hints that you may have previously run `sudo
make`, and now the files in `out` are only accessible to sudoers. You
should do `sudo rm -rf out` and try running make again without sudo.

~cco3

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

Vaishali

unread,
Mar 13, 2012, 2:37:01 AM3/13/12
to android-...@googlegroups.com
Possible!
Looks like my environment was not setup correctly. I had already tried the build without proper environment. This might have messed up certain files in the downloaded code. I hv now downloaded a fresh android code and building this runs without any problem. So This is for those who helped n those who can be helped by my errors.
Regards


Mathew Says IdareYou

unread,
Mar 13, 2012, 12:10:51 PM3/13/12
to android-...@googlegroups.com

Did you allow them to be executed ?

Reply all
Reply to author
Forward
0 new messages