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

Error: preprocess for file: [prime.c] failed: exec: "clang": executable file not found in %PATH% StdErr = #824

Open
Huwaiza opened this issue Apr 14, 2019 · 8 comments

Comments

@Huwaiza
Copy link

Huwaiza commented Apr 14, 2019

My file is not being converted to .go
Error: preprocess for file: [prime.c]
failed: exec: "clang": executable file not found in %PATH%
StdErr =

@elliotchance
Copy link
Owner

You will need to have [clang installed](https://clang.llvm.org. Clang is a C compiler and does the parsing of the source files and produces an AST that can be understood by c2go.

@Huwaiza
Copy link
Author

Huwaiza commented Apr 15, 2019 via email

@elliotchance
Copy link
Owner

Please include the errors in the issue.

@Huwaiza
Copy link
Author

Huwaiza commented Apr 15, 2019 via email

@elliotchance
Copy link
Owner

That error is caused by c2go not being able to understand the output from clang.

Unfortunately, you are seeing this because no windows distributions are part of the CI pipeline. They are less thoroughly tested than the Linux version.

You can have a go at fixing this by covering the case by following this example: https://github.com/elliotchance/c2go/pull/760/files

@Konstantin8105
Copy link
Contributor

Please try https://github.com/Konstantin8105/c4go

@Huwaiza
Copy link
Author

Huwaiza commented Apr 22, 2019 via email

@AvinashRamashray
Copy link

@Huwaiza

Please post the fix here for this issue...
I am also getting exactly same issue....

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

4 participants