pysrilm
pysrilm copied to clipboard
-fopenmp, zopen error
Hi,
I am using Mac OSX El Capitan and when executing python setup.py install
I get the following error:
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Volumes/Macintosh/Users/lucasrodes/Documents/Exercise_2/srilm/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c srilm.cpp -o build/temp.macosx-10.6-intel-2.7/srilm.o -fopenmp clang: error: unsupported option '-fopenmp' clang: error: unsupported option '-fopenmp' error: command '/usr/bin/clang' failed with exit status 1
I read the other issues and I replaced in the setup.py file ['-fopenmp']
for []
but another error appeared:
/Volumes/Macintosh/Users/lucasrodes/Documents/Exercise_2/srilm/include/zio.h:105:8: error: conflicting types for 'zopen' FILE * zopen (const char *name, const char *mode); ^ /usr/include/stdio.h:463:7: note: previous declaration is here FILE *zopen(const char *, const char *, int); ^ 1 error generated. error: command '/usr/bin/clang' failed with exit status 1
Any ideas?