This is an archive of the discontinued LLVM Phabricator instance.

Linking against the atomic library when building lldb-server for mips32.
AbandonedPublic

Authored by Andrzej on Aug 7 2015, 7:06 AM.

Details

Summary

The linking fails when building lldb-server for mips32 unless the atomic library is added explicitly. This is related to the recent issue reported for Android (link: https://code.google.com/p/android/issues/detail?id=182094) and the corresponding LLVM commit (link: http://reviews.llvm.org/rL244298#6ea97418). However, this commit doesn't seem to solve the issue for lldb-server. The attached patch fixes the problem. Please, could you advise whether there's a neater or more generic way to solve this?

Thanks!

Diff Detail

Event Timeline

Andrzej updated this revision to Diff 31507.Aug 7 2015, 7:06 AM
Andrzej retitled this revision from to Linking against the atomic library when building lldb-server for mips32. .
Andrzej updated this object.
chaoren edited edge metadata.Aug 7 2015, 8:15 AM
chaoren added a subscriber: chaoren.

Hi, sorry about the bogus fix. I tested it in the wrong place, so I thought
it worked. If you don't mind, could you please abandon this patch and let
me upload a follow up to my fix? I would prefer if this is confined to
Android.cmake.

Andrzej abandoned this revision.Aug 7 2015, 8:35 AM

That's perfectly fine. Thanks!

ovyalov edited edge metadata.Aug 7 2015, 8:56 AM

If we're going to use lldb-server on mips (outside of Android) do we still need this CL?

I think this bug is specific to the toolchain, so probably not.