Konstantin8105 / c4go

Transpiling C code to Go code
MIT License
365 stars 39 forks source link

AST error on Ubuntu 20.04 with Clang 10.0 #483

Closed QianNangong closed 4 years ago

QianNangong commented 4 years ago

I'm using code from http://www.quut.com/gsm/

AST error #0:
/* AST Error :
cannot parse line: `AsmLabelAttr 0x1cc11c0 <line:407:94> "__isoc99_fscanf" IsLiteralLabel`. could not match regexp with string
^(?P<address>[0-9a-fx]+) <(?P<position>.*)>(?P<inherited> Inherited)? "(?P<function>.+)"[\s]*$
0x1cc11c0 <line:407:94> "__isoc99_fscanf" IsLiteralLabel

*/
AST error #1:
/* AST Error :
cannot parse line: `AsmLabelAttr 0x1cc1450 <line:410:66> "__isoc99_scanf" IsLiteralLabel`. could not match regexp with string
^(?P<address>[0-9a-fx]+) <(?P<position>.*)>(?P<inherited> Inherited)? "(?P<function>.+)"[\s]*$
0x1cc1450 <line:410:66> "__isoc99_scanf" IsLiteralLabel

*/
AST error #2:
/* AST Error :
cannot parse line: `AsmLabelAttr 0x1cc1710 <line:412:95> "__isoc99_sscanf" IsLiteralLabel`. could not match regexp with string
^(?P<address>[0-9a-fx]+) <(?P<position>.*)>(?P<inherited> Inherited)? "(?P<function>.+)"[\s]*$
0x1cc1710 <line:412:95> "__isoc99_sscanf" IsLiteralLabel

*/
AST error #3:
/* AST Error :
cannot parse line: `AsmLabelAttr 0x1cc2c38 <col:107> "__isoc99_vfscanf" IsLiteralLabel`. could not match regexp with string
^(?P<address>[0-9a-fx]+) <(?P<position>.*)>(?P<inherited> Inherited)? "(?P<function>.+)"[\s]*$
0x1cc2c38 <col:107> "__isoc99_vfscanf" IsLiteralLabel

*/
AST error #4:
/* AST Error :
cannot parse line: `AsmLabelAttr 0x1cc2f50 <col:84> "__isoc99_vscanf" IsLiteralLabel`. could not match regexp with string
^(?P<address>[0-9a-fx]+) <(?P<position>.*)>(?P<inherited> Inherited)? "(?P<function>.+)"[\s]*$
0x1cc2f50 <col:84> "__isoc99_vscanf" IsLiteralLabel

*/
AST error #5:
/* AST Error :
cannot parse line: `AsmLabelAttr 0x1cc32e8 <col:113> "__isoc99_vsscanf" IsLiteralLabel`. could not match regexp with string
^(?P<address>[0-9a-fx]+) <(?P<position>.*)>(?P<inherited> Inherited)? "(?P<function>.+)"[\s]*$
0x1cc32e8 <col:113> "__isoc99_vsscanf" IsLiteralLabel

*/
Konstantin8105 commented 4 years ago

Hello, Feel free for creating PR for example https://github.com/Konstantin8105/c4go/pull/475/files Typically that errors is not change the result Go code.

QianNangong commented 4 years ago

Typically that errors is not change the result Go code.

Yes, I confirmed it, I'll close this issue.