Bug 206399

Summary: [AppleWin] No such file or directory at preprocess-idls.pl line 105
Product: WebKit Reporter: Fujii Hironori <Hironori.Fujii>
Component: BindingsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, cdumez, pvollan
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 206407    
Bug Blocks:    
Attachments:
Description Flags
AppleWin EWS build log none

Description Fujii Hironori 2020-01-16 22:22:18 PST
Created attachment 388013 [details]
AppleWin EWS build log

[AppleWin] No such file or directory at preprocess-idls.pl line 105

Occasionally, AppleWin is failing to preprocess IDL.

>   : No such file or directory at /home/buildbot/worker/Windows-EWS/build/Source/WebCore/bindings/scripts/preprocess-idls.pl line 105.
>   Died at C:/cygwin/home/buildbot/worker/Windows-EWS/build/Source/WebCore/bindings/scripts/generate-bindings-all.pl line 85.
> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(230,5): error MSB6006: "cmd.exe" exited with code 2. [C:\cygwin\home\buildbot\worker\Windows-EWS\build\WebKitBuild\Release\Source\WebCore\WebCoreBindings.vcxproj]

For example,
attachment 388011 [details] of Bug 205990
https://ews-build.webkit.org/#/builders//builds/4086
Comment 1 Fujii Hironori 2020-01-16 22:49:09 PST
Giving "" to Cwd::realpath results different result on Cygwin Perl, Windows perl, Linux perl.

perl -e 'use Cwd; print Cwd::realpath("")."\n"'

Cygwin and Windows: An error occurs. "No such file or directory"
Linux: It returns the current directory

Bug #117944 for PathTools: realpath: different behavior on non-existent directory between Unix and Windows
https://rt.cpan.org/Public/Bug/Display.html?id=117944
Comment 2 Fujii Hironori 2020-01-16 22:51:32 PST
Cygwin Perl

$ perl -e 'use Cwd; print Cwd::realpath("")."\n"'
: No such file or directory at -e line 1.
$


Linux Perl

$ perl -e 'use Cwd; print Cwd::realpath("")."\n"'
/home/fujii
$
Comment 3 Fujii Hironori 2020-01-17 03:26:11 PST
  Bug 206407 – preprocess-idls.pl: CygwinPathIfNeeded should use Cygwin::win_to_posix_path instead of invoking cygpath

I hope above change would happen to solve this issue. 🤞
Comment 4 Fujii Hironori 2020-01-22 17:59:28 PST
This error still happened today.
https://ews-build.webkit.org/#/builders/10/builds/4541

r254954 landed Bug 206407 change.
I'll keep eyes on AppleWin EWS bots for a few days.
Comment 5 Fujii Hironori 2020-01-23 20:36:06 PST Comment hidden (obsolete)
Comment 6 Fujii Hironori 2020-01-23 20:47:38 PST Comment hidden (obsolete)
Comment 7 Fujii Hironori 2020-01-29 19:32:01 PST
I haven't observed the issue after the fix (, while observing issues of Bug 206565). Closed.