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

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

Open
Zhangyanbo opened this issue Oct 12, 2016 · 4 comments

Comments

@Zhangyanbo
Copy link

Zhangyanbo commented Oct 12, 2016

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
Copy link
Owner

pluskid commented Oct 14, 2016

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

@Zhangyanbo
Copy link
Author

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

@pluskid
Copy link
Owner

pluskid commented Oct 16, 2016

Maybe you can try to remove the -fopenmp option.

@rmhend
Copy link

rmhend commented Jun 3, 2018

I am also having this issue and I don't understand how to resolve it. The specific error I get is
LoadError: could not spawn g++ -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.

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

3 participants