-
Notifications
You must be signed in to change notification settings - Fork 219
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 compiling task.c on Windows 7 #258
Comments
Hi Antoine, Turing does work on Windows machines. The compiling script for |
Hello!
Should I PR the README.md with a workaround/announcement that Windows10 doesn't run out of the box?
|
Turing.jl does not yet support Julia 0.6. Can you try if it works with 0.5 instead? |
I got the same error again.
|
@yebai Do you know how to resolve that? |
No - I have had issues with mingw32 before, but installed it and solved the previous problem. |
@miguelraz Turing depends on a small c file (task.c) in order to support efficient particle MCMC enference. Currently, we need MinGW32 and Msys2 to build this c library. You should install these libraries and make them available in the PATH environment variable. |
You can follow the links below. |
Probably silly question, but after adding mingw32/bin to system environment variables Julia still returns "can't spawn mingw32-make: no such file or directory". Does this need to be added to the julia ENV["Path"]? How does one do that properly? It doesn't seem very intuitive. Thanks! |
Closed in favour of #422. |
Hi,
I am trying to run Turing on a Windows 7 machine with Julia 0.5.2.
Here is my configuration as returned by the versioninfo julia command:
Unfortunately, I get errors when julia is trying to compile the task.c file.
When I first ran the command Pkg.build("Turing") in Julia, I got an error suggesting to add the flag -march=pentium4 to compile task.c (see Error message I below).
Then, I ran the gcc compilation command in a separate Windows terminal in adding this flag.
However, I still got an error asking to specify the option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 (see Error message II below).
Finally, I have tried all the different options but I always get an error (see Error message III for the -std=c99 option).
Does it mean that Turing is not working on Windows 7 or that my compiler toolset is not appropriate?
For information, I am using gcc 4.9.3 coming with the R development toolset (i.e. Rtools 3.4 https://cran.r-project.org/bin/windows/Rtools/).
Thanks for your help,
Antoine Soubret
Error message I
Pkg.build("Turing")
Error message II
gcc -DJULIA_ENABLE_THREADI NG=1 -march=pentium4 -DJULIA_INIT_DIR=\"C:\\\\Portable\\\\APPS\\\\Julia\\\\Julia -0.5.2\\\\lib\" -IC:\\Portable\\APPS\\Julia\\Julia-0.5.2\\include\\julia -O2 -shared -fPIC task.c -LC:\\Portable\\APPS\\Julia\\Julia-0.5.2\\bin -ljulia -lopenlibm -o libtask.dll
Error message III
C:\Portable\APPS\Julia\JuliaPackages\v0.5\Turing\deps>gcc -DJULIA_ENABLE_THREADI NG=1 -march=pentium4 -std=c99 -DJULIA_INIT_DIR=\"C:\\\\Portable\\\\APPS\\\\Julia \\\\Julia-0.5.2\\\\lib\" -IC:\\Portable\\APPS\\Julia\\Julia-0.5.2\\include\\julia -O2 -shared -fPIC task.c -LC:\\Portable\\APPS\\Julia\\Julia-0.5.2\\bin -ljulia -lopenlibm -o libtask.dll
The text was updated successfully, but these errors were encountered: