-
Notifications
You must be signed in to change notification settings - Fork 1.2k
buck doesn't build for me #62
Comments
Hmm, that I have not seen before. Do you have the source code open in Eclipse such that it may be doing its continuous compilation into the build/classes/ directory? What platform are you on, Java version, etc.? |
Nope. I don't use Eclipse. It is plain from terminal. I'm on Linux x86_64 (Ubuntu 12.04). java version says: java version "1.7.0_25" |
@bolinfest any idea? |
I'm not able to repro this myself (Arch Linux x86_64). Does it still repro for you? We tend to use Oracle Java, so I'm curious if the problem you're seeing might be specific to OpenJDK. Here's my java version "1.7.0_45" |
Yeah, I think the problem was with OpenJDK. I have followed the instructions of www.printandweb.ca/2013/04/manually-install-oracle-jdk-7-for.html to install the Oracle Java and by installing it I was able to run 'ant' and './bin/buck build buck' successfully again. $ java -version Closing this. Thanks! |
@bolinfest Do you know if there's anything fundamentally incompatible between the open and closed JDKs, or should we try to be compatible with both? The Oracle JDK is not in the default package database for any Linux distro I know of, so it might be worth a little ongoing work to maintain compatibility with OpenJDK, at least in Buck itself. |
I am going to add openjdk to the travis builds, assuming it currently builds |
$ ant
OK.
Then:
$ ./bin/buck build buck
[+] PARSING BUILD FILES...1.4s
java.lang.IncompatibleClassChangeError: Expecting non-static method com.facebook.buck.cli.BuildCommandOptions.findAndroidSdkDir()Lcom/google/common/base/Optional;
at com.facebook.buck.cli.BuildCommandOptions.createBuild(BuildCommandOptions.java:148)
at com.facebook.buck.cli.BuildCommand.runCommandWithOptionsInternal(BuildCommand.java:106)
at com.facebook.buck.cli.BuildCommand.runCommandWithOptionsInternal(BuildCommand.java:44)
at com.facebook.buck.cli.AbstractCommandRunner.runCommandWithOptions(AbstractCommandRunner.java:114)
at com.facebook.buck.cli.AbstractCommandRunner.runCommand(AbstractCommandRunner.java:94)
at com.facebook.buck.cli.Command.execute(Command.java:104)
at com.facebook.buck.cli.Main.runMainWithExitCode(Main.java:392)
at com.facebook.buck.cli.Main.tryRunMainWithExitCode(Main.java:571)
at com.facebook.buck.cli.Main.runMainThenExit(Main.java:588)
[-] PARSING BUILD FILES...FINISHED 1.4s
[+] BUILDING...0.1s
The text was updated successfully, but these errors were encountered: