NationalSecurityAgency / ghidra

Ghidra is a software reverse engineering (SRE) framework
https://www.nsa.gov/ghidra
Apache License 2.0
49.06k stars 5.65k forks source link

Ghidra Debugger help files failing to build #6672

Open w1redch4d opened 3 days ago

w1redch4d commented 3 days ago

Following the DevGuide.md after fetching the dependencies when i run the prepdev command the build fails with an exception

To Reproduce

Steps to reproduce the behavior: Run the command : gradle prepdev after running gradle -I gradle/support/fetchDependencies.gradle init you will see the gradle stackrace with the following error message :

Found invalid help:
[JavaHelpValidator] - Found the following 4 invalid links:
Module Debugger - Unable to locate image file -
        link: <img src="icon.extension.configure">  [
                From: help\topics\Debugger\GettingStarted.html,
                Resolved: D:\Projects\ghidra\Ghidra\Debug\Debugger\src\main\help\help\topics\Debugger\icon.extension.configure
        ]
        from file: file:///D:/Projects/ghidra/Ghidra/Debug/Debugger/src/main/help/help/topics/Debugger/GettingStarted.html (line:62)

Module Debugger - Unable to locate image file -
        link: <img src="icon.extension.configure">  [
                From: help\topics\Debugger\Troubleshooting.html,
                Resolved: D:\Projects\ghidra\Ghidra\Debug\Debugger\src\main\help\help\topics\Debugger\icon.extension.configure
        ]
        from file: file:///D:/Projects/ghidra/Ghidra/Debug/Debugger/src/main/help/help/topics/Debugger/Troubleshooting.html (line:60)

Module Debugger - Unable to locate image file -
        link: <img src="icon.debugger.refresh">  [
                From: help\topics\DebuggerMemviewPlugin\DebuggerMemviewPlugin.html,
                Resolved: D:\Projects\ghidra\Ghidra\Debug\Debugger\src\main\help\help\topics\DebuggerMemviewPlugin\icon.debugger.refresh
        ]
        from file: file:///D:/Projects/ghidra/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerMemviewPlugin/DebuggerMemviewPlugin.html (line:62)

Module Debugger - Unable to locate image file -
        link: <img src="icon.debugger.refresh">  [
                From: help\topics\DebuggerObjectsPlugin\DebuggerObjectsPlugin.html,
                Resolved: D:\Projects\ghidra\Ghidra\Debug\Debugger\src\main\help\help\topics\DebuggerObjectsPlugin\icon.debugger.refresh
        ]
        from file: file:///D:/Projects/ghidra/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerObjectsPlugin/DebuggerObjectsPlugin.html (line:296)

FAILURE: Build failed with an exception.

Environment:

OS : Microsoft Windows 23H2 (OS Build 22631.3737) Java Version:

openjdk 21.0.2 2024-01-16 LTS
OpenJDK Runtime Environment Microsoft-8905927 (build 21.0.2+13-LTS)
OpenJDK 64-Bit Server VM Microsoft-8905927 (build 21.0.2+13-LTS, mixed mode, sharing)

Gradle version:

------------------------------------------------------------
Gradle 8.5
------------------------------------------------------------

Build time:   2023-11-29 14:08:57 UTC
Revision:     28aca86a7180baa17117e0e5ba01d8ea9feca598

Kotlin:       1.9.20
Groovy:       3.0.17
Ant:          Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM:          21.0.2 (Microsoft 21.0.2+13-LTS)
OS:           Windows 11 10.0 amd64

Ghidra Version : 11.1.1 Ghidra Origin: github repo (master branch)

ryanmkurtz commented 2 days ago

I'm not reproducing this. What commit hash are you working with?

w1redch4d commented 2 days ago

here is the commit id : 5ab72bf4f254773b12c3c9566d14c42e5eb2495f image

w1redch4d commented 2 days ago

even with the latest commit hash : e7595341c4f371eb400b2898e2811e77fc83528b

im facing the same issue : image

Update : the prepdev command works fine on linux but fails on windows