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 convert open62541.c #802

Closed
eugeis opened this issue Nov 10, 2018 · 1 comment · Fixed by #872
Closed

can't convert open62541.c #802

eugeis opened this issue Nov 10, 2018 · 1 comment · Fixed by #872

Comments

@eugeis
Copy link

eugeis commented Nov 10, 2018

Hello,
I am trying to transpile open62541.c on MacOs.

I am geting following exceptions

Any chance todo it or it is too difficult for now?
Thank You

c2go transpile open62541.c
panic: could not match regexp with string
^(?P

[0-9a-fx]+) (?:prev (?P0x[0-9a-f]+) )?(?:parent (?P0x[0-9a-f]+) )?<(?P.)>(?P .+:\d+)?(?P used)?(?P referenced)?(?P \w+)? '(?P.+?)'(?P:'.?')?(?P extern)?(?P static)?(?P cinit)?(?P register)?[\s]*$
0x7feb6d06b2e8 <col:5, col:21> col:21 used result 'UA_BrowseResult':'UA_BrowseResult' nrvo

goroutine 23 [running]:
github.com/elliotchance/c2go/ast.groupsFromRegex(0xc00739d900, 0x13b, 0xc005f61300, 0x5a, 0xc005f612ca)
/Users/ee/go/src/github.com/elliotchance/c2go/ast/ast.go:286 +0x379
github.com/elliotchance/c2go/ast.parseVarDecl(0xc005f61300, 0x5a, 0x1295a6b)
/Users/ee/go/src/github.com/elliotchance/c2go/ast/var_decl.go:26 +0x65
github.com/elliotchance/c2go/ast.Parse(0xc005f612f8, 0x62, 0x1294a14, 0x5)
/Users/ee/go/src/github.com/elliotchance/c2go/ast/ast.go:252 +0x46c
main.convertLinesToNodes(0xc001507b60, 0x392c, 0x15708, 0x0, 0x0, 0x0)
/Users/ee/go/src/github.com/elliotchance/c2go/main.go:89 +0x1cf
main.convertLinesToNodesParallel.func1.1(0xc0007f60c0, 0xc00000c008, 0xc001507b60, 0x392c, 0x15708, 0x0)
/Users/ee/go/src/github.com/elliotchance/c2go/main.go:113 +0x59
created by main.convertLinesToNodesParallel.func1
/Users/ee/go/src/github.com/elliotchance/c2go/main.go:111 +0x112

@elliotchance
Copy link
Owner

This should be quite easy to resolve, see a similar PR issue here: #799

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

Successfully merging a pull request may close this issue.

2 participants