Skip to content

Instantly share code, notes, and snippets.

@ajfriend
Last active April 30, 2019 05:04
Show Gist options
  • Save ajfriend/7c8d08ee59b6cf61821b1051d27dd253 to your computer and use it in GitHub Desktop.
Save ajfriend/7c8d08ee59b6cf61821b1051d27dd253 to your computer and use it in GitHub Desktop.
H3-py cython install errors
--------------------------------------------------------------------------------
-- Trying "Ninja" generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
Not searching for unused variables given on the command line.
-- The C compiler identification is AppleClang 10.0.1.10010046
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ajfriend/work/test/h3-py/_cmake_test_compile/build
--
-------
------------
-----------------
----------------------
---------------------------
--------------------------------
-- Trying "Ninja" generator - success
--------------------------------------------------------------------------------
CMake Error at CMakeLists.txt:4 (file):
file STRINGS file "/Users/ajfriend/work/test/h3-py/h3c/VERSION" cannot be
read.
-- h3 version:
-- h3core-py version: 3.0.0
-- The C compiler identification is AppleClang 10.0.1.10010046
-- The CXX compiler identification is AppleClang 10.0.1.10010046
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- broken
CMake Error at /usr/local/Cellar/cmake/3.11.1/share/cmake/Modules/CMakeTestCXXCompiler.cmake:45 (message):
The C++ compiler
"/Library/Developer/CommandLineTools/usr/bin/c++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/ajfriend/work/test/h3-py/_skbuild/macosx-10.6-x86_64-3.6/cmake-build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/local/bin/ninja" "cmTC_b7ef1"
[1/2] Building CXX object CMakeFiles/cmTC_b7ef1.dir/testCXXCompiler.cxx.o
warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
1 warning generated.
[2/2] Linking CXX executable cmTC_b7ef1
FAILED: cmTC_b7ef1
: && /Library/Developer/CommandLineTools/usr/bin/c++ -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.6 -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_b7ef1.dir/testCXXCompiler.cxx.o -o cmTC_b7ef1 && :
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:16 (project)
-- Configuring incomplete, errors occurred!
See also "/Users/ajfriend/work/test/h3-py/_skbuild/macosx-10.6-x86_64-3.6/cmake-build/CMakeFiles/CMakeOutput.log".
See also "/Users/ajfriend/work/test/h3-py/_skbuild/macosx-10.6-x86_64-3.6/cmake-build/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "/Users/ajfriend/work/test/h3-py/env/lib/python3.6/site-packages/skbuild/setuptools_wrap.py", line 575, in setup
languages=cmake_languages
File "/Users/ajfriend/work/test/h3-py/env/lib/python3.6/site-packages/skbuild/cmaker.py", line 232, in configure
os.path.abspath(CMAKE_BUILD_DIR())))
An error occurred while configuring with CMake.
Command:
"cmake" "/Users/ajfriend/work/test/h3-py" "-G" "Ninja" "-DCMAKE_INSTALL_PREFIX:PATH=/Users/ajfriend/work/test/h3-py/_skbuild/macosx-10.6-x86_64-3.6/cmake-install" "-DPYTHON_EXECUTABLE:FILEPATH=/Users/ajfriend/work/test/h3-py/env/bin/python" "-DPYTHON_VERSION_STRING:STRING=3.6.5" "-DPYTHON_INCLUDE_DIR:PATH=/usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/include/python3.6m" "-DPYTHON_LIBRARY:FILEPATH=/usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/lib/libpython3.6m.dylib" "-DSKBUILD:BOOL=TRUE" "-DCMAKE_MODULE_PATH:PATH=/Users/ajfriend/work/test/h3-py/env/lib/python3.6/site-packages/skbuild/resources/cmake" "-DCMAKE_BUILD_TYPE:STRING=Release" "-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.6" "-DCMAKE_OSX_ARCHITECTURES:STRING=x86_64"
Source directory:
/Users/ajfriend/work/test/h3-py
Working directory:
/Users/ajfriend/work/test/h3-py/_skbuild/macosx-10.6-x86_64-3.6/cmake-build
Please see CMake's output for more information.
make: *** [init] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment