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

Build errors #9

Open
agreenbanana opened this issue Nov 27, 2017 · 1 comment
Open

Build errors #9

agreenbanana opened this issue Nov 27, 2017 · 1 comment

Comments

@agreenbanana
Copy link

I've tried building on two different computers and operating systems, and I'm at a loss as to where to continue. I'll list my findings below:

System: Mac Mini (Late 2014), MacOS Version 10.12.6

  • Used Anaconda distribution of Python (2.7)
  • Used Homebrew to install Clang as an openmp compatible C complier
  • “Clang: error: unsupported option ‘-fopenmp’”
  • “Error: command ‘gcc’ failed with exit status 1”
  • Proceeded by many “warning: unused function” prompts and “Warning: extension name ‘xxxx’ does not fully match qualified name ‘xxxxPY’ of ‘xxxx/xxxx/xxxxPY.pyx’

Macbook Pro 13 (2017), MacOS Version 10.12.6

  • Anaconda distribution of Python (3.6)
  • Same errors as above

Macbook Pro 13 (2017), Windows 10 Version LTSB

  • Anaconda distribution of Python (3.6)
  • “error: Unable to find vcvarsall.bat”

Any help would be greatly appreciated!

@stevendflygare
Copy link
Contributor

stevendflygare commented Nov 27, 2017

From the error it looks like your compiler is not openmp compatible, at least not with the -fopenmp command line option. You'll need to have your system point to a compiler that accepts this flag in order to succeed with that compilation. There is however a quick workaround that will run everything in a single thread -- if you open the setup.py script and comment out lines 8, 9 and 10 and then uncomment out lines 12, 13 and 14 that will remove the openmp requirement.

The error from windows 10 I'm uncertain what would be happening there as I've never compiled this on a windows machine. Also, I've successfully compiled this on a large number of linux and mac machines but never with python 3 so you may run into incompatibilities with the code that was written with python 2.7 in mind.

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

2 participants