WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
49479
[Qt] Building QtWebKit fails on uClibc (0.9.31)
https://bugs.webkit.org/show_bug.cgi?id=49479
Summary
[Qt] Building QtWebKit fails on uClibc (0.9.31)
Daniel Nyström
Reported
2010-11-12 14:09:06 PST
Building QtWebKit on uClibc (0.9.31) fails like QtScript did in 4.6:
http://bugreports.qt.nokia.com/browse/QTBUG-6551
Attaching i patch which adds what fixed the QtScript build.
Attachments
Bugfix
(2.55 KB, patch)
2010-11-12 14:25 PST
,
Daniel Nyström
kling
: review-
Details
Formatted Diff
Diff
Same patch but with bug URL and no tabs
(2.61 KB, patch)
2010-11-12 14:49 PST
,
Daniel Nyström
no flags
Details
Formatted Diff
Diff
Fixed code styling complains
(2.61 KB, patch)
2010-11-12 15:19 PST
,
Daniel Nyström
kling
: review-
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Daniel Nyström
Comment 1
2010-11-12 14:25:11 PST
Created
attachment 73778
[details]
Bugfix
Andreas Kling
Comment 2
2010-11-12 14:39:00 PST
Comment on
attachment 73778
[details]
Bugfix View in context:
https://bugs.webkit.org/attachment.cgi?id=73778&action=review
> JavaScriptCore/ChangeLog:5 > + Merged changes from QtScript which fixes missing pthread_getattr_np not available on uClibc causing build error.
Use spaces, not tabs, for indentation. Please include the Bugzilla URL here.
Andreas Kling
Comment 3
2010-11-12 14:40:09 PST
CC'ing Geoff and Maciej per suggestion from Oliver.
Daniel Nyström
Comment 4
2010-11-12 14:49:42 PST
Created
attachment 73780
[details]
Same patch but with bug URL and no tabs
WebKit Review Bot
Comment 5
2010-11-12 14:55:24 PST
Attachment 73780
[details]
did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style', '--diff-files', u'JavaScriptCore/ChangeLog', u'JavaScriptCore/runtime/Collector.cpp']" exit_code: 1 JavaScriptCore/runtime/Collector.cpp:78: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] JavaScriptCore/runtime/Collector.cpp:539: Declaration has space between type name and * in FILE *file [whitespace/declaration] [3] JavaScriptCore/runtime/Collector.cpp:543: Declaration has space between type name and * in char *line [whitespace/declaration] [3] JavaScriptCore/runtime/Collector.cpp:543: Use 0 instead of NULL. [readability/null] [5] Total errors found: 4 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Daniel Nyström
Comment 6
2010-11-12 15:19:45 PST
Created
attachment 73782
[details]
Fixed code styling complains
WebKit Review Bot
Comment 7
2010-11-12 15:22:47 PST
Attachment 73782
[details]
did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style', '--diff-files', u'JavaScriptCore/ChangeLog', u'JavaScriptCore/runtime/Collector.cpp']" exit_code: 1 JavaScriptCore/runtime/Collector.cpp:78: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] JavaScriptCore/runtime/Collector.cpp:83: __libc_stack_end is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Total errors found: 2 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Andreas Kling
Comment 8
2010-11-12 15:30:27 PST
(In reply to
comment #7
)
> JavaScriptCore/runtime/Collector.cpp:78: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] > JavaScriptCore/runtime/Collector.cpp:83: __libc_stack_end is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4]
You can ignore these complaints IMO.
Andreas Kling
Comment 9
2010-11-17 03:43:49 PST
Comment on
attachment 73782
[details]
Fixed code styling complains View in context:
https://bugs.webkit.org/attachment.cgi?id=73782&action=review
> JavaScriptCore/ChangeLog:5 > + Merged changes from QtScript which fixes missing pthread_getattr_np not available on uClibc causing build error.
This is a bit muddy. Suggestion: == Fix currentThreadStackBase() compilation against uClibc uClibc doesn't have pthread_getattr_np or pthread_attr_getstack. Patch originally from QtScript. ==
> JavaScriptCore/runtime/Collector.cpp:77 > +// versions of uClibc 0.9.31 and below do not have > +// pthread_getattr_np or pthread_attr_getstack.
This seems a bit strange to me, since 0.9.31 is the latest version (AFAICT from uclibc.org) Shouldn't we be doing this for *any* uClibc version, not just <= 0.9.31?
> JavaScriptCore/runtime/Collector.cpp:544 > + size_t lineLen = 0;
We generally don't abbreviate in WebKit, "lineLength" sounds better here.
> JavaScriptCore/runtime/Collector.cpp:551 > + if (sscanf (line, "%lx-%lx", &from, &to) != 2)
Style, remove space after sscanf.
> JavaScriptCore/runtime/Collector.cpp:557 > + return (void *)from;
Style, remove space after void.
> JavaScriptCore/runtime/Collector.cpp:559 > + return (void *)to;
Ditto.
Daniel Nyström
Comment 10
2010-11-23 02:34:56 PST
I think putting this patch on hold until someone can really support it is to prefer right now. To make QtWebKit build on uClibc, just enable NPTL (only in trunk currently).
Jocelyn Turcotte
Comment 11
2014-02-03 03:16:57 PST
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at
https://bugreports.qt-project.org
and add a link to this issue. See
http://qt-project.org/wiki/ReportingBugsInQt
for additional guidelines.
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