New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 640973 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Sep 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

minification errors while building chrome_public_apk

Project Member Reported by primiano@chromium.org, Aug 25 2016

Issue description

Got this while building chrome_public_apk today.
Note the last error, OSError: [Errno 2] No such file or directory: '/tmp/tmp_WBWXg.js', which smells like some race in the minification script

Anthony, is it something related with your recent work?

[8925/20126] ACTION //chrome/renderer:resources_grit(//build/toolchain/android:arm)
/tmp/tmpJGlTn1.js:16: ERROR - Parse error. Semi-colon expected
      native function Focus();
             ^

1 error(s), 0 warning(s)


Traceback (most recent call last):
  File "/s/chrome/src/third_party/closure_compiler/js_minify.py", line 47, in <module>
    result = Minify(sys.stdin.read())
  File "/s/chrome/src/third_party/closure_compiler/js_minify.py", line 39, in Minify
    return result
  File "/usr/lib/python2.7/tempfile.py", line 427, in __exit__
    self.close()
  File "/usr/lib/python2.7/tempfile.py", line 418, in close
    self.unlink(self.name)
OSError: [Errno 2] No such file or directory: '/tmp/tmpjI6kZV.js'

Minification failed, using original source
/tmp/tmp140cMq.js:16: ERROR - Parse error. Semi-colon expected
      native function Focus();
             ^

1 error(s), 0 warning(s)


Traceback (most recent call last):
  File "/s/chrome/src/third_party/closure_compiler/js_minify.py", line 47, in <module>
    result = Minify(sys.stdin.read())
  File "/s/chrome/src/third_party/closure_compiler/js_minify.py", line 39, in Minify
    return result
  File "/usr/lib/python2.7/tempfile.py", line 427, in __exit__
    self.close()
  File "/usr/lib/python2.7/tempfile.py", line 418, in close
    self.unlink(self.name)
OSError: [Errno 2] No such file or directory: '/tmp/tmpYchmow.js'

Minification failed, using original source
/tmp/tmpEpdJyG.js:16: ERROR - Parse error. Semi-colon expected
      native function Focus();
             ^

1 error(s), 0 warning(s)


Traceback (most recent call last):
  File "/s/chrome/src/third_party/closure_compiler/js_minify.py", line 47, in <module>
    result = Minify(sys.stdin.read())
  File "/s/chrome/src/third_party/closure_compiler/js_minify.py", line 39, in Minify
    return result
  File "/usr/lib/python2.7/tempfile.py", line 427, in __exit__
    self.close()
  File "/usr/lib/python2.7/tempfile.py", line 418, in close
    self.unlink(self.name)
OSError: [Errno 2] No such file or directory: '/tmp/tmp_WBWXg.js'


 
Status: WontFix (was: Untriaged)
WAI although we should probably improve the output. You should see later in the output a message to the effect of "failed to minify, using original file".

The problem is that "native" is Chrome extension to Javascript, which the minifier (the closure compiler) doesn't understand. These are the error messages from the minifier.

Sign in to add a comment