-
Notifications
You must be signed in to change notification settings - Fork 85
Space in -pthread arguments fails compilation #124
Comments
-pthread
arguments fails compiling module
I am also having problems to compile the code using Intel compilers. I am trying to install via pip by specifying the Intel compiler options: pip install qml --user -U --global-option="build" --global-option="--compiler=intelem" --global-option="--fcompiler=intelem" But the installation breaks with an error message regarding the lpthread. So how can I use/apply the patch to correct the problem with the extra space? Or if I clone the repository to my computer, how can I pass the compiler options argument for the setup.py installer? |
download remove_pthread_extra_space.patch.txt file |
Ok, this I understood. But once the patch has been applied to the local setup.py file, how to pass the intel compiler options in the command line for the local installation? Based on the git command for the installation using intel compiler, I tried something like this python setup.py --compiler=intelem --fcompiler=intelem but "compiler" option is not recognized. So I would like to know how to proceed after the patch. I will appreciate any help you can provide. Thanks! |
Hi @maxjr82, I know this is already quite old, but today I faced the same problem and solved it as follows:
pip install . --global-option="build" --global-option="--compiler=intelem" --global-option="--fcompiler=intelem" |
I followed Installing via with Intel compilers instructions and got this error:
I've look at the compiling command and realise that was a extra space in the pthread argument.
https://github.com/qmlcode/qml/blob/master/setup.py#L41
https://github.com/qmlcode/qml/blob/master/setup.py#L28
I'm attaching the patch to fix that.
remove_pthread_extra_space.patch.txt
git apply remove_pthread_extra_space.patch.txt
The text was updated successfully, but these errors were encountered: