[pypy-issue] Issue #2483: clang complains about parsing pypy headers (pypy/pypy)

Denis Akhiyarov issues-reply at bitbucket.org
Fri Feb 24 01:10:05 EST 2017


New issue 2483: clang complains about parsing pypy headers
https://bitbucket.org/pypy/pypy/issues/2483/clang-complains-about-parsing-pypy-headers

Denis Akhiyarov:

pypy 2.7, linux 64.

Calling with clang and fake_libc_include from pycparser: 

```
CalledProcessError: Command '['clang', '-I', 'tools/geninterop/fake_libc_include', '/home/dta/Downloads/pypy-c-jit-linux64/include', '-D', '__attribute__(x)=', '-D', '__inline__=inline', '-D', '__asm__=;#pragma asm', '-D', '__int64=long long', '-E', '/home/dta/Downloads/pypy-c-jit-linux64/include/Python.h']' returned non-zero exit status 1
```

```
#!python

clang: warning: /home/dta/Downloads/pypy-c-jit-linux64/include: 'linker' input unused
/home/dta/Downloads/pypy-c-jit-linux64/include/Python.h:76:10: error: 
      'pypy_macros.h' file not found with <angled> include; use "quotes" instead
#include <pypy_macros.h>
         ^~~~~~~~~~~~~~~
         "pypy_macros.h"
In file included from /home/dta/Downloads/pypy-c-jit-linux64/include/Python.h:81:
/home/dta/Downloads/pypy-c-jit-linux64/include/object.h:10:10: error: 
      'cpyext_object.h' file not found with <angled> include; use "quotes"
      instead
#include <cpyext_object.h>
         ^~~~~~~~~~~~~~~~~
         "cpyext_object.h"
In file included from /home/dta/Downloads/pypy-c-jit-linux64/include/Python.h:112:
/home/dta/Downloads/pypy-c-jit-linux64/include/unicodeobject.h:8:10: error: 
      'cpyext_unicodeobject.h' file not found with <angled> include; use
      "quotes" instead
#include <cpyext_unicodeobject.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~
         "cpyext_unicodeobject.h"
/home/dta/Downloads/pypy-c-jit-linux64/include/Python.h:140:12: error: 
      'pypy_decl.h' file not found with <angled> include; use "quotes" instead
  #include <pypy_decl.h>
           ^~~~~~~~~~~~~
           "pypy_decl.h"
4 errors generated.

```




More information about the pypy-issue mailing list