Opened 10 months ago

Closed 9 months ago

#69100 closed defect (fixed)

py-pandas build error: ‘signbit’ was not declared in this scope

Reported by: barracuda156 Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: py-pandas, py311-pandas

Description

At least on ppc build fails with:

/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -arch ppc -isysroot/ -DNPY_NO_DEPRECATED_API=0 -Ipandas/_libs/window -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/core/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c pandas/_libs/window/aggregations.cpp -o build/temp.macosx-10.6-ppc-cpython-311/pandas/_libs/window/aggregations.o -Wno-error=unreachable-code
pandas/_libs/window/aggregations.cpp: In function ‘void __pyx_f_6pandas_5_libs_6window_12aggregations_add_mean(__pyx_t_5numpy_float64_t, Py_ssize_t*, __pyx_t_5numpy_float64_t*, Py_ssize_t*, __pyx_t_5numpy_float64_t*, __pyx_t_5numpy_int64_t*, __pyx_t_5numpy_float64_t*)’:
pandas/_libs/window/aggregations.cpp:4800: error: ‘signbit’ was not declared in this scope
pandas/_libs/window/aggregations.cpp: In function ‘void __pyx_f_6pandas_5_libs_6window_12aggregations_remove_mean(__pyx_t_5numpy_float64_t, Py_ssize_t*, __pyx_t_5numpy_float64_t*, Py_ssize_t*, __pyx_t_5numpy_float64_t*)’:
pandas/_libs/window/aggregations.cpp:4967: error: ‘signbit’ was not declared in this scope
error: command '/usr/bin/gcc-4.2' failed with exit code 1

Looks like this is a genuine bug, not specific to macOS or PPC. There is an upstream issue: https://github.com/pandas-dev/pandas/issues/51047

Change History (2)

comment:1 Changed 9 months ago by barracuda156

py310-pandas fails even faster:

--->  Building py310-pandas
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pandas/py310-pandas/work/pandas-2.2.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -m build --no-isolation --wheel --outdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pandas/py310-pandas/work 
* Getting build dependencies for wheel...
* Building wheel...
+ meson-3.10 setup /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pandas/py310-pandas/work/pandas-2.2.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pandas/py310-pandas/work/pandas-2.2.0/.mesonpy-djsy99if -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pandas/py310-pandas/work/pandas-2.2.0/.mesonpy-djsy99if/meson-python-native-file.ini
The Meson build system
Version: 1.3.1
Source dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pandas/py310-pandas/work/pandas-2.2.0
Build dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pandas/py310-pandas/work/pandas-2.2.0/.mesonpy-djsy99if
Build type: native build
Project name: pandas
Project version: 2.2.0
C compiler for the host machine: /usr/bin/gcc-4.2 (gcc 4.2.1 "powerpc-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5626)")
C linker for the host machine: /usr/bin/gcc-4.2 ld64 87.3.1
C++ compiler for the host machine: /usr/bin/g++-4.2 (gcc 4.2.1 "powerpc-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5626)")
C++ linker for the host machine: /usr/bin/g++-4.2 ld64 87.3.1
Cython compiler for the host machine: cython (cython 3.0.8)
Host machine cpu family: ppc
Host machine cpu: power macintosh
Program python found: YES (/opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10)

../pandas/meson.build:1:15: ERROR: Command `/opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -c '
import os
import numpy as np
try:
    # Check if include directory is inside the pandas dir
    # e.g. a venv created inside the pandas dir
    # If so, convert it to a relative path
    incdir = os.path.relpath(np.get_include())
except Exception:
    incdir = np.get_include()
print(incdir)
     '` failed with status 1.

A full log can be found at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pandas/py310-pandas/work/pandas-2.2.0/.mesonpy-djsy99if/meson-logs/meson-log.txt

ERROR Backend subprocess exited when trying to invoke build_wheel
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pandas/py310-pandas/work/pandas-2.2.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -m build --no-isolation --wheel --outdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pandas/py310-pandas/work 
Exit code: 1
Error: Failed to build py310-pandas: command execution failed

comment:2 Changed 9 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In 04261a82ec52083d131ab6dae8a619d09a54dcb8/macports-ports (master):

py-pandas: fix compiler choice to fix < 10.7

Fixes: #69100

Note: See TracTickets for help on using tickets.