[Lldb-commits] [lldb] [lldb] Build the TestRosetta.py executable with system stdlib (PR #78370)

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 16 16:19:04 PST 2024


https://github.com/bulbazord created https://github.com/llvm/llvm-project/pull/78370

This is a speculative fix for TestRosetta.py which is currently failing on Green Dragon.

TestRosetta just makes sure we can debug an x86_64 process on Apple Silicon. However, we're failing to build the x86_64 test binary. The linker is failing with some warnings about libc++ and libunwind being build for arm64 while the target binary is x86_64. I'm going to try building with the system standard libraries instead of the just-built ones to workaround it.

>From 536a232bbae47200071b7b2857504e4f8d411049 Mon Sep 17 00:00:00 2001
From: Alex Langford <alangford at apple.com>
Date: Tue, 16 Jan 2024 16:16:25 -0800
Subject: [PATCH] [lldb] Build the TestRosetta.py executable with system stdlib

This is a speculative fix for TestRosetta.py which is currently failing
on Green Dragon.

TestRosetta just makes sure we can debug an x86_64 process on Apple
Silicon. However, we're failing to build the x86_64 test binary. The
linker is failing with some warnings about libc++ and libunwind being
build for arm64 while the target binary is x86_64. I'm going to try
building with the system standard libraries instead of the just-built
ones to workaround it.
---
 lldb/test/API/macosx/rosetta/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lldb/test/API/macosx/rosetta/Makefile b/lldb/test/API/macosx/rosetta/Makefile
index 8dd53c8407e1634..40707da8f100772 100644
--- a/lldb/test/API/macosx/rosetta/Makefile
+++ b/lldb/test/API/macosx/rosetta/Makefile
@@ -1,4 +1,6 @@
 C_SOURCES := main.c
 override ARCH = x86_64
 
+USE_SYSTEM_STDLIB := 1
+
 include Makefile.rules



More information about the lldb-commits mailing list