<h4 dir="auto">Description</h4>
<p dir="auto">Attempting to build scikit-learn <code class="notranslate">master</code> on macOS with the stock Xcode compiler fails due to the lack of OpenMP support.</p>
<h4 dir="auto">Steps/Code to Reproduce</h4>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="git clone https://github.com/scikit-learn/scikit-learn
git checkout 2718d6212f92220d5f228bfaf7bff0e75ea14965
cd scikit-learn
python setup.py build_ext --inplace"><pre class="notranslate">git clone https://github.com/scikit-learn/scikit-learn
git checkout 2718d6212f92220d5f228bfaf7bff0e75ea14965
<span class="pl-c1">cd</span> scikit-learn
python setup.py build_ext --inplace</pre></div>
<h4 dir="auto">Expected Results</h4>
<p dir="auto">The build completes without errors.</p>
<h4 dir="auto">Actual Results</h4>
<p dir="auto">The short answer is we see the following error, <code class="notranslate">clang: error: unsupported option '-fopenmp'</code>. The full build log is included below to provide more detail.</p>
<details>
<summary>Build Log:</summary>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ python setup.py build_ext --inplace
Partial import of sklearn during the build process.
/Users/jkirkham/miniconda/envs/np/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'install_requires'
  warnings.warn(msg)
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
  libraries mkl_rt not found in ['/Users/jkirkham/miniconda/envs/np/lib']
  NOT AVAILABLE

blis_info:
customize UnixCCompiler
customize UnixCCompiler
customize UnixCCompiler
customize UnixCCompiler
  FOUND:
    libraries = ['blas', 'cblas', 'lapack', 'blas', 'cblas', 'lapack']
    library_dirs = ['/Users/jkirkham/miniconda/envs/np/lib']
    define_macros = [('HAVE_CBLAS', None)]
    include_dirs = ['/Users/jkirkham/miniconda/envs/np/include']
    language = c

customize UnixCCompiler
customize UnixCCompiler
customize UnixCCompiler
  FOUND:
    libraries = ['blas', 'cblas', 'lapack', 'blas', 'cblas', 'lapack', 'blas', 'cblas', 'lapack']
    library_dirs = ['/Users/jkirkham/miniconda/envs/np/lib']
    define_macros = [('HAVE_CBLAS', None)]
    include_dirs = ['/Users/jkirkham/miniconda/envs/np/include']
    language = c

Compiling sklearn/__check_build/_check_build.pyx because it changed.
Compiling sklearn/preprocessing/_csr_polynomial_expansion.pyx because it changed.
Compiling sklearn/cluster/_dbscan_inner.pyx because it changed.
Compiling sklearn/cluster/_hierarchical.pyx because it changed.
Compiling sklearn/cluster/_k_means_elkan.pyx because it changed.
Compiling sklearn/cluster/_k_means.pyx because it changed.
Compiling sklearn/datasets/_svmlight_format.pyx because it changed.
Compiling sklearn/decomposition/_online_lda.pyx because it changed.
Compiling sklearn/decomposition/cdnmf_fast.pyx because it changed.
Compiling sklearn/ensemble/_gradient_boosting.pyx because it changed.
Compiling sklearn/feature_extraction/_hashing.pyx because it changed.
Compiling sklearn/manifold/_utils.pyx because it changed.
Compiling sklearn/manifold/_barnes_hut_tsne.pyx because it changed.
Compiling sklearn/metrics/cluster/expected_mutual_info_fast.pyx because it changed.
Compiling sklearn/metrics/pairwise_fast.pyx because it changed.
Compiling sklearn/neighbors/ball_tree.pyx because it changed.
Compiling sklearn/neighbors/kd_tree.pyx because it changed.
Compiling sklearn/neighbors/dist_metrics.pyx because it changed.
Compiling sklearn/neighbors/typedefs.pyx because it changed.
Compiling sklearn/neighbors/quad_tree.pyx because it changed.
Compiling sklearn/tree/_tree.pyx because it changed.
Compiling sklearn/tree/_splitter.pyx because it changed.
Compiling sklearn/tree/_criterion.pyx because it changed.
Compiling sklearn/tree/_utils.pyx because it changed.
Compiling sklearn/utils/sparsefuncs_fast.pyx because it changed.
Compiling sklearn/utils/_cython_blas.pyx because it changed.
Compiling sklearn/utils/arrayfuncs.pyx because it changed.
Compiling sklearn/utils/murmurhash.pyx because it changed.
Compiling sklearn/utils/lgamma.pyx because it changed.
Compiling sklearn/utils/graph_shortest_path.pyx because it changed.
Compiling sklearn/utils/fast_dict.pyx because it changed.
Compiling sklearn/utils/seq_dataset.pyx because it changed.
Compiling sklearn/utils/weight_vector.pyx because it changed.
Compiling sklearn/utils/_random.pyx because it changed.
Compiling sklearn/utils/_logistic_sigmoid.pyx because it changed.
Compiling sklearn/svm/libsvm.pyx because it changed.
Compiling sklearn/svm/liblinear.pyx because it changed.
Compiling sklearn/svm/libsvm_sparse.pyx because it changed.
Compiling sklearn/linear_model/cd_fast.pyx because it changed.
Compiling sklearn/linear_model/sgd_fast.pyx because it changed.
Compiling sklearn/linear_model/sag_fast.pyx because it changed.
Compiling sklearn/_isotonic.pyx because it changed.
[ 1/42] Cythonizing sklearn/__check_build/_check_build.pyx
[ 2/42] Cythonizing sklearn/_isotonic.pyx
[ 3/42] Cythonizing sklearn/cluster/_dbscan_inner.pyx
[ 4/42] Cythonizing sklearn/cluster/_hierarchical.pyx
[ 5/42] Cythonizing sklearn/cluster/_k_means.pyx
[ 6/42] Cythonizing sklearn/cluster/_k_means_elkan.pyx
[ 7/42] Cythonizing sklearn/datasets/_svmlight_format.pyx
[ 8/42] Cythonizing sklearn/decomposition/_online_lda.pyx
[ 9/42] Cythonizing sklearn/decomposition/cdnmf_fast.pyx
[10/42] Cythonizing sklearn/ensemble/_gradient_boosting.pyx
[11/42] Cythonizing sklearn/feature_extraction/_hashing.pyx
[12/42] Cythonizing sklearn/linear_model/cd_fast.pyx
[13/42] Cythonizing sklearn/linear_model/sag_fast.pyx
[14/42] Cythonizing sklearn/linear_model/sgd_fast.pyx
[15/42] Cythonizing sklearn/manifold/_barnes_hut_tsne.pyx
[16/42] Cythonizing sklearn/manifold/_utils.pyx
[17/42] Cythonizing sklearn/metrics/cluster/expected_mutual_info_fast.pyx
[18/42] Cythonizing sklearn/metrics/pairwise_fast.pyx
[19/42] Cythonizing sklearn/neighbors/ball_tree.pyx
[20/42] Cythonizing sklearn/neighbors/dist_metrics.pyx
[21/42] Cythonizing sklearn/neighbors/kd_tree.pyx
[22/42] Cythonizing sklearn/neighbors/quad_tree.pyx
[23/42] Cythonizing sklearn/neighbors/typedefs.pyx
[24/42] Cythonizing sklearn/preprocessing/_csr_polynomial_expansion.pyx
[25/42] Cythonizing sklearn/svm/liblinear.pyx
[26/42] Cythonizing sklearn/svm/libsvm.pyx
[27/42] Cythonizing sklearn/svm/libsvm_sparse.pyx
[28/42] Cythonizing sklearn/tree/_criterion.pyx
[29/42] Cythonizing sklearn/tree/_splitter.pyx
[30/42] Cythonizing sklearn/tree/_tree.pyx
[31/42] Cythonizing sklearn/tree/_utils.pyx
[32/42] Cythonizing sklearn/utils/_cython_blas.pyx
[33/42] Cythonizing sklearn/utils/_logistic_sigmoid.pyx
[34/42] Cythonizing sklearn/utils/_random.pyx
[35/42] Cythonizing sklearn/utils/arrayfuncs.pyx
[36/42] Cythonizing sklearn/utils/fast_dict.pyx
[37/42] Cythonizing sklearn/utils/graph_shortest_path.pyx
[38/42] Cythonizing sklearn/utils/lgamma.pyx
[39/42] Cythonizing sklearn/utils/murmurhash.pyx
[40/42] Cythonizing sklearn/utils/seq_dataset.pyx
/Users/jkirkham/miniconda/envs/np/lib/python3.7/site-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /Users/jkirkham/Developer/scikit-learn/sklearn/utils/seq_dataset.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)
[41/42] Cythonizing sklearn/utils/sparsefuncs_fast.pyx
[42/42] Cythonizing sklearn/utils/weight_vector.pyx
running build_ext
running build_src
build_src
building library &quot;libsvm-skl&quot; sources
building extension &quot;sklearn.__check_build._check_build&quot; sources
building extension &quot;sklearn.preprocessing._csr_polynomial_expansion&quot; sources
building extension &quot;sklearn.cluster._dbscan_inner&quot; sources
building extension &quot;sklearn.cluster._hierarchical&quot; sources
building extension &quot;sklearn.cluster._k_means_elkan&quot; sources
building extension &quot;sklearn.cluster._k_means&quot; sources
building extension &quot;sklearn.datasets._svmlight_format&quot; sources
building extension &quot;sklearn.decomposition._online_lda&quot; sources
building extension &quot;sklearn.decomposition.cdnmf_fast&quot; sources
building extension &quot;sklearn.ensemble._gradient_boosting&quot; sources
building extension &quot;sklearn.feature_extraction._hashing&quot; sources
building extension &quot;sklearn.manifold._utils&quot; sources
building extension &quot;sklearn.manifold._barnes_hut_tsne&quot; sources
building extension &quot;sklearn.metrics.cluster.expected_mutual_info_fast&quot; sources
building extension &quot;sklearn.metrics.pairwise_fast&quot; sources
building extension &quot;sklearn.neighbors.ball_tree&quot; sources
building extension &quot;sklearn.neighbors.kd_tree&quot; sources
building extension &quot;sklearn.neighbors.dist_metrics&quot; sources
building extension &quot;sklearn.neighbors.typedefs&quot; sources
building extension &quot;sklearn.neighbors.quad_tree&quot; sources
building extension &quot;sklearn.tree._tree&quot; sources
building extension &quot;sklearn.tree._splitter&quot; sources
building extension &quot;sklearn.tree._criterion&quot; sources
building extension &quot;sklearn.tree._utils&quot; sources
building extension &quot;sklearn.utils.sparsefuncs_fast&quot; sources
building extension &quot;sklearn.utils._cython_blas&quot; sources
building extension &quot;sklearn.utils.arrayfuncs&quot; sources
building extension &quot;sklearn.utils.murmurhash&quot; sources
building extension &quot;sklearn.utils.lgamma&quot; sources
building extension &quot;sklearn.utils.graph_shortest_path&quot; sources
building extension &quot;sklearn.utils.fast_dict&quot; sources
building extension &quot;sklearn.utils.seq_dataset&quot; sources
building extension &quot;sklearn.utils.weight_vector&quot; sources
building extension &quot;sklearn.utils._random&quot; sources
building extension &quot;sklearn.utils._logistic_sigmoid&quot; sources
building extension &quot;sklearn.svm.libsvm&quot; sources
building extension &quot;sklearn.svm.liblinear&quot; sources
building extension &quot;sklearn.svm.libsvm_sparse&quot; sources
building extension &quot;sklearn.linear_model.cd_fast&quot; sources
building extension &quot;sklearn.linear_model.sgd_fast&quot; sources
building extension &quot;sklearn.linear_model.sag_fast&quot; sources
building extension &quot;sklearn._isotonic&quot; sources
building data_files sources
build_src: building npy-pkg config files
customize UnixCCompiler
customize UnixCCompiler using build_clib
building 'libsvm-skl' library
compiling C++ sources
C compiler: g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/jkirkham/miniconda/envs/np/include -arch x86_64 -I/Users/jkirkham/miniconda/envs/np/include -arch x86_64

creating build
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/sklearn
creating build/temp.macosx-10.9-x86_64-3.7/sklearn/svm
creating build/temp.macosx-10.9-x86_64-3.7/sklearn/svm/src
creating build/temp.macosx-10.9-x86_64-3.7/sklearn/svm/src/libsvm
compile options: '-I/Users/jkirkham/miniconda/envs/np/lib/python3.7/site-packages/numpy/core/include -I/Users/jkirkham/miniconda/envs/np/include/python3.7m -c'
g++: sklearn/svm/src/libsvm/libsvm_template.cpp
ar: adding 1 object files to build/temp.macosx-10.9-x86_64-3.7/liblibsvm-skl.a
ranlib:@ build/temp.macosx-10.9-x86_64-3.7/liblibsvm-skl.a
customize UnixCCompiler
customize UnixCCompiler using build_ext_subclass
customize UnixCCompiler
customize UnixCCompiler using build_ext_subclass
building 'sklearn.__check_build._check_build' extension
compiling C sources
C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/jkirkham/miniconda/envs/np/include -arch x86_64 -I/Users/jkirkham/miniconda/envs/np/include -arch x86_64

creating build/temp.macosx-10.9-x86_64-3.7/sklearn/__check_build
compile options: '-I/Users/jkirkham/miniconda/envs/np/lib/python3.7/site-packages/numpy/core/include -I/Users/jkirkham/miniconda/envs/np/lib/python3.7/site-packages/numpy/core/include -I/Users/jkirkham/miniconda/envs/np/include/python3.7m -c'
extra options: '-fopenmp'
gcc: sklearn/__check_build/_check_build.c
clang: error: unsupported option '-fopenmp'
error: Command &quot;gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/jkirkham/miniconda/envs/np/include -arch x86_64 -I/Users/jkirkham/miniconda/envs/np/include -arch x86_64 -I/Users/jkirkham/miniconda/envs/np/lib/python3.7/site-packages/numpy/core/include -I/Users/jkirkham/miniconda/envs/np/lib/python3.7/site-packages/numpy/core/include -I/Users/jkirkham/miniconda/envs/np/include/python3.7m -c sklearn/__check_build/_check_build.c -o build/temp.macosx-10.9-x86_64-3.7/sklearn/__check_build/_check_build.o -MMD -MF build/temp.macosx-10.9-x86_64-3.7/sklearn/__check_build/_check_build.o.d -fopenmp&quot; failed with exit status 1"><pre class="notranslate">$ python setup.py build_ext --inplace
Partial import of sklearn during the build process.
/Users/jkirkham/miniconda/envs/np/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: <span class="pl-s"><span class="pl-pds">'</span>install_requires<span class="pl-pds">'</span></span>
  warnings.warn(msg)
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
  libraries mkl_rt not found <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>/Users/jkirkham/miniconda/envs/np/lib<span class="pl-pds">'</span></span>]
  NOT AVAILABLE

blis_info:
customize UnixCCompiler
customize UnixCCompiler
customize UnixCCompiler
customize UnixCCompiler
  FOUND:
    libraries = [<span class="pl-s"><span class="pl-pds">'</span>blas<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>cblas<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>lapack<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>blas<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>cblas<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>lapack<span class="pl-pds">'</span></span>]
    library_dirs = [<span class="pl-s"><span class="pl-pds">'</span>/Users/jkirkham/miniconda/envs/np/lib<span class="pl-pds">'</span></span>]
    define_macros = [(<span class="pl-s"><span class="pl-pds">'</span>HAVE_CBLAS<span class="pl-pds">'</span></span>, None)]
    include_dirs = [<span class="pl-s"><span class="pl-pds">'</span>/Users/jkirkham/miniconda/envs/np/include<span class="pl-pds">'</span></span>]
    language = c

customize UnixCCompiler
customize UnixCCompiler
customize UnixCCompiler
  FOUND:
    libraries = [<span class="pl-s"><span class="pl-pds">'</span>blas<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>cblas<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>lapack<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>blas<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>cblas<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>lapack<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>blas<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>cblas<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>lapack<span class="pl-pds">'</span></span>]
    library_dirs = [<span class="pl-s"><span class="pl-pds">'</span>/Users/jkirkham/miniconda/envs/np/lib<span class="pl-pds">'</span></span>]
    define_macros = [(<span class="pl-s"><span class="pl-pds">'</span>HAVE_CBLAS<span class="pl-pds">'</span></span>, None)]
    include_dirs = [<span class="pl-s"><span class="pl-pds">'</span>/Users/jkirkham/miniconda/envs/np/include<span class="pl-pds">'</span></span>]
    language = c

Compiling sklearn/__check_build/_check_build.pyx because it changed.
Compiling sklearn/preprocessing/_csr_polynomial_expansion.pyx because it changed.
Compiling sklearn/cluster/_dbscan_inner.pyx because it changed.
Compiling sklearn/cluster/_hierarchical.pyx because it changed.
Compiling sklearn/cluster/_k_means_elkan.pyx because it changed.
Compiling sklearn/cluster/_k_means.pyx because it changed.
Compiling sklearn/datasets/_svmlight_format.pyx because it changed.
Compiling sklearn/decomposition/_online_lda.pyx because it changed.
Compiling sklearn/decomposition/cdnmf_fast.pyx because it changed.
Compiling sklearn/ensemble/_gradient_boosting.pyx because it changed.
Compiling sklearn/feature_extraction/_hashing.pyx because it changed.
Compiling sklearn/manifold/_utils.pyx because it changed.
Compiling sklearn/manifold/_barnes_hut_tsne.pyx because it changed.
Compiling sklearn/metrics/cluster/expected_mutual_info_fast.pyx because it changed.
Compiling sklearn/metrics/pairwise_fast.pyx because it changed.
Compiling sklearn/neighbors/ball_tree.pyx because it changed.
Compiling sklearn/neighbors/kd_tree.pyx because it changed.
Compiling sklearn/neighbors/dist_metrics.pyx because it changed.
Compiling sklearn/neighbors/typedefs.pyx because it changed.
Compiling sklearn/neighbors/quad_tree.pyx because it changed.
Compiling sklearn/tree/_tree.pyx because it changed.
Compiling sklearn/tree/_splitter.pyx because it changed.
Compiling sklearn/tree/_criterion.pyx because it changed.
Compiling sklearn/tree/_utils.pyx because it changed.
Compiling sklearn/utils/sparsefuncs_fast.pyx because it changed.
Compiling sklearn/utils/_cython_blas.pyx because it changed.
Compiling sklearn/utils/arrayfuncs.pyx because it changed.
Compiling sklearn/utils/murmurhash.pyx because it changed.
Compiling sklearn/utils/lgamma.pyx because it changed.
Compiling sklearn/utils/graph_shortest_path.pyx because it changed.
Compiling sklearn/utils/fast_dict.pyx because it changed.
Compiling sklearn/utils/seq_dataset.pyx because it changed.
Compiling sklearn/utils/weight_vector.pyx because it changed.
Compiling sklearn/utils/_random.pyx because it changed.
Compiling sklearn/utils/_logistic_sigmoid.pyx because it changed.
Compiling sklearn/svm/libsvm.pyx because it changed.
Compiling sklearn/svm/liblinear.pyx because it changed.
Compiling sklearn/svm/libsvm_sparse.pyx because it changed.
Compiling sklearn/linear_model/cd_fast.pyx because it changed.
Compiling sklearn/linear_model/sgd_fast.pyx because it changed.
Compiling sklearn/linear_model/sag_fast.pyx because it changed.
Compiling sklearn/_isotonic.pyx because it changed.
[ 1/42] Cythonizing sklearn/__check_build/_check_build.pyx
[ 2/42] Cythonizing sklearn/_isotonic.pyx
[ 3/42] Cythonizing sklearn/cluster/_dbscan_inner.pyx
[ 4/42] Cythonizing sklearn/cluster/_hierarchical.pyx
[ 5/42] Cythonizing sklearn/cluster/_k_means.pyx
[ 6/42] Cythonizing sklearn/cluster/_k_means_elkan.pyx
[ 7/42] Cythonizing sklearn/datasets/_svmlight_format.pyx
[ 8/42] Cythonizing sklearn/decomposition/_online_lda.pyx
[ 9/42] Cythonizing sklearn/decomposition/cdnmf_fast.pyx
[10/42] Cythonizing sklearn/ensemble/_gradient_boosting.pyx
[11/42] Cythonizing sklearn/feature_extraction/_hashing.pyx
[12/42] Cythonizing sklearn/linear_model/cd_fast.pyx
[13/42] Cythonizing sklearn/linear_model/sag_fast.pyx
[14/42] Cythonizing sklearn/linear_model/sgd_fast.pyx
[15/42] Cythonizing sklearn/manifold/_barnes_hut_tsne.pyx
[16/42] Cythonizing sklearn/manifold/_utils.pyx
[17/42] Cythonizing sklearn/metrics/cluster/expected_mutual_info_fast.pyx
[18/42] Cythonizing sklearn/metrics/pairwise_fast.pyx
[19/42] Cythonizing sklearn/neighbors/ball_tree.pyx
[20/42] Cythonizing sklearn/neighbors/dist_metrics.pyx
[21/42] Cythonizing sklearn/neighbors/kd_tree.pyx
[22/42] Cythonizing sklearn/neighbors/quad_tree.pyx
[23/42] Cythonizing sklearn/neighbors/typedefs.pyx
[24/42] Cythonizing sklearn/preprocessing/_csr_polynomial_expansion.pyx
[25/42] Cythonizing sklearn/svm/liblinear.pyx
[26/42] Cythonizing sklearn/svm/libsvm.pyx
[27/42] Cythonizing sklearn/svm/libsvm_sparse.pyx
[28/42] Cythonizing sklearn/tree/_criterion.pyx
[29/42] Cythonizing sklearn/tree/_splitter.pyx
[30/42] Cythonizing sklearn/tree/_tree.pyx
[31/42] Cythonizing sklearn/tree/_utils.pyx
[32/42] Cythonizing sklearn/utils/_cython_blas.pyx
[33/42] Cythonizing sklearn/utils/_logistic_sigmoid.pyx
[34/42] Cythonizing sklearn/utils/_random.pyx
[35/42] Cythonizing sklearn/utils/arrayfuncs.pyx
[36/42] Cythonizing sklearn/utils/fast_dict.pyx
[37/42] Cythonizing sklearn/utils/graph_shortest_path.pyx
[38/42] Cythonizing sklearn/utils/lgamma.pyx
[39/42] Cythonizing sklearn/utils/murmurhash.pyx
[40/42] Cythonizing sklearn/utils/seq_dataset.pyx
/Users/jkirkham/miniconda/envs/np/lib/python3.7/site-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive <span class="pl-s"><span class="pl-pds">'</span>language_level<span class="pl-pds">'</span></span> not set, using 2 <span class="pl-k">for</span> <span class="pl-smi">now (Py2). This will change</span> <span class="pl-k">in</span> a later release<span class="pl-k">!</span> File: /Users/jkirkham/Developer/scikit-learn/sklearn/utils/seq_dataset.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)
[41/42] Cythonizing sklearn/utils/sparsefuncs_fast.pyx
[42/42] Cythonizing sklearn/utils/weight_vector.pyx
running build_ext
running build_src
build_src
building library <span class="pl-s"><span class="pl-pds">"</span>libsvm-skl<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.__check_build._check_build<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.preprocessing._csr_polynomial_expansion<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.cluster._dbscan_inner<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.cluster._hierarchical<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.cluster._k_means_elkan<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.cluster._k_means<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.datasets._svmlight_format<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.decomposition._online_lda<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.decomposition.cdnmf_fast<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.ensemble._gradient_boosting<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.feature_extraction._hashing<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.manifold._utils<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.manifold._barnes_hut_tsne<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.metrics.cluster.expected_mutual_info_fast<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.metrics.pairwise_fast<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.neighbors.ball_tree<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.neighbors.kd_tree<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.neighbors.dist_metrics<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.neighbors.typedefs<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.neighbors.quad_tree<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.tree._tree<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.tree._splitter<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.tree._criterion<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.tree._utils<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.utils.sparsefuncs_fast<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.utils._cython_blas<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.utils.arrayfuncs<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.utils.murmurhash<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.utils.lgamma<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.utils.graph_shortest_path<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.utils.fast_dict<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.utils.seq_dataset<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.utils.weight_vector<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.utils._random<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.utils._logistic_sigmoid<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.svm.libsvm<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.svm.liblinear<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.svm.libsvm_sparse<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.linear_model.cd_fast<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.linear_model.sgd_fast<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn.linear_model.sag_fast<span class="pl-pds">"</span></span> sources
building extension <span class="pl-s"><span class="pl-pds">"</span>sklearn._isotonic<span class="pl-pds">"</span></span> sources
building data_files sources
build_src: building npy-pkg config files
customize UnixCCompiler
customize UnixCCompiler using build_clib
building <span class="pl-s"><span class="pl-pds">'</span>libsvm-skl<span class="pl-pds">'</span></span> library
compiling C++ sources
C compiler: g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/jkirkham/miniconda/envs/np/include -arch x86_64 -I/Users/jkirkham/miniconda/envs/np/include -arch x86_64

creating build
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/sklearn
creating build/temp.macosx-10.9-x86_64-3.7/sklearn/svm
creating build/temp.macosx-10.9-x86_64-3.7/sklearn/svm/src
creating build/temp.macosx-10.9-x86_64-3.7/sklearn/svm/src/libsvm
compile options: <span class="pl-s"><span class="pl-pds">'</span>-I/Users/jkirkham/miniconda/envs/np/lib/python3.7/site-packages/numpy/core/include -I/Users/jkirkham/miniconda/envs/np/include/python3.7m -c<span class="pl-pds">'</span></span>
g++: sklearn/svm/src/libsvm/libsvm_template.cpp
ar: adding 1 object files to build/temp.macosx-10.9-x86_64-3.7/liblibsvm-skl.a
ranlib:@ build/temp.macosx-10.9-x86_64-3.7/liblibsvm-skl.a
customize UnixCCompiler
customize UnixCCompiler using build_ext_subclass
customize UnixCCompiler
customize UnixCCompiler using build_ext_subclass
building <span class="pl-s"><span class="pl-pds">'</span>sklearn.__check_build._check_build<span class="pl-pds">'</span></span> extension
compiling C sources
C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/jkirkham/miniconda/envs/np/include -arch x86_64 -I/Users/jkirkham/miniconda/envs/np/include -arch x86_64

creating build/temp.macosx-10.9-x86_64-3.7/sklearn/__check_build
compile options: <span class="pl-s"><span class="pl-pds">'</span>-I/Users/jkirkham/miniconda/envs/np/lib/python3.7/site-packages/numpy/core/include -I/Users/jkirkham/miniconda/envs/np/lib/python3.7/site-packages/numpy/core/include -I/Users/jkirkham/miniconda/envs/np/include/python3.7m -c<span class="pl-pds">'</span></span>
extra options: <span class="pl-s"><span class="pl-pds">'</span>-fopenmp<span class="pl-pds">'</span></span>
gcc: sklearn/__check_build/_check_build.c
clang: error: unsupported option <span class="pl-s"><span class="pl-pds">'</span>-fopenmp<span class="pl-pds">'</span></span>
error: Command <span class="pl-s"><span class="pl-pds">"</span>gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/jkirkham/miniconda/envs/np/include -arch x86_64 -I/Users/jkirkham/miniconda/envs/np/include -arch x86_64 -I/Users/jkirkham/miniconda/envs/np/lib/python3.7/site-packages/numpy/core/include -I/Users/jkirkham/miniconda/envs/np/lib/python3.7/site-packages/numpy/core/include -I/Users/jkirkham/miniconda/envs/np/include/python3.7m -c sklearn/__check_build/_check_build.c -o build/temp.macosx-10.9-x86_64-3.7/sklearn/__check_build/_check_build.o -MMD -MF build/temp.macosx-10.9-x86_64-3.7/sklearn/__check_build/_check_build.o.d -fopenmp<span class="pl-pds">"</span></span> failed with <span class="pl-c1">exit</span> status 1</pre></div>
</details>
<h4 dir="auto">Versions</h4>
<p dir="auto">Python 3.7.2 | packaged by conda-forge | (default, Mar 19 2019, 20:46:22)<br>
[Clang 4.0.1 (tags/RELEASE_401/final)]<br>
NumPy 1.16.2<br>
SciPy 1.2.1</p>
<p dir="auto">Used scikit-learn commit ( <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/scikit-learn/scikit-learn/commit/2718d6212f92220d5f228bfaf7bff0e75ea14965/hovercard" href="https://github.com/scikit-learn/scikit-learn/commit/2718d6212f92220d5f228bfaf7bff0e75ea14965"><tt>2718d62</tt></a> ) for the build.</p>
<p dir="auto">More details about the build environment are included below.</p>
<details>
<summary>Environment:</summary>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="channels:
  - conda-forge
  - defaults
dependencies:
  - appnope=0.1.0=py37_1000
  - backcall=0.1.0=py_0
  - blas=2.4=openblas
  - bzip2=1.0.6=h1de35cc_1002
  - ca-certificates=2019.3.9=hecc5488_0
  - certifi=2019.3.9=py37_0
  - cython=0.29.6=py37h0a44026_0
  - decorator=4.4.0=py_0
  - ipython=7.4.0=py37h24bf2e0_0
  - ipython_genutils=0.2.0=py_1
  - jedi=0.13.3=py37_0
  - libblas=3.8.0=4_openblas
  - libcblas=3.8.0=4_openblas
  - libcxx=4.0.1=h579ed51_0
  - libcxxabi=4.0.1=hebd6815_0
  - libffi=3.2.1=h6de7cb9_1006
  - libgfortran=3.0.1=0
  - liblapack=3.8.0=4_openblas
  - liblapacke=3.8.0=4_openblas
  - ncurses=6.1=h0a44026_1002
  - numpy=1.16.2=py37hbb3c62a_1
  - openblas=0.3.5=h436c29b_1001
  - openssl=1.1.1b=h01d97ff_2
  - parso=0.3.4=py_0
  - pexpect=4.6.0=py37_1000
  - pickleshare=0.7.5=py37_1000
  - pip=19.0.3=py37_0
  - prompt_toolkit=2.0.9=py_0
  - ptyprocess=0.6.0=py37_1000
  - pygments=2.3.1=py_0
  - python=3.7.2=hbdd33cc_0
  - readline=7.0=hcfe32e1_1001
  - scipy=1.2.1=py37hbd7caa9_1
  - setuptools=40.8.0=py37_0
  - six=1.12.0=py37_1000
  - sqlite=3.26.0=h1765d9f_1001
  - tk=8.6.9=ha441bb4_1000
  - traitlets=4.3.2=py37_1000
  - wcwidth=0.1.7=py_1
  - wheel=0.33.1=py37_0
  - xz=5.2.4=h1de35cc_1001
  - zlib=1.2.11=h1de35cc_1004"><pre class="notranslate"><span class="pl-ent">channels</span>:
  - <span class="pl-s">conda-forge</span>
  - <span class="pl-s">defaults</span>
<span class="pl-ent">dependencies</span>:
  - <span class="pl-s">appnope=0.1.0=py37_1000</span>
  - <span class="pl-s">backcall=0.1.0=py_0</span>
  - <span class="pl-s">blas=2.4=openblas</span>
  - <span class="pl-s">bzip2=1.0.6=h1de35cc_1002</span>
  - <span class="pl-s">ca-certificates=2019.3.9=hecc5488_0</span>
  - <span class="pl-s">certifi=2019.3.9=py37_0</span>
  - <span class="pl-s">cython=0.29.6=py37h0a44026_0</span>
  - <span class="pl-s">decorator=4.4.0=py_0</span>
  - <span class="pl-s">ipython=7.4.0=py37h24bf2e0_0</span>
  - <span class="pl-s">ipython_genutils=0.2.0=py_1</span>
  - <span class="pl-s">jedi=0.13.3=py37_0</span>
  - <span class="pl-s">libblas=3.8.0=4_openblas</span>
  - <span class="pl-s">libcblas=3.8.0=4_openblas</span>
  - <span class="pl-s">libcxx=4.0.1=h579ed51_0</span>
  - <span class="pl-s">libcxxabi=4.0.1=hebd6815_0</span>
  - <span class="pl-s">libffi=3.2.1=h6de7cb9_1006</span>
  - <span class="pl-s">libgfortran=3.0.1=0</span>
  - <span class="pl-s">liblapack=3.8.0=4_openblas</span>
  - <span class="pl-s">liblapacke=3.8.0=4_openblas</span>
  - <span class="pl-s">ncurses=6.1=h0a44026_1002</span>
  - <span class="pl-s">numpy=1.16.2=py37hbb3c62a_1</span>
  - <span class="pl-s">openblas=0.3.5=h436c29b_1001</span>
  - <span class="pl-s">openssl=1.1.1b=h01d97ff_2</span>
  - <span class="pl-s">parso=0.3.4=py_0</span>
  - <span class="pl-s">pexpect=4.6.0=py37_1000</span>
  - <span class="pl-s">pickleshare=0.7.5=py37_1000</span>
  - <span class="pl-s">pip=19.0.3=py37_0</span>
  - <span class="pl-s">prompt_toolkit=2.0.9=py_0</span>
  - <span class="pl-s">ptyprocess=0.6.0=py37_1000</span>
  - <span class="pl-s">pygments=2.3.1=py_0</span>
  - <span class="pl-s">python=3.7.2=hbdd33cc_0</span>
  - <span class="pl-s">readline=7.0=hcfe32e1_1001</span>
  - <span class="pl-s">scipy=1.2.1=py37hbd7caa9_1</span>
  - <span class="pl-s">setuptools=40.8.0=py37_0</span>
  - <span class="pl-s">six=1.12.0=py37_1000</span>
  - <span class="pl-s">sqlite=3.26.0=h1765d9f_1001</span>
  - <span class="pl-s">tk=8.6.9=ha441bb4_1000</span>
  - <span class="pl-s">traitlets=4.3.2=py37_1000</span>
  - <span class="pl-s">wcwidth=0.1.7=py_1</span>
  - <span class="pl-s">wheel=0.33.1=py37_0</span>
  - <span class="pl-s">xz=5.2.4=h1de35cc_1001</span>
  - <span class="pl-s">zlib=1.2.11=h1de35cc_1004</span></pre></div>
</details>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jnothman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jnothman">@jnothman</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/agramfort/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/agramfort">@agramfort</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/NicolasHug/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/NicolasHug">@NicolasHug</a> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="414152565" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/13252" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/13252/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/13252">#13252</a>)</p>
<h4 dir="auto">Description</h4>
<p dir="auto">Build on macOS succeeds at <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/scikit-learn/scikit-learn/commit/f652b95adad4a54b16d64884adc0d459d7d736b1/hovercard" href="https://github.com/scikit-learn/scikit-learn/commit/f652b95adad4a54b16d64884adc0d459d7d736b1"><tt>f652b95</tt></a>~1 but fails at <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/scikit-learn/scikit-learn/commit/f652b95adad4a54b16d64884adc0d459d7d736b1/hovercard" href="https://github.com/scikit-learn/scikit-learn/commit/f652b95adad4a54b16d64884adc0d459d7d736b1"><tt>f652b95</tt></a>.</p>
<h4 dir="auto">Steps/Code to Reproduce</h4>
<p dir="auto"><code class="notranslate">git clone https://github.com/scikit-learn/scikit-learn.git</code><br>
<code class="notranslate">cd scikit-learn</code><br>
<code class="notranslate">pip3 install --user Cython</code><br>
<code class="notranslate">pip3 install --user numpy</code><br>
<code class="notranslate">pip3 install --user .</code></p>
<h4 dir="auto">Actual Results</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="creating build/temp.macosx-10.14-x86_64-3.7/sklearn/__check_build
compile options: '-I/Users/xxxxx/Library/Python/3.7/lib/python/site-packages/numpy/core/include -I/Users/xxxxx/Library/Python/3.7/lib/python/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c'
extra options: '-fopenmp'
clang: sklearn/__check_build/_check_build.c
clang: error: unsupported option '-fopenmp'
error: Command &quot;clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/Users/xxxxx/Library/Python/3.7/lib/python/site-packages/numpy/core/include -I/Users/xxxxx/Library/Python/3.7/lib/python/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c sklearn/__check_build/_check_build.c -o build/temp.macosx-10.14-x86_64-3.7/sklearn/__check_build/_check_build.o -MMD -MF build/temp.macosx-10.14-x86_64-3.7/sklearn/__check_build/_check_build.o.d -fopenmp&quot; failed with exit status 1"><pre class="notranslate"><code class="notranslate">creating build/temp.macosx-10.14-x86_64-3.7/sklearn/__check_build
compile options: '-I/Users/xxxxx/Library/Python/3.7/lib/python/site-packages/numpy/core/include -I/Users/xxxxx/Library/Python/3.7/lib/python/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c'
extra options: '-fopenmp'
clang: sklearn/__check_build/_check_build.c
clang: error: unsupported option '-fopenmp'
error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/Users/xxxxx/Library/Python/3.7/lib/python/site-packages/numpy/core/include -I/Users/xxxxx/Library/Python/3.7/lib/python/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c sklearn/__check_build/_check_build.c -o build/temp.macosx-10.14-x86_64-3.7/sklearn/__check_build/_check_build.o -MMD -MF build/temp.macosx-10.14-x86_64-3.7/sklearn/__check_build/_check_build.o.d -fopenmp" failed with exit status 1
</code></pre></div>