WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
182610
[MIPS] JSC needs to be built with -latomic
https://bugs.webkit.org/show_bug.cgi?id=182610
Summary
[MIPS] JSC needs to be built with -latomic
Guillaume Emont
Reported
2018-02-08 11:48:55 PST
Since
r228149
, on MIPS we need to link with -latomic, since __atomic_fetch_add_8 is not available as a compiler intrinsic.
Attachments
Patch
(1.41 KB, patch)
2018-02-08 12:52 PST
,
Guillaume Emont
no flags
Details
Formatted Diff
Diff
Patch
(1.65 KB, patch)
2018-02-09 09:28 PST
,
Guillaume Emont
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Guillaume Emont
Comment 1
2018-02-08 12:52:02 PST
Created
attachment 333412
[details]
Patch Patch fixing this.
Zan Dobersek
Comment 2
2018-02-08 12:56:49 PST
Comment on
attachment 333412
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=333412&action=review
> Source/JavaScriptCore/CMakeLists.txt:125 > +if (WTF_CPU_MIPS) > + list(APPEND JavaScriptCore_LIBRARIES > + -latomic > + ) > +endif ()
Similar comment to what's in the ChangeLog would be nice here as well.
Adrian Perez
Comment 3
2018-02-08 13:02:07 PST
Comment on
attachment 333412
[details]
Patch In Source/WebKit/CMakeLists.txt, after line 780, there's a check that tries to compile a snippet which uses “std::atomic<int64_t>” and determines whether using libatomic is needed or not. Instead of unconditionally adding the library as your patch does, could you please change the CMake code there so it adds it conditionally? The resulting snippet patch should be something like: if (ATOMIC_INT64_REQUIRES_LIBATOMIC) list(APPEND WebKit_LIBRARIES atomic) + list(APPEND JavaScriptCore_LIBRARIES atomic) endif () Thanks!
Adrian Perez
Comment 4
2018-02-08 13:04:45 PST
(In reply to Adrian Perez from
comment #3
)
> Comment on
attachment 333412
[details]
> Patch > > In Source/WebKit/CMakeLists.txt, after line 780, there's a check > that tries to compile a snippet which uses “std::atomic<int64_t>” > and determines whether using libatomic is needed or not. Instead > of unconditionally adding the library as your patch does, could > you please change the CMake code there so it adds it conditionally? > > The resulting snippet patch should be something like: > > if (ATOMIC_INT64_REQUIRES_LIBATOMIC) > list(APPEND WebKit_LIBRARIES atomic) > + list(APPEND JavaScriptCore_LIBRARIES atomic) > endif () > > Thanks!
Correction: This is in the CMakeLists.txt for *WebKit*, so it would be better to move the check to one of the top-level CMakeLists.txt and then in Source/JavaScriptCore/CMakeLists.txt append the library conditionally to the list.
Guillaume Emont
Comment 5
2018-02-09 09:28:55 PST
Created
attachment 333495
[details]
Patch New patch addressing Zan's comments.
Guillaume Emont
Comment 6
2018-02-09 09:30:32 PST
Note that this is to fix the build quickly. A more correct solution will be developed in
bug#182622
.
WebKit Commit Bot
Comment 7
2018-02-11 23:32:20 PST
Comment on
attachment 333495
[details]
Patch Clearing flags on attachment: 333495 Committed
r228370
: <
https://trac.webkit.org/changeset/228370
>
WebKit Commit Bot
Comment 8
2018-02-11 23:32:22 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 9
2018-02-11 23:33:28 PST
<
rdar://problem/37451082
>
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