Rainer Orth via Phabricator
unread,Jan 28, 2022, 7:27:32 AM1/28/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to r...@gcc.gnu.org, chris.b...@me.com, siddu...@gmail.com, mgo...@gentoo.org, fedor....@azul.com, asbi...@google.com, ll...@meinersbur.de, llvm-c...@lists.llvm.org, poll...@googlegroups.com, seb...@gmail.com, simb...@fim.uni-passau.de, phabr...@grosser.es, dpei...@codeaurora.org, jdoe...@anl.gov, lege...@outlook.com, michae...@gmail.com, micha...@web.de, wic...@vitalitystudios.com, jatin....@gmail.com, n...@google.com, phoeb...@intel.com, bhuvanend...@amd.com, yanli...@intel.com, doug...@gmail.com, ju...@samsung.com, an...@azulsystems.com
ro created this revision.
ro added a reviewer: beanz.
ro added a project: Polly.
Herald added subscribers: pengfei, asbirlea, fedor.sergeev, mgorny.
Herald added a reviewer: bollu.
ro requested review of this revision.
Herald added a project: LLVM.
A `-DBUILD_SHARED_LIBS=ON` build on Solaris/amd64 failed with
Undefined first referenced
symbol in file
_ZNK4llvm3cfg6UpdateIPNS_10BasicBlockEE4dumpEv tools/polly/unittests/DeLICM/CMakeFiles/DeLICMTests.dir/DeLICMTest.cpp.o (symbol belongs to implicit dependency /var/llvm/local-amd64-release-stage2-shared-A/bin/../lib/libLLVMCore.so.14git)
ld: fatal: symbol referencing errors
Solaris `ld` requires to directly link with dependant libraries, so this patch explicitly adds
`libLLVMCore`.
Tested on `amd64-pc-solaris2.11` and `x86_64-pc-linux-gnu`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D118452
Files:
polly/unittests/DeLICM/CMakeLists.txt
Index: polly/unittests/DeLICM/CMakeLists.txt
===================================================================
--- polly/unittests/DeLICM/CMakeLists.txt
+++ polly/unittests/DeLICM/CMakeLists.txt
@@ -1,3 +1,7 @@
+set(LLVM_LINK_COMPONENTS
+ Core
+ )
+
add_polly_unittest(DeLICMTests
DeLICMTest.cpp
)