Error when JNAerating LLVM

68 views
Skip to first unread message

Abhinav Jangda

unread,
Jun 29, 2015, 4:19:34 PM6/29/15
to nativel...@googlegroups.com
Hello all,

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

Akram sh

unread,
Jan 16, 2019, 8:54:24 AM1/16/19
to NativeLibs4Java
I have the same issue an ubuntu 18.01 JNAerator 13
Reply all
Reply to author
Forward
0 new messages