-
Notifications
You must be signed in to change notification settings - Fork 159
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
panic: could not match regexp #184
Comments
I've got the same issue for mac 10.9.5 |
Hi @mikowiec this error is caused by it not able to understand a line outputted from The fix is to add a new test case, just like this one: https://github.com/elliotchance/c2go/blob/master/ast/deprecated_attr_test.go#L9-L15 This will cause https://github.com/elliotchance/c2go/blob/master/ast/deprecated_attr.go#L13 Are you feeling up to the challenge? 😄 |
Tell me, please, what golang version do you compile? there is log from 1.8.1 golang, mac 1.9.5: goroutine 1 [running]: and there golang 1.6.2 and c2go version from april: goroutine 1 [running]: |
I use: go version Output:
Also, clang --version Output:
|
In according to integration test of
|
➜ clang --version |
@mikowiec Thank you for result of 2 checking. |
x>c2go transpile prime.c string 'DeprecatedAttr 0xad3460 line:1107:12 Inherited "This function or variable may be unsafe. Consider using _snwp rintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details." ""' goroutine 1 [running]:
|
@mikowiec Thank you for update. |
osx mac does not have ldd. |
Main point - find version of standard library C. |
osx base system does not use glibc |
@Konstantin8105, Apple has a fork of clang that uses a different versioning scheme. It is not something that can be tested on travis. The issue here is simple - it has nothing to do with clang versions or programs install. |
exactly. |
Like I understood - that issue is closed. |
@Konstantin8105 feel free to close this issue if it is resolved. |
:) I haven't permission for that |
Test 1 Precondition:
Windows 7, SP1, 32 bit
Visual Studio 2015 community edition
LLVM-3.9.1-win32
Windows 10 SDK (10.0.15063.468)
go version go1.8.1 windows/386
Test 2 Precondition:
mac 1.9.5
go version go1.8.1 darwin/amd64
goroutine 1 [running]:
github.com/elliotchance/c2go/ast.groupsFromRegex(0x57acb2, 0x3b, 0x120594a8, 0xd6, 0x56f0c4)
E:/dev/gocode/src/github.com/elliotchance/c2go/ast/ast.go:407 +0x2a7
github.com/elliotchance/c2go/ast.parseDeprecatedAttr(0x120594a8, 0xd6, 0x571939)
E:/dev/gocode/src/github.com/elliotchance/c2go/ast/deprecated_attr.go:15 +0x3f
github.com/elliotchance/c2go/ast.Parse(0x120594a8, 0xd6, 0xda, 0x11c189c0)
E:/dev/gocode/src/github.com/elliotchance/c2go/ast/ast.go:276 +0x1dbb
main.convertLinesToNodes(0x11c7a000, 0x18a5, 0x18a5, 0x11c7a000, 0x18a5, 0x18a5)
E:/dev/gocode/src/github.com/elliotchance/c2go/main.go:66 +0x165
main.Start(0x0, 0x11c4d8c0, 0xe, 0x0, 0x0, 0x56f599, 0x4, 0x11c48118, 0x8)
E:/dev/gocode/src/github.com/elliotchance/c2go/main.go:191 +0x628
main.main()
E:/dev/gocode/src/github.com/elliotchance/c2go/main.go:305 +0x2c2
The text was updated successfully, but these errors were encountered: