qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ld: file not found: _PreallocMode_lookup on macOS Catalina


From: Emmanuel Blot
Subject: Re: ld: file not found: _PreallocMode_lookup on macOS Catalina
Date: Mon, 19 Oct 2020 19:16:39 +0200

On 19 Oct 2020, at 18:40, Emmanuel Blot wrote:

On 19 Oct 2020, at 17:50, Philippe Mathieu-Daudé wrote:

Cc'ing Markus/John/Paolo

604f3e4e90c011a6b94fdc1d13700f3ec2375f2a is the first bad commit
commit 604f3e4e90c011a6b94fdc1d13700f3ec2375f2a

Applying the reverse diff to the current master does “fix” the trouble.

It seems the issue narrows down to an initial empty symbol generated in the generated output file, e.g.:

--- undef_sh.log        2020-10-19 19:15:08.000000000 +0200
+++ undef_py.log        2020-10-19 19:15:20.000000000 +0200
@@ -1,3 +1,4 @@
+-Wl,-u,
 -Wl,-u,_PreallocMode_lookup
 -Wl,-u,__TRACE_CURL_CLOSE_DSTATE
 -Wl,-u,__TRACE_CURL_OPEN_DSTATE


I think it can be addressed with the following patch:

From d157bd508d32485dd5cdb3efcff7969a89628cc1 Mon Sep 17 00:00:00 2001
From: Emmanuel Blot <emmanuel.blot@sifive.com>
Date: Mon, 19 Oct 2020 19:07:03 +0200
Subject: [PATCH] Fix regression with undefined symbol filter introduced in
 604f3e4e.

---
 scripts/undefsym.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/undefsym.py b/scripts/undefsym.py
index 69a895cd26..254c456f25 100644
--- a/scripts/undefsym.py
+++ b/scripts/undefsym.py
@@ -21,6 +21,8 @@ def filter_lines_set(stdout, from_staticlib):
                     continue
                 if not from_staticlib and tokens[1] != b'U':
                     continue
+            if not tokens[0]:
+                continue
             new_line = b'-Wl,-u,' + tokens[0]
             if not new_line in linesSet:
                 linesSet.add(new_line)
--
2.28.0



HTH,
Emmanuel.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]