pluskid / Mocha.jl

Deep Learning framework for Julia
Other
1.29k stars 254 forks source link

[g++: error: libgomp.spec: No such file or directory] shows while run Pkg.add("Mocha") #215

Open Zhangyanbo opened 7 years ago

Zhangyanbo commented 7 years ago

When building Mocha, an error shows:

Running "g++ -fPIC -Wall -03 -shared -fopenmp -o libmochaext.so im2col.cpp pooling.cpp"
im2col.cpp:1:0: warning: -fPIC ignored for target
  #include <algorithm>
  ^
g++: error: libgomp.spec: No such file or directory

The package can pass the unit test. But when I run the demo in the README.md, some error shows.

pluskid commented 7 years ago

What platform are you using? openmp is not generally available on Mac.

Zhangyanbo commented 7 years ago

I use windows 10. The C++ compiler is included by VS2015.

pluskid commented 7 years ago

Maybe you can try to remove the -fopenmp option.

rmhend commented 6 years ago

I am also having this issue and I don't understand how to resolve it. The specific error I get is LoadError: could not spawng++ -fPIC -Wall -O3 -shared -fopenmp -o libmochaext.so im2col.cpp pooling.cpp: no such file or directory (ENOENT) Do I need to edit build.jl somehow? I have VS2013 on a Windows 10 machine, and I believe the c++ compiler is included properly in the path.