delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/01/22/00:25:14

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C30AD3858C60
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=message-id:date:mime-version:user-agent:subject:content-language:to
:references:from:in-reply-to:content-transfer-encoding;
bh=N9N+4Co/R4SAjAUpmyJgkhrtu28Mt4t+WnT1swCNVLU=;
b=HB1Jx9RPgitJlGa+xvutYIGZBAxMXNgCFQtkVNdlUlxj6glomGlNwTBYvSgr9m5KoC
Vz0m9DsROTcMTwSN+swtMxfiQqE7U1fBdGmosK0dw0+ursAQbfLwVDKJq/vWk2PhIvF7
uRXPRennHz7aQTY1KQsLv1B8vR3T9ZwJVV5OvUTtxfo2JhI1QyaTAAXfD+xXrMFF5gMx
a9fl5bZqjyuOHPW3/nyXKfaLoUIVum+SyDwiMyqfCFXlkat6QiIDnLfgiiZ6zOFVZuL0
oYKggTxZqGKrsd62EBxza/HzxNcsZBUV6H7G3xoIHMsfqHGHoZbPmNU5W7k7W9GzmFia
acgw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:message-id:date:mime-version:user-agent:subject
:content-language:to:references:from:in-reply-to
:content-transfer-encoding;
bh=N9N+4Co/R4SAjAUpmyJgkhrtu28Mt4t+WnT1swCNVLU=;
b=BtN22wtOf5QFBRYYTigLgt8dlbVxUY6/TBLs/MJsRXSZhHoP+14dZCF1xXFd/IZgME
EySzBiL324i4qxqP40JihJP3twlnfUSrAMIzLM6yQC+RqpqD59fQcGnvpGS16zTQyYNX
VtP1oNDlqpz/QMr8FniomQIJfMYK7Qmp6vLB9lyge82CiWU2xTIn3nJT86UM4pYXJ0sR
QQNKLnmxH/0jz9Y8rK/FMYLqlsLp5JyP9lmr2gvPptH7sNEiv3fcgXQo5Nyz20uco6KR
pDwva/UK/kVbSNXhQtl0R/LsVs9iXjtbI9qEdg67Lx25C91IbbPHzLzDYD6PaCOl/C03
qOyg==
X-Gm-Message-State: AOAM530bpicgJrw2S5SV6eW8hWtpbYLe8U5cYE3hIdQavPCqd5SF/hJI
7vRJF/WyZq91A+niMCOYhD2G4ff6i2U=
X-Google-Smtp-Source: ABdhPJxIJfZP6kx3peAnp8DYlybZMa4c7i6N+qbOE0l7Ea3w8aSJM/r87ku7Tdv5LSIDcCqh6imhlw==
X-Received: by 2002:a05:6000:154a:: with SMTP id
10mr6231238wry.152.1642829090628;
Fri, 21 Jan 2022 21:24:50 -0800 (PST)
Message-ID: <89f4e748-9e1c-b0de-834b-2511b988f14a@gmail.com>
Date: Sat, 22 Jan 2022 06:24:48 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Subject: Re: python-numpy (1.22.0-1) can't be imported
To: Masamichi Hosoda <trueroad AT trueroad DOT jp>, cygwin AT cygwin DOT com
References: <b13535c2-c2fd-ff98-9777-f42b62eced8f AT gmail DOT com>
<vriu8rvj13ah DOT fsf AT mail DOT aol DOT com>
<0fe2e36a-2f32-0334-0ff6-d164f56e1b48 AT gmail DOT com>
<20220122 DOT 100435 DOT 1822912027393751150 DOT trueroad AT trueroad DOT jp>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
In-Reply-To: <20220122.100435.1822912027393751150.trueroad@trueroad.jp>
X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On 22.01.2022 02:04, Masamichi Hosoda wrote:
>> I have not found the root cause yet.
>> As the  1.21.4-1 imports correctly I removed the 1.22.0-1 until I solve
>> the issue.
>>
>> I do not see anything obvious in upstream source between 1.21.4 and
>> 1.22.0 that gives me any hint on root cause.
>>
>> Also 1.22.1 shows the same problem.
>> I excluded the build chain as rebuilding 1.19.4 worked fine
>> for all 3.6 to 3.9
> 
> If I understand correctly,
> the patch below is just a quick hack, but it solves the problem.
> 
> ```
> --- a/numpy/random/setup.py
> +++ b/numpy/random/setup.py
> @@ -147,7 +147,8 @@
>                            include_dirs=['.', 'src', 'src/legacy'],
>                            libraries=mtrand_libs,
>                            extra_compile_args=EXTRA_COMPILE_ARGS,
> -                         extra_link_args=EXTRA_LINK_ARGS,
> +                         extra_link_args=(EXTRA_LINK_ARGS +
> +                                          ['-Wl,--export-all-symbols']),
>                            depends=depends + ['mtrand.pyx'],
>                            define_macros=defs + LEGACY_DEFS,
>                            )
> ```


Thanks

It is something like that, but "-Wl,--export-all-symbols"
is not used on 1.21.4 and is not needed for most of the other
modules on 1.22.x

so I am looking for a less extreme action.
Also to understand how it can impact other python subpackages


Regards
Marco



-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019