New issue
Advanced search Search tips

Issue 681560 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 14
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug



Sign in to add a comment

Compiling chrome_public_apk failing due to OSError: [Errno 17] File exists: ui_strings_grd.resources.zip

Project Member Reported by flackr@chromium.org, Jan 16 2017

Issue description

Chrome Version: 57.0.2984.0
OS: Android

What steps will reproduce the problem?
(1) Try to build chrome_public_apk with GN / ninja

What is the expected result?
Compiles.

What happens instead?
Fails with the following error:
ninja: Entering directory `out_android/Release'
[65/8399] ACTION //ui/android:ui_java__lint(//build/toolchain/android:android_arm)
FAILED: gen/ui/android/ui_java__lint/result.xml gen/ui/android/ui_java__lint/config.xml 
python src/build/android/gyp/lint.py --lint-path=src/third_party/android_tools/sdk/tools/lint --cache-dir android_lint_cache --platform-xml-path src/third_party/android_tools/sdk/platform-tools/api/api-versions.xml --android-sdk-version=24 --depfile gen/ui/android/ui_java__lint.d --config-path src/build/android/lint/suppressions.xml --manifest-path src/build/android/AndroidManifest.xml --product-dir=. --processed-config-path gen/ui/android/ui_java__lint/config.xml --result-path gen/ui/android/ui_java__lint/result.xml --java-sources-file=gen/ui/android/ui_java.sources --jar-path lib.java/ui/android/ui_java.jar --classpath=@FileArg\(gen/ui/android/ui_java.build_config:javac:interface_classpath\) --resource-sources=@FileArg\(gen/ui/android/ui_java.build_config:deps_info:owned_resources_dirs\) --resource-sources=@FileArg\(gen/ui/android/ui_java.build_config:deps_info:owned_resources_zips\) --can-fail-build
Traceback (most recent call last):
  File "src/build/android/gyp/lint.py", line 375, in <module>
    sys.exit(main())
  File "src/build/android/gyp/lint.py", line 371, in main
    depfile_deps=classpath)
  File "src/build/android/gyp/util/build_utils.py", line 578, in CallAndWriteDepfileIfStale
    pass_changes=True)
  File "src/build/android/gyp/util/md5_check.py", line 87, in CallAndRecordIfStale
    function(*args)
  File "src/build/android/gyp/util/build_utils.py", line 561, in on_stale_md5
    function(*args)
  File "src/build/android/gyp/lint.py", line 366, in <lambda>
    silent=args.silent),
  File "src/build/android/gyp/lint.py", line 117, in _OnStaleMd5
    append_digit=False)
  File "src/build/android/gyp/lint.py", line 106, in _NewTempSubdir
    os.makedirs(new_dir)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: 'src/out_android/Release/gen/ui/android/ui_strings_grd.resources.zip'

I tried running gn clean to force a fresh build but it fails every time.

Please use labels and text to provide additional information.


For graphics-related bugs, please copy/paste the contents of the about:gpu
page at the end of this report.

 
That's odd, line 106 of lint.py shows that the directory should be within /tmp, but it's complaining about it being in src/out_android.

Do you by chance have TMP set in your environment?

Comment 2 by flackr@chromium.org, Jan 16 2017

No, TMP isn't set in my environment.
Status: WontFix (was: Untriaged)
Shouldn't happen anymore.

Sign in to add a comment