Building on WSL failing
davidhoksza opened this issue · comments
I tried to build p2rank on WSL, but I am getting the following error (seems like it's not related to WSL at all):
hellb@DESKTOP-21PNO6M:/mnt/c/projects/git/p2rank$ sudo ./make.sh
> Task :compileGroovy
/mnt/c/projects/git/p2rank/src/main/groovy/cz/siret/prank/prediction/pockets/rescorers/InstancePredictor.java:36: error: cannot find symbol
if (((FasterForest)classifier).isVersion2()) {
^
symbol: method isVersion2()
location: class FasterForest
/mnt/c/projects/git/p2rank/src/main/groovy/cz/siret/prank/prediction/pockets/rescorers/InstancePredictor.java:62: error: cannot find symbol
return ff.distributionForAttributes(vect.getArray(), 2);
^
symbol: method distributionForAttributes(double[],int)
location: variable ff of type FasterForest2
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
startup failed:
Compilation failed; see the compiler error output for details.
1 error
> Task :compileGroovy FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileGroovy'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1m 23s
1 actionable task: 1 executed
What version of the source code are you building? Judging by the version of Gradle (6.7) is could be something at least one year old. It looks more like a problem with an inconsistent source tree (or perhaps bad commit) than anything related to WSL...
Could you try to clone and build current develop or master or recent release?
Right, was an issue with my git repo.