Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#52369 closed defect (fixed)

pypy tries to link to librt

Reported by: stefan+macports@… Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: mamoll (Mark Moll)
Port: pypy

Description

Trying to build pypy (on macOS sierra, maybe part of the problem) results in a build error while linking:

:info:build ld: library not found for -lrt
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make: *** [libpypy-c.dylib] Error 1
:info:build [4b3c2] translation-task}

Apparently, on macOS this library should not be linked to because the timing functions are mostly available in libSystem.

Attachments (1)

patch-Sierra.diff (1.4 KB) - added by mamoll (Mark Moll) 4 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 4 years ago by larryv (Lawrence Velázquez)

Owner: changed from macports-tickets@… to jmr@…
Port: pypy added
Version: 2.3.4

In future tickets, please Cc any port maintainers (port info --maintainers pypy).

comment:2 Changed 4 years ago by mamoll (Mark Moll)

Cc: mmoll@… added

Cc Me!

Changed 4 years ago by mamoll (Mark Moll)

Attachment: patch-Sierra.diff added

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

I have attached a proposed fix for this problem.

comment:4 Changed 4 years ago by mamoll (Mark Moll)

Keywords: haspatch added

comment:5 Changed 4 years ago by seanfarley (Sean Farley)

Wow, I wrote the same patch and was in the middle of compiling pypy to test it. I'll defer to yours, mmoll. (have many other fish to fry)

comment:6 Changed 4 years ago by mamoll (Mark Moll)

Resolution: fixed
Status: newclosed

Fixed in r153316.

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

Thanks. Has this been reported upstream?

comment:8 Changed 4 years ago by mamoll (Mark Moll)

I added a reference to the patch in an existing bug report: https://bitbucket.org/pypy/pypy/issues/2407/pypy-541-fails-to-build-on-macos-sierra

Note: See TracTickets for help on using tickets.