From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id C30AD3858C60 for ; Sat, 22 Jan 2022 05:24:51 +0000 (GMT) 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 Received: by mail-wr1-x42f.google.com with SMTP id a13so3420311wrh.9 for ; Fri, 21 Jan 2022 21:24:51 -0800 (PST) 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) Received: from ?IPV6:2003:cc:9f2f:3e1f:2847:c5d1:b7d7:bb79? (p200300cc9f2f3e1f2847c5d1b7d7bb79.dip0.t-ipconnect.de. [2003:cc:9f2f:3e1f:2847:c5d1:b7d7:bb79]) by smtp.gmail.com with ESMTPSA id y7sm1367829wrr.74.2022.01.21.21.24.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); 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 Content-Language: it To: Masamichi Hosoda , cygwin@cygwin.com References: <0fe2e36a-2f32-0334-0ff6-d164f56e1b48@gmail.com> <20220122.100435.1822912027393751150.trueroad@trueroad.jp> From: Marco Atzeri In-Reply-To: <20220122.100435.1822912027393751150.trueroad@trueroad.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jan 2022 05:24:56 -0000 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