following build instructions - getting many Permission Denied errors.

782 views
Skip to first unread message

roy.be...@gmail.com

unread,
Jul 14, 2014, 8:24:00 AM7/14/14
to android-...@googlegroups.com
downloaded today AOSP first time. now trying to build according to instructions but getting many Permission Denied errors.

any advice would be welcomed!

thanks!


1. getting Permission denied #1
see https://source.android.com/source/initializing.html#ccache

ubuntu@ubuntu:/media/ubuntu/Transcend/AOSP$ ./prebuilt/linux-x86/ccache/ccache -M 50G
bash: ./prebuilt/linux-x86/ccache/ccache: Permission denied

2. getting Permission denied #2
see https://source.android.com/source/building-running.html#choose-a-target

ubuntu@ubuntu:/media/ubuntu/Transcend/AOSP$ lunch

You're building on Linux

Lunch menu... pick a combo:
     1. full-eng
     2. full_x86-eng
     3. vbox_x86-eng
     4. full_maguro-userdebug
     5. full_tuna-userdebug
     6. full_panda-eng

Which would you like? [full-eng] full-eng
/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: Permission denied
/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: Permission denied
/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: Permission denied
/bin/bash: build/core/find-jdk-tools-jar.sh: Permission denied
build/core/config.mk:268: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com.  Stop.

** Don't have a product spec for: 'full'
** Do you have the right repo manifest?

3. getting Permission denied #3
see https://source.android.com/source/building-running.html#build-the-code

ubuntu@ubuntu:/media/ubuntu/Transcend/AOSP$ make -j4
/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: Permission denied
/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: Permission denied
/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: Permission denied
/bin/bash: build/core/find-jdk-tools-jar.sh: Permission denied
build/core/config.mk:268: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com. Stop.


 

Jean-Baptiste Queru

unread,
Jul 14, 2014, 10:54:44 AM7/14/14
to android-...@googlegroups.com
Seems like you downloaded your source tree onto a volume that doesn't honor the executable ("x") bit, so the tools that need to run during the build don't run.

This is a common symptom when downloading onto an NTFS volume, though there are other scenarios where that can also happen.

JBQ
 
--

Jean-Baptiste M. "JBQ" Quéru
Architect, Mobile, Yahoo


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

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages