I'm getting build error:
[18/4593] Building CXX object Source/WebCore/PAL/pal/CMakeFiles/PAL.dir/text/TextCodecCJK.cpp.o
cc1plus: warning: command-line option ‘-Wno-incompatible-pointer-types’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wno-int-conversion’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wno-discarded-qualifiers’ is valid for C/ObjC but not for C++
ninja: build stopped: subcommand failed.
> Task :web:compileNativeLinux FAILED
FAILURE: Build failed with an exception.
* Where:
Build file '/home/joe/Downloads/java21-openjfx/src/jfx21u-21.0.5-0/build.gradle' line: 3659
* What went wrong:
Execution failed for task ':web:compileNativeLinux'.
> Process 'command 'perl'' finished with non-zero exit value 1
* 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 8s
59 actionable tasks: 9 executed, 50 up-to-date
==> ERROR: A failure occurred in build().
Aborting...
I have perl v5.40.0 installed.
Any suggestions?
Pinned Comments
Freso commented on 2024-04-21 11:59 (UTC)
Patches etc. are very welcome at https://gitlab.archlinux.org/freso/java-openjfx (
java21-openjfx
branch) if you have any suggestions for how to fix the package. :)Disabling the building of WebKit seems to unbreak the build. I’m not sure how essential the WebKit parts are to JavaFX overall, so a bit wary about changing this part of the PKGBUILD here. For anyone who wants to try it out, you can grab the package from this branch: https://gitlab.archlinux.org/freso/java-openjfx/-/tree/java21-openjfx-no-webkit