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

Error when JNAerating LLVM #96

Open
abhijangda opened this issue Jul 1, 2015 · 2 comments
Open

Error when JNAerating LLVM #96

abhijangda opened this issue Jul 1, 2015 · 2 comments

Comments

@abhijangda
Copy link

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

@mchalupa
Copy link

Hi,

following this problem (which I ran into too), is there any plan to support C++11?

Thanks,
Marek

@cyu021
Copy link

cyu021 commented Apr 16, 2019

any update on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants