python-numpy (1.22.0-1) can't be imported

Marco Atzeri marco.atzeri@gmail.com
Sat Jan 22 05:24:48 GMT 2022


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




More information about the Cygwin mailing list