This is an archive of the discontinued LLVM Phabricator instance.

[LLVM] [CMake] Use LLVM_ATOMIC_LIB in ADT tests to fix PPC32 build
AbandonedPublic

Authored by thesamesam on Nov 22 2022, 1:54 PM.

Details

Reviewers
mgorny
Summary

Fixes the following:

/usr/lib/gcc/powerpc-unknown-linux-gnu/11.3.0/../../../../powerpc-unknown-linux-gnu/bin/ld: unittests/ADT/CMakeFiles/ADTTests.dir/StatisticTest.cpp.o: undefined reference to symbol '__atomic_load_8@@LIBATOMIC
_1.0'
/usr/lib/gcc/powerpc-unknown-linux-gnu/11.3.0/../../../../powerpc-unknown-linux-gnu/bin/ld: /usr/lib/gcc/powerpc-unknown-linux-gnu/11.3.0/libatomic.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

Thanks-to: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>

Diff Detail

Event Timeline

thesamesam created this revision.Nov 22 2022, 1:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 22 2022, 1:54 PM
thesamesam requested review of this revision.Nov 22 2022, 1:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 22 2022, 1:54 PM
thesamesam abandoned this revision.Nov 22 2022, 2:32 PM

Ah, sorry, this is fixed in https://reviews.llvm.org/D132799 for 16.x.