Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#63643 closed defect (fixed)

py39-pyqt5 @5.15.5_0 build failure

Reported by: khorton (Kevin Horton) Owned by: reneeotten (Renee Otten)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: py-pyqt5

Description

py39-pyqt5 @5.15.5_0 fails to build on Intel running macOS 11.6 with Xcode 13.0. See attached build log

Attachments (1)

main.log (18.3 KB) - added by khorton (Kevin Horton) 2 years ago.
build log after updating py39-sip4

Download all attachments as: .zip

Change History (8)

comment:1 Changed 2 years ago by reneeotten (Renee Otten)

Cc: reneeotten@… reneeotten removed
Keywords: bigsur x86_64 removed
Owner: set to reneeotten
Port: py-pyqt5 added; py39-pyqt5 removed
Status: newassigned

this seems a duplicate of 63549, which I presumably solved already. Can you please make sure that you have the latest port definitions (sudo port selfupdate), clean the port (sudo port clean --all py39-pyqt5), and try to install the port again? Also please list the versions you have installed for the SIP ports (port -v installed | grep sip).

comment:2 Changed 2 years ago by khorton (Kevin Horton)

I did a port sielfupdate again, and cleaned py39-pyqt5. The build failure remains the same.

port -v installed | grep sip
  py38-pyqt5-sip @12.9.0_0 (active) requested_variants='' platform='darwin 20' archs='x86_64' date='2021-10-11T20:15:44-0700'
  py38-sip @4.19.25_0 requested_variants='' platform='darwin 20' archs='x86_64' date='2021-07-11T18:45:18-0700'
  py38-sip @6.1.1_0 requested_variants='' platform='darwin 20' archs='x86_64' date='2021-09-17T07:44:32-0700'
  py38-sip @6.2.0_0 requested_variants='' platform='darwin 20' archs='x86_64' date='2021-10-11T20:15:38-0700'
  py38-sip @6.3.1_0 requested_variants='' platform='darwin 20' archs='x86_64' date='2021-10-17T16:13:04-0700'
  py38-sip @6.3.1_1 (active) requested_variants='' platform='darwin 20' archs='x86_64' date='2021-10-18T20:47:42-0700'
  py38-sip4 @4.19.25_0 requested_variants='' platform='darwin 20' archs='x86_64' date='2021-09-16T19:49:34-0700'
  py39-pyqt5-sip @12.9.0_0 (active) requested_variants='' platform='darwin 20' archs='x86_64' date='2021-10-11T20:48:50-0700'
  py39-sip @4.19.25_0 requested_variants='' platform='darwin 20' archs='x86_64' date='2021-07-21T18:20:24-0700'
  py39-sip @6.2.0_0 requested_variants='' platform='darwin 20' archs='x86_64' date='2021-10-11T20:48:45-0700'
  py39-sip @6.3.1_0 requested_variants='' platform='darwin 20' archs='x86_64' date='2021-10-17T16:13:20-0700'
  py39-sip @6.3.1_1 (active) requested_variants='' platform='darwin 20' archs='x86_64' date='2021-10-18T20:47:53-0700'
  py39-sip4 @4.19.25_0 (active) requested_variants='' platform='darwin 20' archs='x86_64' date='2021-09-23T06:24:49-0700'

comment:3 Changed 2 years ago by reneeotten (Renee Otten)

You don't have the latest version of py39-sip4: you have 4.19.25_0 the latest one has revision 1 (i.e., 4.19.25_1). What is the *exact* command you used, did you try to install the py39-pyqt5 port or do an upgrade of the ports? If you do sudo port selfupdate && sudo port upgrade outdated that should take care of updating the ports in questions and resolve your problem.

comment:4 Changed 2 years ago by khorton (Kevin Horton)

I was running sudo port selfupdate && sudo port upgrade outdated. That attempted to update py39-pyqt5 BEFORE updating py39-sip4. I have now updated py39-sip4, but py39-pyqt5 still fails to build, but the failure is different now. it fails with:

:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py39-pyqt5/work/PyQt5-5.15.5" && sip-build-3.9 --qmake /opt/local/libexec/qt5/bin/qmake --verbose --confirm-license --dbus=/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/dbus-1.0 --disable QtWebKit --disable QtWebKitWidgets 
:info:build sh: sip-build-3.9: command not found
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py39-pyqt5/work/PyQt5-5.15.5" && sip-build-3.9 --qmake /opt/local/libexec/qt5/bin/qmake --verbose --confirm-license --dbus=/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/dbus-1.0 --disable QtWebKit --disable QtWebKitWidgets 
:info:build Exit code: 127
:error:build Failed to build py39-pyqt5: command execution failed
:debug:build Error code: CHILDSTATUS 38688 127
: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"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py39-pyqt5/main.log for details.

See attachment for full build log

Changed 2 years ago by khorton (Kevin Horton)

Attachment: main.log added

build log after updating py39-sip4

comment:5 in reply to:  4 Changed 2 years ago by reneeotten (Renee Otten)

Replying to khorton:

I was running sudo port selfupdate && sudo port upgrade outdated. That attempted to update py39-pyqt5 BEFORE updating py39-sip4.

ah, that explains it... well I don't think there is a way to say that py-pip4 should be upgrade first, but at least that issue is solved now!

I have now updated py39-sip4, but py39-pyqt5 still fails to build, but the failure is different now. it fails with:

:info:build sh: sip-build-3.9: command not found

well... that shouldn't be possible as the sip-build-3.9 is provided by py39-sip but for some reason that build dependency disappeared somehow (i.e., my fault). Sorry, I've pushed an update - you should be able to do a selfupdate once that change has propagated to the mirrors (or right now if you're using a local git checkout of the tree).

comment:6 Changed 2 years ago by reneeotten (Renee Otten)

Resolution: fixed
Status: assignedclosed

In a2aa4b5740822c4db4c51416189cb34aca62288f/macports-ports (master):

py-pyqt5: add missing build dependency

Closes: #63643

comment:7 Changed 2 years ago by khorton (Kevin Horton)

After getting the updated py-pyqt5 portfile, py39-pyqt5 builds and runs for me. Thanks for the quick fix

Note: See TracTickets for help on using tickets.