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

Issue 598708 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android
Pri: 2
Type: Bug



Sign in to add a comment

net_unittest build fails when use_errorprone_java_compiler = true

Project Member Reported by kapishnikov@chromium.org, Mar 29 2016

Issue description

OS: Android testing on Linux

What steps will reproduce the problem?
(1) Generate an Android GN project with use_errorprone_java_compiler flag set to true.
(2) Run "ninja -C out/Debug net_unittests"
(3) The following error should appear:

util.build_utils.CalledProcessError: Command failed: ( cd /ssd/chrome/repo/android/src/out/Debug; bin/chromium_errorprone -Xep:ParameterPackage:OFF -Xep:OverridesGuiceInjectableMethod:OFF -Xep:OverridesJavaxInjectableMethod:OFF -g -encoding UTF-8 -classpath '' -sourcepath '' -bootclasspath lib.java/android.interface.jar -source 1.7 -target 1.7 -Xlint:unchecked -Xlint:deprecation -d /tmp/tmp1eiHHW/classes ../../build/android/pylib/device/commands/java/src/org/chromium/android/commands/unzip/Unzip.java )
Exception in thread "main" java.lang.NoSuchFieldError: NATIVE_HEADER_OUTPUT
	at com.sun.tools.javac.file.Locations.initHandlers(Locations.java:689)
	at com.sun.tools.javac.file.Locations.<init>(Locations.java:98)
	at com.sun.tools.javac.util.BaseFileManager.createLocations(BaseFileManager.java:88)
	at com.sun.tools.javac.util.BaseFileManager.<init>(BaseFileManager.java:73)
	at com.sun.tools.javac.file.JavacFileManager.<init>(JavacFileManager.java:128)
	at com.sun.tools.javac.file.JavacFileManager$1.make(JavacFileManager.java:118)
	at com.sun.tools.javac.file.JavacFileManager$1.make(JavacFileManager.java:116)
	at com.sun.tools.javac.util.Context.get(Context.java:150)
	at com.sun.tools.javac.util.Context.get(Context.java:187)
	at com.sun.tools.javac.main.Main.compile(Main.java:201)
	at com.google.errorprone.ErrorProneCompiler.run(ErrorProneCompiler.java:249)
	at com.google.errorprone.ErrorProneCompiler.run(ErrorProneCompiler.java:159)
	at com.google.errorprone.ErrorProneCompiler.compile(ErrorProneCompiler.java:88)
	at com.google.errorprone.ErrorProneCompiler.main(ErrorProneCompiler.java:64)

ninja: build stopped: subcommand failed.

 
Cc: mikec...@chromium.org
Owner: mikec...@chromium.org
Status: Started (was: Untriaged)
Looks like one of the paths is wrong in the BUILD.gn file for errorprone.
Fixed in this CL.
https://codereview.chromium.org/1848593002
Status: Fixed (was: Started)
Assuming this is fixed.

Sign in to add a comment