Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pypy3 fails to build, can't find zlib #167115

Closed
mweinelt opened this issue Apr 4, 2022 · 3 comments
Closed

pypy3 fails to build, can't find zlib #167115

mweinelt opened this issue Apr 4, 2022 · 3 comments

Comments

@mweinelt
Copy link
Member

mweinelt commented Apr 4, 2022

Broken after upgrading zlib from 1.2.11 to 1.2.12, because it can't find libz.

[translation:info] Error:
   File "/build/pypy3.8-v7.3.7-src/rpython/translator/goal/translate.py", line 286, in main
    default_goal='compile')
   File "/build/pypy3.8-v7.3.7-src/rpython/translator/driver.py", line 575, in from_targetspec
    spec = target(driver, args)
   File "pypy/goal/targetpypystandalone.py", line 372, in target
    return self.get_entry_point(config)
   File "pypy/goal/targetpypystandalone.py", line 414, in get_entry_point
    self.space = make_objspace(config)
   File "/build/pypy3.8-v7.3.7-src/pypy/tool/option.py", line 33, in make_objspace
    return StdObjSpace(config)
   File "/build/pypy3.8-v7.3.7-src/pypy/interpreter/baseobjspace.py", line 440, in __init__
    self.initialize()
   File "/build/pypy3.8-v7.3.7-src/pypy/objspace/std/objspace.py", line 117, in initialize
    self.setup_builtin_modules()
   File "/build/pypy3.8-v7.3.7-src/pypy/interpreter/baseobjspace.py", line 698, in setup_builtin_modules
    mod.setup_after_space_initialization()
   File "/build/pypy3.8-v7.3.7-src/pypy/module/zlib/moduledef.py", line 44, in setup_after_space_initialization
    space.wrap(rzlib.zlibVersion()))
   File "/build/pypy3.8-v7.3.7-src/rpython/rlib/rzlib.py", line 227, in zlibVersion
    return rffi.charp2str(_zlibVersion())
   File "/build/pypy3.8-v7.3.7-src/rpython/rtyper/lltypesystem/rffi.py", line 313, in wrapper
    res = call_external_function(*real_args)
   File "<2141-codegen /build/pypy3.8-v7.3.7-src/rpython/rtyper/lltypesystem/rffi.py:211>", line 13, in call_external_function
    res = funcptr()
   File "/build/pypy3.8-v7.3.7-src/rpython/rtyper/lltypesystem/lltype.py", line 1390, in __call__
    return callb(*args)
   File "/build/pypy3.8-v7.3.7-src/rpython/rtyper/lltypesystem/ll2ctypes.py", line 1323, in __call__
    cfunc = get_ctypes_callable(self.funcptr, self.calling_conv)
   File "/build/pypy3.8-v7.3.7-src/rpython/rtyper/lltypesystem/ll2ctypes.py", line 1285, in get_ctypes_callable
    'cannot find the library %r' % (not_found[0],))
[translation:ERROR] NotImplementedError: cannot find the library 'z'
[translation] batch mode, not calling interactive helpers
builder for '/nix/store/cyxb1b6qpvjy6cc72mcrb3gr071gh54k-pypy3-7.3.7.drv' failed with exit code 1

Currently on staging-next and release-21.11.

@andersk

@vcunat
Copy link
Member

vcunat commented Apr 9, 2022

This is also most likely fixed by PR #167395. At any rate, I see it back up in (staging-next-)21.11: https://hydra.nixos.org/job/nixpkgs/staging-next-21.11/pypy3.x86_64-linux

@7c6f434c
Copy link
Member

7c6f434c commented Apr 9, 2022

Overriding zlib fed to pypy37 with the patch from #167395 definitely lets the build succeed and the resulting executable runs

@vcunat
Copy link
Member

vcunat commented Apr 14, 2022

Resolved in all current channels.

@vcunat vcunat closed this as completed Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants