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

Can't parse llvm Core.h #1

Open
windrunner414 opened this issue Apr 25, 2019 · 2 comments
Open

Can't parse llvm Core.h #1

windrunner414 opened this issue Apr 25, 2019 · 2 comments

Comments

@windrunner414
Copy link

PHPCParser\Error: Syntax error, unexpected IDENTIFIER(__gwchar_t), expecting ',' or ';' on line 393 in /home/parallels/PhpstormProjects/pphp/vendor/ircmaxell/php-c-parser/lib/ParserAbstract.php:235
Stack trace:
#0 /home/parallels/PhpstormProjects/pphp/vendor/ircmaxell/php-c-parser/lib/ParserAbstract.php(104): PHPCParser\ParserAbstract->doParse()
#1 /home/parallels/PhpstormProjects/pphp/vendor/ircmaxell/php-c-parser/lib/CParser.php(23): PHPCParser\ParserAbstract->parse(Array, Object(PHPCParser\Context))
#2 /home/parallels/PhpstormProjects/pphp/vendor/ircmaxell/ffime/lib/FFIMe.php(101): PHPCParser\CParser->parse('llvm-c/Core.h', Object(PHPCParser\Context))
#3 /home/parallels/PhpstormProjects/pphp/tool/GenerateLLVMFFiCode.php(14): FFIMe\FFIMe->include('llvm-c/Core.h')
#4 /home/parallels/PhpstormProjects/pphp/tool/Common.php(27): {closure}()
#5 /home/parallels/PhpstormProjects/pphp/tool/GenerateLLVMFFiCode.php(32): run(Object(Closure), 'building llvm f...')
#6 {main}
@ircmaxell
Copy link
Owner

I've hit that in the past. It's because it's assuming there's a built in type gwchar_t somewhere in the OS standard lib. Can you provide which OS/libc version you're using?

@windrunner414
Copy link
Author

macos 10.13.6

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

2 participants