Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 707
    • Issues 707
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Admin message

This instance will be upgraded to Heptapod 0.40.0 (final) on 2023-12-05 at 16:00 UTC+1

  • PyPyPyPy
  • pypypypy
  • Issues
  • #3559
Closed
Open
Issue created Sep 21, 2021 by Misbah Ahmed@ma

Cannot find C library when building PyPy using python

I tried to build PyPy using this command: python ../../rpython/bin/rpython -Ojit targetpypystandalone

This is the error I saw:

[translation:info] Error:
   File "/pypy/rpython/translator/goal/translate.py", line 286, in main
    default_goal='compile')
   File "/pypy/rpython/translator/driver.py", line 575, in from_targetspec
    spec = target(driver, args)
   File "targetpypystandalone.py", line 345, in target
    return self.get_entry_point(config)
   File "targetpypystandalone.py", line 387, in get_entry_point
    self.space = make_objspace(config)
   File "/pypy/pypy/tool/option.py", line 33, in make_objspace
    return StdObjSpace(config)
   File "/pypy/pypy/interpreter/baseobjspace.py", line 461, in __init__
    self.initialize()
   File "/pypy/pypy/objspace/std/objspace.py", line 112, in initialize
    self.make_builtins()
   File "/pypy/pypy/interpreter/baseobjspace.py", line 661, in make_builtins
    self.install_mixedmodule(mixedname, installed_builtin_modules)
   File "/pypy/pypy/interpreter/baseobjspace.py", line 692, in install_mixedmodule
    modname = self.setbuiltinmodule(mixedname)
   File "/pypy/pypy/interpreter/baseobjspace.py", line 537, in setbuiltinmodule
    mod = Module(self, self.newtext(name))
   File "/pypy/pypy/module/_cppyy/moduledef.py", line 38, in __init__
    from pypy.module._cppyy import capi
   File "/pypy/pypy/module/_cppyy/capi/__init__.py", line 3, in <module>
    from pypy.module._cppyy.capi.loadable_capi import *
   File "/pypy/pypy/module/_cppyy/capi/loadable_capi.py", line 5, in <module>
    from rpython.rlib import jit, jit_libffi, libffi, rdynload, objectmodel
   File "/pypy/rpython/rlib/jit_libffi.py", line 4, in <module>
    from rpython.rlib import clibffi, jit
   File "/pypy/rpython/rlib/clibffi.py", line 281, in <module>
    assert libc_name is not None, "Cannot find C library, ctypes.util.find_library('c') returned None"
[translation:ERROR] AssertionError: Cannot find C library, ctypes.util.find_library('c') returned None
[translation] start debugger...
> /pypy/rpython/rlib/clibffi.py(281)<module>()
-> assert libc_name is not None, "Cannot find C library, ctypes.util.find_library('c') returned None"
Edited Sep 21, 2021 by Misbah Ahmed
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking