Opened 20 months ago
Last modified 20 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:
- https://build.macports.org/builders/ports-11_arm64-builder/builds/82519/steps/install-port/logs/stdio
- https://build.macports.org/builders/ports-12_arm64-builder/builds/83413/steps/install-port/logs/stdio
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:1 Changed 20 months ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 20 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 20 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.
Maybe these changes are relevant and could be backported:
https://github.com/ronaldoussoren/pyobjc/commit/a1ae366235a7fa4f183b32655d2c864ed114ad08#diff-837246e0fb0b39284b11404fed0a5b01b973ee66fc050aa7bff2d98d980b7ddb