JDK-8283273 : Debug build of WebKit fails on Linux with Ruby 2.0
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8,jfx19
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2022-03-16
  • Updated: 2024-01-24
  • Resolved: 2024-01-24
Related Reports
Blocks :  
Cloners :  
Description
The following was spotted in our weekly CI debug build on Oracle Linux 7.x:

$ gradle -PCONF=DebugNative -PCOMPILE_WEBKIT=true ... all
...
Scanning dependencies of target LowLevelInterpreterLib
[ 26%] Building CXX object Source/JavaScriptCore/CMakeFiles/LowLevelInterpreterLib.dir/llint/LowLevelInterpreter.cpp.o
.../jfx/modules/javafx.web/build/linux/Debug/DerivedSources/ForwardingHeaders/JavaScriptCore/Scripts/resolve-asm-file-conflicts.rb:89:in `parse': undefined method `/' for #<Pathname:working_directory> (NoMethodError)
	from .../jfx/modules/javafx.web/build/linux/Debug/DerivedSources/ForwardingHeaders/JavaScriptCore/Scripts/resolve-asm-file-conflicts.rb:129:in `test'
	from .../jfx/modules/javafx.web/build/linux/Debug/DerivedSources/ForwardingHeaders/JavaScriptCore/Scripts/resolve-asm-file-conflicts.rb:208:in `block in selftest'
	from .../jfx/modules/javafx.web/build/linux/Debug/DerivedSources/ForwardingHeaders/JavaScriptCore/Scripts/resolve-asm-file-conflicts.rb:207:in `each'
	from .../jfx/modules/javafx.web/build/linux/Debug/DerivedSources/ForwardingHeaders/JavaScriptCore/Scripts/resolve-asm-file-conflicts.rb:207:in `selftest'
	from .../jfx/modules/javafx.web/build/linux/Debug/DerivedSources/ForwardingHeaders/JavaScriptCore/Scripts/resolve-asm-file-conflicts.rb:398:in `<main>'
Error running cmd: pid 14478 exit 1
gmake[2]: *** [Source/JavaScriptCore/CMakeFiles/LowLevelInterpreterLib.dir/llint/LowLevelInterpreter.cpp.o] Error 1
gmake[1]: *** [Source/JavaScriptCore/CMakeFiles/LowLevelInterpreterLib.dir/all] Error 2
gmake: *** [all] Error 2

> Task :web:compileNativeLinux FAILED

I wasn't able to reproduce it locally on Ubuntu (16.04). It might be related to the version of ruby or some other tool on our build machine.
Comments
Reopen to close with the correct resolution.
24-01-2024

I did a debug build on three different systems, with three versions of Ruby. Here are the results: 2.0.0: FAIL 2.3.1: PASS 2.7.0 : PASS Since this only happens with a very old version of Ruby, I've set the fix version of this bug to tbd. We might decide to upgrade the Ruby on our CI system, in which case this bug might be closed as "Won't fix" (alternatively, we could change the minimum version of Ruby in modules/javafx.web/src/main/native/Source/cmake/WebKitCommon.cmake to 2.3, but since production builds are fine with Ruby 2.0, I'm not sure we want to do that).
16-03-2022

Once JDK-8270867 is fixed, we can look at this bug. As Jay noted when JDK-8270867 was first filed, the failure reported in the Description only happens with older versions of Ruby. Specifically, ruby 2.0.0, which is what our CI build systems have, is known to fail.
16-03-2022