Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#61659 closed defect (fixed)

pypy: fails to install on Big Sur because there is no libc.dylib

Reported by: mamoll (Mark Moll) Owned by: danchr (Dan Villiom Podlaski Christiansen)
Priority: Normal Milestone:
Component: ports Version: 2.6.99
Keywords: Cc: greyhare
Port: pypy

Description

This is the error I see:

[translation:ERROR] AssertionError: Cannot find C library, ctypes.util.find_library('c') returned None

Indeed, on Big Sur there appears to be no libc.dylib.

Change History (7)

comment:1 Changed 3 years ago by mamoll (Mark Moll)

Owner: set to danchr
Status: newassigned

comment:2 Changed 3 years ago by greyhare

Cc: greyhare added

comment:3 Changed 3 years ago by danchr (Dan Villiom Podlaski Christiansen)

I believe this is a genuine issue in PyPy; it does not build on Big Sur. I tried building it with CPython, but extension modules fail.

EDIT: Indeed it is: https://foss.heptapod.net/pypy/pypy/-/issues/3314

Last edited 3 years ago by danchr (Dan Villiom Podlaski Christiansen) (previous) (diff)

comment:4 Changed 3 years ago by greyhare

Someone just pushed a merge request (https://foss.heptapod.net/pypy/pypy/-/merge_requests/798) to fix this upstream. Hope it'll get merged soon.

comment:5 in reply to:  4 Changed 3 years ago by danchr (Dan Villiom Podlaski Christiansen)

Replying to greyhare:

Someone just pushed a merge request (https://foss.heptapod.net/pypy/pypy/-/merge_requests/798) to fix this upstream. Hope it'll get merged soon.

Yeah, I'm currently testing that, and if the build succeeds, I'll push an update!

comment:6 Changed 3 years ago by danchr (Dan Villiom Podlaski Christiansen)

Resolution: fixed
Status: assignedclosed

Fixed in https://github.com/macports/macports-ports/commit/2c32af7f11d8aa8366b3fe28dcd6ff18249d4db6 — tried tagging this, but to no avail:

pypy: upgrade to 7.3.3; fix big sur build

The released version of PyPy does not build (or work) on Big Sur, due
to changes in how dyld works. So, we use CPython instead for building
PyPy 2.7 on Big Sur, and apply a back-ported merge request[1].

While at it, I've applied a patch to force Thin LTO[2] so the overhead
isn't quite so large, suppressed building native modules during the
`build` stage, and removed some hacks related to platforms other than
x86-64.

(The port remains restricted to x86-64; I've added a note pointing to
a blog requesting help for ARM64 support. A JIT targeting macOS on
PowerPC isn't going to happen.)

Fixes #61659

[1] https://foss.heptapod.net/pypy/pypy/-/merge_requests/798
[2] https://clang.llvm.org/docs/ThinLTO.html

comment:7 Changed 3 years ago by jmroot (Joshua Root)

To auto-close the ticket, you need to list the full URL in the commit message, like this: Fixes: https://trac.macports.org/ticket/61659

Note: See TracTickets for help on using tickets.