New issue
Advanced search Search tips

Issue 739595 link

Starred by 3 users

Issue metadata

Status: Archived
Owner: ----
Closed: Jan 10
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android
Pri: 2
Type: Bug



Sign in to add a comment

Build chromium android failed with OSError: [Errno 2] No such file or directory.

Reported by nchxm...@hotmail.com, Jul 6 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Steps to reproduce the problem:
1. compile the chromium android according to https://chromium.googlesource.com/chromium/src/+/master/docs/android_build_instructions.md#Build-WebView
2. All the steps are ok but running "ninja -C out/Default chrome_public_apk"
3. Then compile failed with os error 2.

What is the expected behavior?
"ninja -C out/Default chrome_public_apk" will success, and the android project will be compiled success.

What went wrong?
xxxx@xxxx-VirtualBox:~/chromium/src$ ninja -C out/Default chrome_public_apk
ninja: Entering directory `out/Default'
[2/30589] ACTION //base:android_runtim...d/toolchain/android:android_clang_arm)
FAILED: gen/android_runtime_jni_headers/base/jni/Runtime_jni.h 
python ../../base/android/jni_generator/jni_generator.py --depfile gen/base/android_runtime_jni_headers__jni_Runtime.d --jar_file ../../third_party/android_tools/sdk/platforms/android-26/android.jar --input_file java/lang/Runtime.class --ptr_type=long --output_dir gen/android_runtime_jni_headers/base/jni --includes ../../../../../../base/android/jni_generator/jni_generator_helper.h --native_exports_optional
Traceback (most recent call last):
  File "../../base/android/jni_generator/jni_generator.py", line 1428, in <module>
    sys.exit(main(sys.argv))
  File "../../base/android/jni_generator/jni_generator.py", line 1421, in main
    GenerateJNIHeader(input_file, output_file, options)
  File "../../base/android/jni_generator/jni_generator.py", line 1326, in GenerateJNIHeader
    jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, options)
  File "../../base/android/jni_generator/jni_generator.py", line 662, in CreateFromClass
    stderr=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
[3/30589] ACTION //base:base_jni_heade...d/toolchain/android:android_clang_arm)
ninja: build stopped: subcommand failed.

Did this work before? N/A 

Chrome version: 58.0.3029.110  Channel: n/a
OS Version: Ubuntu.x64.14.04.3
Flash Version:
 
Labels: TE-NeedsTriageHelp
This issue seems to be out of TE-scope. Hence, adding label TE-NeedsTriageHelp for further investigation.

Thanks...!!

Comment 2 by alph@chromium.org, Jul 10 2017

Components: -Platform>DevTools Infra>Client>Android
Status: (was: Unconfirmed)
Components: Infra>Client>Chrome
Labels: OS-Android
Moving Infra>Client>Android -> Infra>Client>Chrome+OS=Android
Components: -Infra>Client>Android
This bug had an unsupported status. Updating to Untriaged so someone will reevaluate.
Status: Untriaged
Status: Archived (was: Untriaged)
Likely needs build deps installed. See https://chromium.googlesource.com/chromium/src/+/master/docs/android_build_instructions.md#install-additional-build-dependencies

Regardless, old bug so archiving.

Sign in to add a comment