Bug 206399 - [AppleWin] No such file or directory at preprocess-idls.pl line 105
Summary: [AppleWin] No such file or directory at preprocess-idls.pl line 105
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 206407
Blocks:
  Show dependency treegraph
 
Reported: 2020-01-16 22:22 PST by Fujii Hironori
Modified: 2020-01-29 19:32 PST (History)
3 users (show)

See Also:


Attachments
AppleWin EWS build log (13.17 KB, text/plain)
2020-01-16 22:22 PST, Fujii Hironori
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.