Skip to content

Error when JNAerating LLVM  #96

@abhijangda

Description

@abhijangda

Hello,

I am JNAerating LLVM headers. And I am getting these errors:

/usr/include/sys/cdefs.h:270:45: error: Unexpected operator ?
/usr/include/sys/cdefs.h:270:61: error: missing ) in expression
/usr/include/sys/cdefs.h:270:61: error: missing ) in expression
/usr/include/sys/cdefs.h:270:61: warning: Unexpected nonwhite token
/usr/include/sys/cdefs.h:270:60: warning: Unexpected nonwhite token
/usr/include/sys/cdefs.h:270:61: warning: Unexpected nonwhite token
/usr/include/sys/cdefs.h:270:61: warning: Unexpected nonwhite token
/usr/include/sys/cdefs.h:270:71: warning: Unexpected nonwhite token
/usr/include/sys/cdefs.h:270:73: warning: Unexpected nonwhite token
/usr/include/sys/cdefs.h:270:73: warning: Unexpected nonwhite token
/usr/include/sys/cdefs.h:270:85: warning: Unexpected nonwhite token
/usr/include/sys/cdefs.h:270:85: warning: Unexpected nonwhite token
/usr/include/sys/cdefs.h:270:86: warning: Unexpected nonwhite token
/usr/include/sys/cdefs.h:270:86: warning: Unexpected nonwhite token
/usr/include/sys/cdefs.h:270:87: warning: Unexpected nonwhite token
/usr/include/sys/cdefs.h:270:87: warning: Unexpected nonwhite token
/usr/include/bits/wchar.h:31:52: warning: Unexpected nonwhite token
/usr/include/bits/wchar.h:31:52: warning: Unexpected nonwhite token
/usr/include/bits/wchar.h:31:52: warning: Unexpected nonwhite token
/usr/include/bits/wchar.h:31:52: warning: Unexpected nonwhite token
/usr/include/bits/wchar.h:33:52: warning: Unexpected nonwhite token
/usr/include/bits/wchar.h:33:52: warning: Unexpected nonwhite token
/usr/include/bits/wchar.h:33:52: warning: Unexpected nonwhite token
/usr/include/bits/wchar.h:33:52: warning: Unexpected nonwhite token
/usr/include/llvm/Support/DataTypes.h:43:1: error: #error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
/usr/include/llvm/Support/DataTypes.h:46:1: error: #error "Must #define __STDC_CONSTANT_MACROS before " "#including Support/DataTypes.h"
/usr/include/c++/4.9.2/bits/c++0x_warning.h:11:18: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

My system has Fedora 21 with LLVM 3.5 and JNA 4.1.0. I tried the following command option:

java -jar jnaerator-0.12-shaded.jar -I/usr/include/llvm -I/usr/include/c++/4.9.2/x86_64-redhat-linux/ -I/usr/include/linux -package llvm -library /usr/include/llvm/Analysis/B*.h -mode Directory

You can see that the jnaerator version is 0.12-shaded.

Also, when I try with -std=c++11 option jnaerator gives me error.

Please help me out here.

Thanks,

Abhinav

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions