Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 872959 - dev-python/scipy-1.9.1 - ImportError: .../work/scipy-1.9.1-python3_10/install/usr/lib/python3.10/site-packages/scipy/optimize/_highs/_highs_wrapper.cpython-310-powerpc-linux-gnu.so: undefined symbol: __atomic_compare_exchange_8
Summary: dev-python/scipy-1.9.1 - ImportError: .../work/scipy-1.9.1-python3_10/install...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: libatomic-linking
  Show dependency tree
 
Reported: 2022-09-25 18:38 UTC by ernsteiswuerfel
Modified: 2023-10-29 03:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (ppc, 1.9.1) (scipy-1.9.1:20220925-143310.log.xz,420.07 KB, application/x-xz)
2022-09-25 18:38 UTC, ernsteiswuerfel
Details
emerge --info (file_872959.txt,6.29 KB, text/plain)
2022-09-25 18:39 UTC, ernsteiswuerfel
Details
build.log.xz (ppc, 1.9.3) (scipy-1.9.3:20230111-154004.log.xz,473.36 KB, application/x-xz)
2023-01-11 19:20 UTC, ernsteiswuerfel
Details
build.log.xz (ppc, 1.9.3 + patch) (scipy-1.9.3:20230114-173937.log.xz,471.52 KB, application/x-xz)
2023-01-14 18:11 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2022-09-25 18:38:51 UTC
Created attachment 814177 [details]
build.log.xz (ppc, 1.9.1)

[...]
FAILED _lib/tests/test_public_api.py::test_api_importable - AssertionError: Modules in the public API tha...
FAILED _lib/tests/test_public_api.py::test_all_modules_are_expected_2 - ImportError: /var/tmp/portage/dev...
FAILED _lib/tests/test_import_cycles.py::test_modules_importable - subprocess.CalledProcessError: Command...
FAILED interpolate/tests/test_fitpack.py::test_bisplev_integer_overflow
= 4 failed, 22420 passed, 1825 skipped, 103 xfailed, 8 xpassed, 2 warnings, 105 errors in 308.27s (0:05:08) =
 * ERROR: dev-python/scipy-1.9.1::gentoo failed (test phase):
 *   pytest failed with python3.10


 # python3.10 -c 'import sys, numpy; print(numpy.__version__, sys.version_info)'
1.23.1 sys.version_info(major=3, minor=10, micro=6, releaselevel='final', serial=0)
Comment 1 ernsteiswuerfel archtester 2022-09-25 18:39:18 UTC
Created attachment 814180 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2022-09-25 18:46:51 UTC
Apart from the 4 test failures there are many test errors with:

ImportError while importing test module '/var/tmp/portage/dev-python/scipy-1.9.1/work/scipy-1.9.1-python3_10/install/usr/lib/python3.10/site-packages/scipy/integrate/_ivp/tests/test_ivp.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/site-packages/_pytest/python.py:608: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/usr/lib/python3.10/site-packages/_pytest/pathlib.py:533: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:168: in exec_module
    exec(co, module.__dict__)
../work/scipy-1.9.1-python3_10/install/usr/lib/python3.10/site-packages/scipy/integrate/_ivp/tests/test_ivp.py:7: in <module>
    from scipy.optimize._numdiff import group_columns
../work/scipy-1.9.1-python3_10/install/usr/lib/python3.10/site-packages/scipy/optimize/__init__.py:413: in <module>
    from ._linprog import linprog, linprog_verbose_callback
../work/scipy-1.9.1-python3_10/install/usr/lib/python3.10/site-packages/scipy/optimize/_linprog.py:21: in <module>
    from ._linprog_highs import _linprog_highs
../work/scipy-1.9.1-python3_10/install/usr/lib/python3.10/site-packages/scipy/optimize/_linprog_highs.py:20: in <module>
    from ._highs._highs_wrapper import _highs_wrapper
E   ImportError: /var/tmp/portage/dev-python/scipy-1.9.1/work/scipy-1.9.1-python3_10/install/usr/lib/python3.10/site-packages/scipy/optimize/_highs/_highs_wrapper.cpython-310-powerpc-linux-gnu.so: undefined symbol: __atomic_compare_exchange_8
Comment 3 ernsteiswuerfel archtester 2023-01-11 19:20:59 UTC
Created attachment 848273 [details]
build.log.xz (ppc, 1.9.3)

1.9.3 is an improvement. 1 test failure less.

[...]
FAILED _lib/tests/test_import_cycles.py::test_modules_importable - subprocess.CalledProcessError: Command '['/var/tmp/portage/dev-python/scipy-1.9.3/work/scipy-1....
FAILED _lib/tests/test_public_api.py::test_all_modules_are_expected_2 - ImportError: /var/tmp/portage/dev-python/scipy-1.9.3/work/scipy-1.9.3-python3_9/install/usr/lib...
FAILED _lib/tests/test_public_api.py::test_api_importable - AssertionError: Modules in the public API that cannot be imported: ['scipy.integrate', 'scipy.o...
= 3 failed, 22489 passed, 1865 skipped, 103 xfailed, 8 xpassed, 30 warnings, 105 errors in 290.96s (0:04:50) =
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-01-12 11:53:56 UTC
https://github.com/scipy/scipy/issues/17670 seems roughly the same problem.  Do you feel like trying to upstream a patch adding -latomic if necessary?
Comment 5 ernsteiswuerfel archtester 2023-01-14 18:11:53 UTC
Created attachment 848457 [details]
build.log.xz (ppc, 1.9.3 + patch)

Upstream patch: https://github.com/scipy/scipy/pull/17777/commits/051f3b370e8d84ad4244b4a50f7f6036dbea2084
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-29 03:10:46 UTC
fixed in scipy-1.11.0