WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
135613
[Win] Build error when OFFICIAL_BUILD != 1.
https://bugs.webkit.org/show_bug.cgi?id=135613
Summary
[Win] Build error when OFFICIAL_BUILD != 1.
peavo
Reported
2014-08-05 10:47:12 PDT
When OFFICIAL_BUILD != 1 the WinCairo build fails to build WTFGenerated, because the make file tries to run a python script directly, but this fails, because it needs to be started with a shell (bash -c ...).
Attachments
Patch
(5.12 KB, patch)
2014-08-05 10:58 PDT
,
peavo
no flags
Details
Formatted Diff
Diff
Patch
(1.36 KB, patch)
2014-08-06 06:29 PDT
,
peavo
no flags
Details
Formatted Diff
Diff
Patch
(1.62 KB, patch)
2014-08-06 11:14 PDT
,
peavo
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
peavo
Comment 1
2014-08-05 10:58:54 PDT
Created
attachment 236034
[details]
Patch
Brent Fulgham
Comment 2
2014-08-05 11:18:59 PDT
Comment on
attachment 236034
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=236034&action=review
> Source/WTF/ChangeLog:8 > + This is solved by rewriting the python script to perl.
I don't understand this. Why can't you use the Python implementation? I'm trying to reduce the use of bash-based build steps, so changing this to call python directly might be the cause of the problem. I have ActiveState Python installed, which may be why it works for me.
Brent Fulgham
Comment 3
2014-08-05 11:19:37 PDT
I don't think this is the right approach; I would like to use the existing script. Instead, we need to figure out why the Python script cannot be used.
peavo
Comment 4
2014-08-05 11:36:48 PDT
(In reply to
comment #2
)
> (From update of
attachment 236034
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=236034&action=review
Thanks for reviewing :)
> > > Source/WTF/ChangeLog:8 > > + This is solved by rewriting the python script to perl. > > I don't understand this. Why can't you use the Python implementation? > > I'm trying to reduce the use of bash-based build steps, so changing this to call python directly might be the cause of the problem. I have ActiveState Python installed, which may be why it works for me.
Ok, I see, I don't have ActiveState installed, just the cygwin environment. Is it a requirement to have ActiveState installed? In that case I think this bug is invalid ...
peavo
Comment 5
2014-08-05 12:13:29 PDT
(In reply to
comment #3
)
> I don't think this is the right approach; I would like to use the existing script. Instead, we need to figure out why the Python script cannot be used.
I think it fails for me because python is not in the PATH environment variable. I guess we also could go back to 'bash -c python ...', but that's sort of counter-productive to your attempt at reducing the use of bash...
Alex Christensen
Comment 6
2014-08-05 13:07:58 PDT
(In reply to
comment #5
)
> I think it fails for me because python is not in the PATH environment variable.
Does putting python in the PATH fix it? If so, this should be closed as invalid. Heads up -- I'm starting to get things working with CMake, which will require separate installation of things like bison, flex, gperf, grep etc.
peavo
Comment 7
2014-08-05 13:40:32 PDT
(In reply to
comment #6
)
> (In reply to
comment #5
) > > I think it fails for me because python is not in the PATH environment variable. > Does putting python in the PATH fix it? If so, this should be closed as invalid. > > Heads up -- I'm starting to get things working with CMake, which will require separate installation of things like bison, flex, gperf, grep etc.
I see now that WTFPreBuild.cmd adds c:\cygwin\bin to PATH, and there is both a perl and python executable there, but the python executable has the name python2.6.exe, which explains why python.exe is not found ...
Alex Christensen
Comment 8
2014-08-05 13:51:37 PDT
I installed python from python.org and manually put it into my PATH variable. Same with ActivePerl. We should really update
http://www.webkit.org/building/tools.html
.
peavo
Comment 9
2014-08-06 03:36:51 PDT
(In reply to
comment #7
)
> (In reply to
comment #6
) > > (In reply to
comment #5
) > > > I think it fails for me because python is not in the PATH environment variable. > > Does putting python in the PATH fix it? If so, this should be closed as invalid. > > > > Heads up -- I'm starting to get things working with CMake, which will require separate installation of things like bison, flex, gperf, grep etc. > > I see now that WTFPreBuild.cmd adds c:\cygwin\bin to PATH, and there is both a perl and python executable there, but the python executable has the name python2.6.exe, which explains why python.exe is not found ...
There is actually a python symlink in c:\cygwin\bin which points to python2.6.exe, but it's not a native symlink, and will only work with bash, I believe.
peavo
Comment 10
2014-08-06 06:29:38 PDT
Created
attachment 236095
[details]
Patch
peavo
Comment 11
2014-08-06 06:31:14 PDT
(In reply to
comment #10
)
> Created an attachment (id=236095) [details] > Patch
I suggest we temporarily go back to execute the python script from the bash shell until
http://www.webkit.org/building/tools.html
is updated.
Alex Christensen
Comment 12
2014-08-06 09:51:24 PDT
(In reply to
comment #11
)
> I suggest we temporarily go back to execute the python script from the bash shell until
http://www.webkit.org/building/tools.html
is updated.
I think this would be a step against the direction the Windows build systems are going. Websites/webkit.org/building/tools.html should be changed instead of this.
peavo
Comment 13
2014-08-06 11:14:18 PDT
Created
attachment 236119
[details]
Patch
peavo
Comment 14
2014-08-06 11:15:20 PDT
(In reply to
comment #12
)
> (In reply to
comment #11
) > > I suggest we temporarily go back to execute the python script from the bash shell until
http://www.webkit.org/building/tools.html
is updated. > I think this would be a step against the direction the Windows build systems are going. Websites/webkit.org/building/tools.html should be changed instead of this.
Ok, thanks :) Updated patch.
Alex Christensen
Comment 15
2014-08-06 11:15:25 PDT
Comment on
attachment 236119
[details]
Patch In the near future we'll have to add more things like this (bison, flex, gperf, etc.) once my CMake work takes over
peavo
Comment 16
2014-08-06 11:18:03 PDT
(In reply to
comment #15
)
> (From update of
attachment 236119
[details]
) > In the near future we'll have to add more things like this (bison, flex, gperf, etc.) once my CMake work takes over
Sounds good, thanks for reviewing :)
WebKit Commit Bot
Comment 17
2014-08-06 11:49:13 PDT
Comment on
attachment 236119
[details]
Patch Clearing flags on attachment: 236119 Committed
r172163
: <
http://trac.webkit.org/changeset/172163
>
WebKit Commit Bot
Comment 18
2014-08-06 11:49:17 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug