Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Windows,When building rule //src/com/facebook/buck/jvm/java/abi/kotlin:kotlin. #2725

Open
noizz opened this issue Sep 3, 2022 · 0 comments

Comments

@noizz
Copy link

noizz commented Sep 3, 2022

I have read #2466. They solved the problem by brew in mac os.
Can I install buck without Chocolatey in windows os?

I run command in git bash.And same results in cmd .

$ java -version
java version "1.8.0_341"
Java(TM) SE Runtime Environment (build 1.8.0_341-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.341-b10, mixed mode)

windows10 professional

$ ant -version
Apache Ant(TM) version 1.10.12 compiled on October 13 2021

$ python -V
Python 2.7.18

$ python3 -V
Python 3.7.2

$ git -v
git version 2.37.3.windows.1

$ watchman -v
20220828.225657.0

$ bin/buck build --show-output buck -v 10
some error log:
……
rm -f -r buck-out\annotation\ce9b6f2e\src\com\facebook\buck\jvm\java\abi\kotlin_kotlin_gen_
mkdir -p buck-out\annotation\ce9b6f2e\src\com\facebook\buck\jvm\java\abi\kotlin_kotlin_gen_
javac -source 8 -target 8 -sourcepath -g -bootclasspath D:\tmp\buck\third-party\java\jdk\jdk8-rt-stub.jar -proc:none -verbose -d D:\tmp\buck\buck-out\bin\ce9b6f2e\src\com\facebook\buck\jvm\java\abi\kotlin\lib__kotlin__scratch\classes -classpath D:\tmp\buck\buck-out\bin\ce9b6f2e\src\com\facebook\buck\jvm\java\abi\kotlin\lib__kotlin__scratch\classes;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-analysis_\asm-analysis-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-commons_\asm-commons-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-jar_\asm-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-tree_\asm-tree-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-util_\asm-util-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\jsr_jsr305_\jsr305.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\kotlinx-metadata-jvm_kotlinx-metadata-jvm_\kotlinx-metadata-jvm-0.1.0.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\kotlin_kotlin-stdlib_\kotlin-stdlib.jar @buck-out\gen\ce9b6f2e\src\com\facebook\buck\jvm\java\abi\kotlin__kotlin__srcs
[2022-09-03 10:23:05.942][warn ][command:81ff55d1-7be9-4de3-b117-34a1b0f42130][tid:133][com.facebook.buck.core.build.engine.impl.CachingBuildRuleBuilder] Building rule [//src/com/facebook/buck/jvm/java/abi/kotlin:kotlin] failed.
com.facebook.buck.core.build.engine.impl.BuildRuleFailedException: com.facebook.buck.step.StepFailedException: Command failed with exit code 1.

stderr:
When running <javac -source 8 -target 8 -sourcepath -g -bootclasspath D:\tmp\buck\third-party\java\jdk\jdk8-rt-stub.jar -proc:none -verbose -d D:\tmp\buck\buck-out\bin\ce9b6f2e\src\com\facebook\buck\jvm\java\abi\kotlin\lib__kotlin__scratch\classes -classpath D:\tmp\buck\buck-out\bin\ce9b6f2e\src\com\facebook\buck\jvm\java\abi\kotlin\lib__kotlin__scratch\classes;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-analysis_\asm-analysis-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-commons_\asm-commons-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-jar_\asm-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-tree_\asm-tree-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-util_\asm-util-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\jsr_jsr305_\jsr305.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\kotlinx-metadata-jvm_kotlinx-metadata-jvm_\kotlinx-metadata-jvm-0.1.0.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\kotlin_kotlin-stdlib_\kotlin-stdlib.jar @buck-out\gen\ce9b6f2e\src\com\facebook\buck\jvm\java\abi\kotlin__kotlin__srcs>.
at com.facebook.buck.core.build.engine.impl.CachingBuildRuleBuilder.getFailedException(CachingBuildRuleBuilder.java:1207)
at com.facebook.buck.core.build.engine.impl.CachingBuildRuleBuilder.lambda$4(CachingBuildRuleBuilder.java:378)
at com.google.common.util.concurrent.AbstractCatchingFuture$AsyncCatchingFuture.doFallback(AbstractCatchingFuture.java:172)
at com.google.common.util.concurrent.AbstractCatchingFuture$AsyncCatchingFuture.doFallback(AbstractCatchingFuture.java:159)
at com.google.common.util.concurrent.AbstractCatchingFuture.run(AbstractCatchingFuture.java:112)
at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1016)
at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:867)
at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:713)
at com.google.common.util.concurrent.AbstractTransformFuture.run(AbstractTransformFuture.java:97)
at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1016)
at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:867)
at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:713)
at com.google.common.util.concurrent.AbstractTransformFuture.run(AbstractTransformFuture.java:97)
at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1016)
at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:867)
at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:713)
at com.google.common.util.concurrent.SettableFuture.setException(SettableFuture.java:54)
at com.facebook.buck.core.build.engine.impl.CachingBuildRuleBuilder$BuildRuleSteps.runWithDefaultExecutor(CachingBuildRuleBuilder.java:1405)
at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.lambda$2(WeightedListeningExecutorService.java:100)
at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.lambda$0(WeightedListeningExecutorService.java:74)
at com.google.common.util.concurrent.AbstractTransformFuture$AsyncTransformFuture.doTransform(AbstractTransformFuture.java:206)
at com.google.common.util.concurrent.AbstractTransformFuture$AsyncTransformFuture.doTransform(AbstractTransformFuture.java:195)
at com.google.common.util.concurrent.AbstractTransformFuture.run(AbstractTransformFuture.java:115)
at com.google.common.util.concurrent.MoreExecutors$5$1.run(MoreExecutors.java:999)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
Caused by: com.facebook.buck.step.StepFailedException: Command failed with exit code 1.

stderr:
When running <javac -source 8 -target 8 -sourcepath -g -bootclasspath D:\tmp\buck\third-party\java\jdk\jdk8-rt-stub.jar -proc:none -verbose -d D:\tmp\buck\buck-out\bin\ce9b6f2e\src\com\facebook\buck\jvm\java\abi\kotlin\lib__kotlin__scratch\classes -classpath D:\tmp\buck\buck-out\bin\ce9b6f2e\src\com\facebook\buck\jvm\java\abi\kotlin\lib__kotlin__scratch\classes;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-analysis_\asm-analysis-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-commons_\asm-commons-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-jar_\asm-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-tree_\asm-tree-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-util_\asm-util-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\jsr_jsr305_\jsr305.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\kotlinx-metadata-jvm_kotlinx-metadata-jvm_\kotlinx-metadata-jvm-0.1.0.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\kotlin_kotlin-stdlib_\kotlin-stdlib.jar @buck-out\gen\ce9b6f2e\src\com\facebook\buck\jvm\java\abi\kotlin__kotlin__srcs>.
at com.facebook.buck.step.StepFailedException.createForFailingStepWithExitCode(StepFailedException.java:78)
at com.facebook.buck.step.StepRunner.runStep(StepRunner.java:67)
at com.facebook.buck.core.build.engine.impl.CachingBuildRuleBuilder$BuildRuleSteps.executeCommands(CachingBuildRuleBuilder.java:1417)
at com.facebook.buck.core.build.engine.impl.CachingBuildRuleBuilder$BuildRuleSteps.runWithDefaultExecutor(CachingBuildRuleBuilder.java:1394)
... 9 more
Caused by: com.facebook.buck.core.exceptions.HumanReadableException: Command failed with exit code 1.

stderr:
at com.facebook.buck.step.StepFailedException.createForFailingStepWithExitCode(StepFailedException.java:82)
... 12 more

……

I run this in cmd:
javac -source 8 -target 8 -sourcepath -g -bootclasspath D:\tmp\buck\third-party\java\jdk\jdk8-rt-stub.jar -proc:none -verbose -d D:\tmp\buck\buck-out\bin\ce9b6f2e\src\com\facebook\buck\jvm\java\abi\kotlin\lib__kotlin__scratch\classes -classpath D:\tmp\buck\buck-out\bin\ce9b6f2e\src\com\facebook\buck\jvm\java\abi\kotlin\lib__kotlin__scratch\classes;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-analysis_\asm-analysis-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-commons_\asm-commons-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-jar_\asm-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-tree_\asm-tree-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\asm_asm-util_\asm-util-7.1.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\jsr_jsr305_\jsr305.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\kotlinx-metadata-jvm_kotlinx-metadata-jvm_\kotlinx-metadata-jvm-0.1.0.jar;D:\tmp\buck\buck-out\gen\ce9b6f2e\third-party\java\kotlin_kotlin-stdlib_\kotlin-stdlib.jar @buck-out\gen\ce9b6f2e\src\com\facebook\buck\jvm\java\abi\kotlin__kotlin__srcs

error is :Can't find source file
but :
$ ls buck-out/gen/ce9b6f2e/src/com/facebook/buck/jvm/java/abi/kotlin/__kotlin__srcs -l
-rw-r--r-- 1 hp 197121 0 Sep 3 10:23 buck-out/gen/ce9b6f2e/src/com/facebook/buck/jvm/java/abi/kotlin/__kotlin__srcs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant