Run bazel version from command line:
$ bazel version file is invalid or corrupted (missing end of central directory record) Opening zip "/proc/self/exe": Cannot find central directory FATAL: Failed to open '/proc/self/exe' as a zip file: (error: 5): Input/output error
This error is due to removal of the line debug: no from package.yml in a recent update (D8756). I wanted to fix it and submit a patch. However, bazel is not building on my laptop with the most up-to-date package.yml. It first complains about not being able to find javac. After I set JAVA_HOME, it complains about not being able to find external/local_jdk/include/jni. So I decide to report the issue and the fix to the issue here and hope it can be fixed soon.