Opened 15 months ago

Last modified 14 months ago

#66977 assigned defect

py27-pyobjc @5.3: error: too many arguments to function call, expected 0, have 2

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: danchr (Dan Villiom Podlaski Christiansen)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: arm64 Cc:
Port: py-pyobjc

Description

py27-pyobjc fails to build on Apple Silicon on Big Sur and Monterey:

Modules/objc/class-builder.m:1355:23: error: too many arguments to function call, expected 0, have 2
    objc_msgSendSuper(&spr, _meth);
    ~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~

Change History (3)

comment:2 Changed 14 months ago by danchr (Dan Villiom Podlaski Christiansen)

I don’t have an ARM box myself, so I can only fix it by marking it as broken. Please note that the architecture of PyObjC is quite complex, so I wouldn’t be surprised if a simple back port didn’t reveal other issues, but feel free to give it a go 🙂

comment:3 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

I don't think I'll be attempting it myself since I know very little about python and pyobjc. I had merely hoped to be able to use MacPorts python27 and py27-pyobjc to continue to run a little script I wrote which worked fine with /usr/bin/python but stopped working when Apple removed /usr/bin/python in macOS 12.3. But instead I will probably rewrite the script in a language with which I'm more familiar.

Note: See TracTickets for help on using tickets.