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: Paolo Bonzini
Subject: Re: ld: file not found: _PreallocMode_lookup on macOS Catalina
Date: Mon, 19 Oct 2020 19:14:01 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1

On 19/10/20 18:40, Emmanuel Blot wrote:
> On 19 Oct 2020, at 17:50, Philippe Mathieu-Daudé wrote:
> 
>> Cc'ing Markus/John/Paolo
> 
> I never used `git bisect` up to now, so I might be wronb but it seems
> the issue would have been introduced with the following commit:

Hi,

I think this could be the fix.  The problem would be that

        awk '$2=="U"{print "-Wl,-u," $1}'

used to filter away lines with only one token, while the
Python script does not.

diff --git a/scripts/undefsym.py b/scripts/undefsym.py
index 69a895cd26..4b6a72d95f 100644
--- a/scripts/undefsym.py
+++ b/scripts/undefsym.py
@@ -15,12 +15,11 @@ def filter_lines_set(stdout, from_staticlib):
     linesSet = set()
     for line in stdout.splitlines():
         tokens = line.split(b' ')
-        if len(tokens) >= 1:
-            if len(tokens) > 1:
-                if from_staticlib and tokens[1] == b'U':
-                    continue
-                if not from_staticlib and tokens[1] != b'U':
-                    continue
+        if len(tokens) >= 2:
+            if from_staticlib and tokens[1] == b'U':
+                continue
+            if not from_staticlib and tokens[1] != b'U':
+                continue
             new_line = b'-Wl,-u,' + tokens[0]
             if not new_line in linesSet:
                 linesSet.add(new_line)


If not, can you attach (or diff) the contents of block.syms and
qemu.syms before and after this commit?

Also please attach the output (on any commit) of "nm -P -g *.so".

Thanks,

Paolo

> 604f3e4e90c011a6b94fdc1d13700f3ec2375f2a is the first bad commit
> commit 604f3e4e90c011a6b94fdc1d13700f3ec2375f2a
> Author: Yonggang Luo <luoyonggang@gmail.com>
> Date:   Thu Sep 3 01:00:50 2020 +0800
> 
>     meson: Convert undefsym.sh to undefsym.py
> 
>     Shell scripts are not easily invoked from the build process
>     on MSYS, so convert undefsym.sh to a python script.
> 
>     Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
>     Message-Id: <20200902170054.810-3-luoyonggang@gmail.com>
>     Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> 
>  meson.build         |  2 +-
>  scripts/undefsym.py | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
>  scripts/undefsym.sh | 20 --------------------
>  3 files changed, 50 insertions(+), 21 deletions(-)
>  create mode 100644 scripts/undefsym.py
>  delete mode 100755 scripts/undefsym.sh






reply via email to

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