Skip to content

Conversation

@tarunprabhu
Copy link
Contributor

@tarunprabhu tarunprabhu commented Nov 22, 2024

A recent commit (23d7a6c) introduced a dependency on libLLVMMC.so. This is to handle the -print-supported-cpus option which uses llvm/MC/SubtargetInfo. It requires libLLVMMC to be linked into the flang-driver which the previous commit did not do. This fixes that issue.

A recent commit (23d7a6c) introduced a dependency on libLLVMMC.so
which was missed. This should fix the resulting buildbot failures.
@llvmbot llvmbot added flang:driver flang Flang issues not falling into any other category labels Nov 22, 2024
@tarunprabhu
Copy link
Contributor Author

This is a placeholder since I need to double check that this is the problem. I am still in the middle of building and testing that this fix works.

@llvmbot
Copy link
Member

llvmbot commented Nov 22, 2024

@llvm/pr-subscribers-flang-driver

Author: Tarun Prabhu (tarunprabhu)

Changes

A recent commit (23d7a6c) introduced a dependency on libLLVMMC.so which was missed. This should fix the resulting buildbot failures.


Full diff: https://github.com/llvm/llvm-project/pull/117373.diff

1 Files Affected:

  • (modified) flang/tools/flang-driver/CMakeLists.txt (+1)
diff --git a/flang/tools/flang-driver/CMakeLists.txt b/flang/tools/flang-driver/CMakeLists.txt
index 9a89a6185a3291..06b61e5951881b 100644
--- a/flang/tools/flang-driver/CMakeLists.txt
+++ b/flang/tools/flang-driver/CMakeLists.txt
@@ -6,6 +6,7 @@ link_directories(${LLVM_LIBRARY_DIR})
 
 set( LLVM_LINK_COMPONENTS
   ${LLVM_TARGETS_TO_BUILD}
+  MC
   Option
   Support
   TargetParser

@banach-space
Copy link
Contributor

It would be good to document what requires the new dependency.

If you need more time, just revert the previous patch.

@tarunprabhu
Copy link
Contributor Author

It would be good to document what requires the new dependency.

If you need more time, just revert the previous patch.

I think I can just update the commit message. This definitely fixes the issue. The tests just finished running.

@tarunprabhu tarunprabhu merged commit 4ab5e90 into llvm:main Nov 22, 2024
7 checks passed
@tarunprabhu tarunprabhu deleted the correct-library-dependencies branch November 22, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flang:driver flang Flang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants