This problem has been fixed upstream. This patch merges the fix in advance.
Error log:
/some_dir/jfx/modules/javafx.web/src/main/native/Source/WTF/wtf/StackPointer.cpp:140:2: error: #error "Unsupported platform: need implementation of currentStackPointer."
140 | #error "Unsupported platform: need implementation of currentStackPointer."
| ^~~~~
make[2]: *** [Source/WTF/wtf/CMakeFiles/WTF.dir/build.make:1098: Source/WTF/wtf/CMakeFiles/WTF.dir/StackPointer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:360: Source/WTF/wtf/CMakeFiles/WTF.dir/all] Error 2