#69040 closed defect (fixed)

py311-scipy fails to build after update

Reported by: AgilentGCMS Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: py311-scipy

Description

I recently did a port selfupdate followed by port upgrade outdated. The port py311-scipy, which was already installed on my system, failed to build after the update. I'm attaching main.log.

Attachments (3)

main.log (1.4 MB) - added by AgilentGCMS 10 months ago.
main.log from building py311-scipy
main.2.log (6.6 MB) - added by mfacorcoran 10 months ago.
mfacorcoran scipy log file
main.3.log (736.2 KB) - added by AgilentGCMS 10 months ago.
Build log after updating Xcode to 15.1 to match CLT version

Change History (12)

Changed 10 months ago by AgilentGCMS

Attachment: main.log added

main.log from building py311-scipy

comment:1 Changed 10 months ago by jmroot (Joshua Root)

Cc: michaelld@… removed
Owner: set to michaelld
Status: newassigned

comment:2 Changed 10 months ago by reneeotten (Renee Otten)

it appears to be building fine on the buildbots, so I am not sure why you wouldn't get the binary... Also I note that from your main.log file you are using a mismatched Xcode and CLT versions,

:debug:sysinfo Xcode 14.2, CLT 15.1.0.0.1.1700200546

that is not a recommended/supported configuration.

Please rectify that and try again, if it still fails please add a new log file.

comment:3 Changed 10 months ago by jmroot (Joshua Root)

Looks like cython issues to me, which would probably be fixed if scipy was updated. #68380

Changed 10 months ago by mfacorcoran

Attachment: main.2.log added

mfacorcoran scipy log file

comment:4 Changed 10 months ago by mfacorcoran

I have the same problem and I'm using

:debug:sysinfo macOS 14.2.1 (darwin/23.2.0) arch i386
:debug:sysinfo MacPorts 2.8.1
:debug:sysinfo Xcode 15.1, CLT 15.1.0.0.1.1700200546

the log has

:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_python_py-scipy/py311-scipy/work/scipy-1.10.1" && /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 setup.py --no-user-cfg build -j16
:info:build Exit code: 1
:error:build Failed to build py311-scipy: command execution failed
:debug:build Error code: CHILDSTATUS 72373 1
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"

I've attached the log file

comment:5 in reply to:  2 Changed 10 months ago by AgilentGCMS

Replying to reneeotten:

it appears to be building fine on the buildbots, so I am not sure why you wouldn't get the binary... Also I note that from your main.log file you are using a mismatched Xcode and CLT versions,

:debug:sysinfo Xcode 14.2, CLT 15.1.0.0.1.1700200546

that is not a recommended/supported configuration.

Please rectify that and try again, if it still fails please add a new log file.

I've updated Xcode to 15.1 to match the CLT version, and I still get the same error/failure. Please see new log attached.

Changed 10 months ago by AgilentGCMS

Attachment: main.3.log added

Build log after updating Xcode to 15.1 to match CLT version

comment:6 Changed 10 months ago by kencu (Ken)

see also #68513 which seems to be tracking essentially the same thing

comment:7 Changed 10 months ago by jmroot (Joshua Root)

If py-scipy isn't going to be updated any time soon, there's always py-cython-compat.

comment:8 Changed 10 months ago by reneeotten (Renee Otten)

I would suggest that we merge PR 21875 as soon as the CI passes. The update is done to the latest upstream version and only the PY38 subport requires the py-cython-compat port. I will add after that the PY312 subport that has to use the new meson backend and then we can attempt to convert fully to using that for all subports upon the next update which will give some more time for testing and resolves the immediate problem now.

comment:9 Changed 10 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In a77e647cc821e97f55962f8d7d155c95bed8284d/macports-ports (master):

py-scipy: update to 1.11.4; fix build on old systems

Fixes: #68014
Closes: #68379
Closes: #68380
Closes: #69040

Note: See TracTickets for help on using tickets.