[Bug 288305] devel/ghidra: Fails to build with GCC 14: error: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration]
Date: Fri, 18 Jul 2025 13:54:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288305
Bug ID: 288305
Summary: devel/ghidra: Fails to build with GCC 14: error:
implicit declaration of function 'gettimeofday'
[-Wimplicit-function-declaration]
Product: Ports & Packages
Version: Latest
Hardware: amd64
URL: https://pkg-status.freebsd.org/gohan06/data/142amd64-d
efault-foo/2025-07-17_20h45m42s/logs/errors/ghidra-11.
3.1.log
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs@FreeBSD.org
Reporter: salvadore@freebsd.org
CC: tiago.gasiba@gmail.com
Blocks: 281091
CC: tiago.gasiba@gmail.com
Flags: maintainer-feedback?(tiago.gasiba@gmail.com)
Build fails with GCC 14. This blocks GCC_DEFAULT update to GCC 14.
> Task :FileFormats:compileLzfseFreebsd_x86_64ExecutableLzfseC FAILED
/wrkdirs/usr/ports/devel/ghidra/work/ghidra_11.3.1_PUBLIC/Ghidra/Features/FileFormats/src/lzfse/c/lzfse_main.c:
In function 'get_time':
/wrkdirs/usr/ports/devel/ghidra/work/ghidra_11.3.1_PUBLIC/Ghidra/Features/FileFormats/src/lzfse/c/lzfse_main.c:79:7:
error: implicit declaration of function 'gettimeofday'
[-Wimplicit-function-declaration]
79 | if (gettimeofday(&tv, 0) != 0) {
| ^~~~~~~~~~~~
> Task :Decompiler:compileSleighFreebsd_x86_64ExecutableSleighCpp
> Task :Decompiler:compileDecompileFreebsd_x86_64ExecutableDecompileCpp
[Incubating] Problems report is available at:
file:///wrkdirs/usr/ports/devel/ghidra/work/ghidra_11.3.1_PUBLIC/support/gradle/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task
':FileFormats:compileLzfseFreebsd_x86_64ExecutableLzfseC'.
> A build operation failed.
C compiler failed while compiling lzfse_main.c.
See the complete log at:
file:///wrkdirs/usr/ports/devel/ghidra/work/ghidra_11.3.1_PUBLIC/Ghidra/Features/FileFormats/build/tmp/compileLzfseFreebsd_x86_64ExecutableLzfseC/output.txt
> C compiler failed while compiling lzfse_main.c.
* 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 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings
and determine if they come from your own scripts or plugins.
For more on this, please refer to
https://docs.gradle.org/8.13/userguide/command_line_interface.html#sec:command_line_warnings
in the Gradle documentation.
BUILD FAILED in 29s
13 actionable tasks: 13 executed
Full log:
https://pkg-status.freebsd.org/gohan06/data/142amd64-default-foo/2025-07-17_20h45m42s/logs/errors/ghidra-11.3.1.log
Useful link: https://gcc.gnu.org/gcc-14/porting_to.html
Referenced Bugs:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281091
[Bug 281091] [exp-run] Update GCC_DEFAULT to 14 etc.
--
You are receiving this mail because:
You are the assignee for the bug.