Last active
March 29, 2017 13:42
-
-
Save p0deje/0122dca0a0f5e33732c656a047732853 to your computer and use it in GitHub Desktop.
Buck issue when building on network directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[-] PARSING BUCK FILES...FINISHED 3.7s [100%] | |
[-] BUILDING...FINISHED 7.7s [100%] | |
Ignoring non-fatal error! The stack trace is below: | |
com.facebook.buck.util.HumanReadableException: Unable to write trace file: java.nio.file.FileSystemException: \\vboxsrv\vagrant\selenium\buck-out\log\build.trace -> \\vboxsrv\vagrant\selenium\buck-out\log\2017-03-27_09h20m12s_buildcommand_27416809-3fd0-401e-ae0c-24b77f51c3b0\build.2017-03-27.09-20-13.27416809-3fd0-401e-ae0c-24b77f51c3b0.trace: Incorrect function. | |
at com.facebook.buck.event.listener.ChromeTraceBuildListener.outputTrace(ChromeTraceBuildListener.java:260) | |
at com.facebook.buck.cli.Main.flushEventListeners(Main.java:1272) | |
at com.facebook.buck.cli.Main.runMainWithExitCode(Main.java:1253) | |
at com.facebook.buck.cli.Main.runMainThenExit(Main.java:648) | |
at com.facebook.buck.cli.Main.main(Main.java:1732) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:498) | |
at com.facebook.buck.cli.bootstrapper.ClassLoaderBootstrapper.main(ClassLoaderBootstrapper.java:62) | |
Caused by: java.nio.file.FileSystemException: \\vboxsrv\vagrant\selenium\buck-out\log\build.trace -> \\vboxsrv\vagrant\selenium\buck-out\log\2017-03-27_09h20m12s_buildcommand_27416809-3fd0-401e-ae0c-24b77f51c3b0\build.2017-03-27.09-20-13.27416809-3fd0-401e-ae0c-24b77f51c3b0.trace: Incorrect function. | |
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86) | |
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97) | |
at sun.nio.fs.WindowsFileSystemProvider.createLink(WindowsFileSystemProvider.java:608) | |
at java.nio.file.Files.createLink(Files.java:1086) | |
at com.facebook.buck.io.ProjectFilesystem.createSymLink(ProjectFilesystem.java:1025) | |
at com.facebook.buck.event.listener.ChromeTraceBuildListener.outputTrace(ChromeTraceBuildListener.java:253) | |
... 9 more | |
BUILD FAILED: //java/client/src/org/openqa/selenium/security:security failed on step javac with an exception: | |
java.lang.IllegalStateException | |
java.lang.RuntimeException: java.lang.IllegalStateException | |
at com.sun.tools.javac.main.Main.compile(Main.java:559) | |
at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129) | |
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138) | |
at com.facebook.buck.jvm.java.Jsr199Javac.buildWithClasspath(Jsr199Javac.java:247) | |
at com.facebook.buck.jvm.java.Jsr199Javac.buildWithClasspath(Jsr199Javac.java:155) | |
at com.facebook.buck.jvm.java.JavacStep.tryBuildWithFirstOrderDeps(JavacStep.java:154) | |
at com.facebook.buck.jvm.java.JavacStep.execute(JavacStep.java:137) | |
at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:63) | |
at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:1276) | |
at com.facebook.buck.rules.CachingBuildEngine.access$200(CachingBuildEngine.java:116) | |
at com.facebook.buck.rules.CachingBuildEngine$3$1.call(CachingBuildEngine.java:325) | |
at com.facebook.buck.rules.CachingBuildEngine$3$1.call(CachingBuildEngine.java:315) | |
at com.facebook.buck.util.concurrent.WeightedListeningExecutorService$1.apply(WeightedListeningExecutorService.java:80) | |
at com.facebook.buck.util.concurrent.WeightedListeningExecutorService$1.apply(WeightedListeningExecutorService.java:76) | |
at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1442) | |
at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1433) | |
at com.google.common.util.concurrent.Futures$AbstractChainingFuture.run(Futures.java:1408) | |
at com.google.common.util.concurrent.Futures$2$1.run(Futures.java:1177) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) | |
at java.lang.Thread.run(Thread.java:745) | |
Caused by: java.lang.IllegalStateException | |
at com.google.common.base.Preconditions.checkState(Preconditions.java:159) | |
at com.facebook.buck.jvm.java.ClassUsageTracker.addReadFile(ClassUsageTracker.java:107) | |
at com.facebook.buck.jvm.java.ClassUsageTracker.access$200(ClassUsageTracker.java:45) | |
at com.facebook.buck.jvm.java.ClassUsageTracker$TrackingJavaFileObject.openInputStream(ClassUsageTracker.java:290) | |
at com.sun.tools.javac.api.ClientCodeWrapper$WrappedFileObject.openInputStream(ClientCodeWrapper.java:426) | |
at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2510) | |
at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2442) | |
at com.sun.tools.javac.jvm.ClassReader.access$000(ClassReader.java:76) | |
at com.sun.tools.javac.jvm.ClassReader$1.complete(ClassReader.java:240) | |
at com.sun.tools.javac.code.Symbol.complete(Symbol.java:574) | |
at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1037) | |
at com.sun.tools.javac.jvm.ClassReader.loadClass(ClassReader.java:2623) | |
at com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:1907) | |
at com.sun.tools.javac.comp.Resolve.findIdentInPackage(Resolve.java:2146) | |
at com.sun.tools.javac.comp.Attr.selectSym(Attr.java:3391) | |
at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3278) | |
at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897) | |
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:576) | |
at com.sun.tools.javac.comp.Attr.attribType(Attr.java:638) | |
at com.sun.tools.javac.comp.Attr.attribType(Attr.java:631) | |
at com.sun.tools.javac.comp.MemberEnter.attribImportType(MemberEnter.java:834) | |
at com.sun.tools.javac.comp.MemberEnter.visitImport(MemberEnter.java:558) | |
at com.sun.tools.javac.tree.JCTree$JCImport.accept(JCTree.java:571) | |
at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:437) | |
at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:449) | |
at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:528) | |
at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:518) | |
at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:437) | |
at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:1038) | |
at com.sun.tools.javac.code.Symbol.complete(Symbol.java:574) | |
at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1037) | |
at com.sun.tools.javac.comp.Enter.complete(Enter.java:493) | |
at com.sun.tools.javac.comp.Enter.main(Enter.java:471) | |
at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:982) | |
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:857) | |
at com.sun.tools.javac.main.Main.compile(Main.java:523) | |
... 20 more |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Install buck | |
cd C:\ | |
git clone https://github.com/facebook/buck.git | |
cd buck | |
ant | |
:: Switch to shared directory (UNC) | |
cd C:\vagrant | |
:: Prepare Selenium | |
git clone https://github.com/SeleniumHQ/selenium.git | |
cd selenium | |
type nul > .nobuckcheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Install buck dependencies | |
choco install -y jdk8 | |
choco install -y ant | |
choco install -y python --version 2.7.6 | |
choco install -y git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure(2) do |config| | |
config.vm.box = 'mwrock/Windows2012R2' | |
config.vm.box_version = '0.6.1' | |
config.vm.provision :shell, path: 'prepare.cmd' | |
config.vm.provision :shell, path: 'install.cmd' | |
config.vm.provider :virtualbox do |vbox| | |
vbox.gui = true | |
end | |
config.vm.synced_folder '.', '/vagrant' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment