Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to build with gradle 6.6 and latest Ghidra #8

Open
cspencer49519 opened this issue Oct 13, 2020 · 4 comments
Open

Trying to build with gradle 6.6 and latest Ghidra #8

cspencer49519 opened this issue Oct 13, 2020 · 4 comments

Comments

@cspencer49519
Copy link

cspencer49519 commented Oct 13, 2020

Does this require q specific version of Ghidra or gradle? I'm trying to build on macos 10.15.7 with gradle 6.6. I get the following errors:

graffix@Craigs-MacBook-Pro-2018 ghidra-plugin-PS4-loader % gradle

Task :compileJava FAILED
/Users/graffix/Downloads/ghidra-plugin-PS4-loader/src/main/java/ghidraps4loader/GhidraPS4Loader.java:35: error: cannot find symbol
import ghidra.app.util.importer.MemoryConflictHandler;
^
symbol: class MemoryConflictHandler
location: package ghidra.app.util.importer
/Users/graffix/Downloads/ghidra-plugin-PS4-loader/src/main/java/ghidraps4loader/GhidraPS4Loader.java:176: error: cannot find symbol
success = this.loadInto(provider, loadSpec, options, log, program, monitor, MemoryConflictHandler.ALWAYS_OVERWRITE);
^
symbol: variable MemoryConflictHandler
location: class GhidraPS4Loader
/Users/graffix/Downloads/ghidra-plugin-PS4-loader/src/main/java/ghidraps4loader/GhidraPS4Loader.java:257: error: method does not override or implement a method from a supertype
@OverRide
^
/Users/graffix/Downloads/ghidra-plugin-PS4-loader/src/main/java/ghidraps4loader/GhidraPS4Loader.java:259: error: method validateOptions in class BinaryLoader cannot be applied to given types;
return super.validateOptions(provider, loadSpec, options);
^
required: ByteProvider,LoadSpec,List,Program
found: ByteProvider,LoadSpec,List
reason: actual and formal argument lists differ in length
4 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileJava'.

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.6.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 4s
1 actionable task: 1 executed
graffix@Craigs-MacBook-Pro-2018 ghidra-plugin-PS4-loader % sudo gradlr
sudo: gradlr: command not found
graffix@Craigs-MacBook-Pro-2018 ghidra-plugin-PS4-loader % sudo gradle

FAILURE: Build failed with an exception.

  • Where:
    Build file '/Users/graffix/Downloads/ghidra-plugin-PS4-loader/build.gradle' line: 29

  • What went wrong:
    A problem occurred evaluating root project 'ghidra-plugin-PS4-loader'.

GHIDRA_INSTALL_DIR is not defined!

  • 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

BUILD FAILED in 557ms

@jogolden
Copy link
Owner

Something has changed n the new Ghidra I believe. If I have time at some point I can fix it, or you could look into it.

@cspencer49519
Copy link
Author

I wish possessed the knowledge to do that. Do you happen to know what version of ghidra it works on?

@nickl-
Copy link

nickl- commented Jul 20, 2022

Updated deprecation errors against Ghidra 10.2. see #10

OpenJDK 18
Gradle 7.4.2

@marcussacana
Copy link

@nickl- I tried with your fork and I still got this error

GhidraPS4Loader/src/main/java/ghidraps4loader/PS4ElfParser.java:98: error: constructor ElfHeader in class ElfHeader cannot be applied to given types;
                ElfHeader elfHeader = new ElfHeader(provider, msg -> Msg.error(PS4ElfParser.class, msg));
                                      ^
  required: no arguments
  found:    ByteProvider,(msg)->Msg[...] msg)
  reason: actual and formal argument lists differ in length
1 error

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

No branches or pull requests

4 participants