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

buck doesn't build for me #62

Closed
tfarina opened this issue Oct 27, 2013 · 7 comments
Closed

buck doesn't build for me #62

tfarina opened this issue Oct 27, 2013 · 7 comments
Labels

Comments

@tfarina
Copy link

tfarina commented Oct 27, 2013

$ 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

@bolinfest
Copy link
Contributor

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.?

@tfarina
Copy link
Author

tfarina commented Oct 27, 2013

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"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.12.04.2)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

@tfarina
Copy link
Author

tfarina commented Nov 2, 2013

@bolinfest any idea?

@oconnor663
Copy link
Contributor

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:

java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

@tfarina
Copy link
Author

tfarina commented Dec 15, 2013

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
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

Closing this.

Thanks!

@tfarina tfarina closed this as completed Dec 15, 2013
@oconnor663
Copy link
Contributor

@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.

@LegNeato
Copy link
Contributor

I am going to add openjdk to the travis builds, assuming it currently builds

@dreiss dreiss reopened this Jan 22, 2014
@natthu natthu closed this as completed Apr 24, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants