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

Cmake fails to compile a package #1021

Open
anastasijamalyk opened this issue Aug 11, 2020 · 1 comment
Open

Cmake fails to compile a package #1021

anastasijamalyk opened this issue Aug 11, 2020 · 1 comment

Comments

@anastasijamalyk
Copy link

anastasijamalyk commented Aug 11, 2020

Hi all,
I am trying to install this package (https://github.com/gstonge/spreading_CR) through Cmake (3.1) on my MacOS Mojave 10.14.3. After cloning the repository and trying to pip install ./spreading_CR, I am getting this hideous error, which I cannot fix. I've read different opinions on similar issues, like lack of writing access to the referenced folder or problems with different clang and x86_64-apple-darwin13.4.0-clang linkers, but I am still not even close to fixing it. Would be grateful for any help

ERROR: Command errored out with exit status 1:
   command: /Users/user/opt/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hg/cv1z7tsd57g3d07dp226b_6w0000gn/T/pip-req-build-7dk58ciu/setup.py'"'"'; __file__='"'"'/private/var/folders/hg/cv1z7tsd57g3d07dp226b_6w0000gn/T/pip-req-build-7dk58ciu/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/hg/cv1z7tsd57g3d07dp226b_6w0000gn/T/pip-wheel-3j85vv1z
       cwd: /private/var/folders/hg/cv1z7tsd57g3d07dp226b_6w0000gn/T/pip-req-build-7dk58ciu/
  Complete output (75 lines):
  running bdist_wheel
  running build
  running build_ext
  -- The C compiler identification is Clang 4.0.1
  -- The CXX compiler identification is Clang 4.0.1
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - failed
  -- Check for working C compiler: /Users/user/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-clang
  -- Check for working C compiler: /Users/user/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-clang - broken
  CMake Error at /Users/user/opt/anaconda3/lib/python3.7/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.18/Modules/CMakeTestCCompiler.cmake:66 (message):
    The C compiler
  
      "/Users/user/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-clang"
  
    is not able to compile a simple test program.
  
    It fails with the following output:
  
      Change Dir: /private/var/folders/hg/cv1z7tsd57g3d07dp226b_6w0000gn/T/pip-req-build-7dk58ciu/build/temp.macosx-10.9-x86_64-3.7/CMakeFiles/CMakeTmp
  
      Run Build Command(s):/usr/bin/make cmTC_ad633/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_ad633.dir/build.make CMakeFiles/cmTC_ad633.dir/build
      Building C object CMakeFiles/cmTC_ad633.dir/testCCompiler.c.o
      /Users/user/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-clang   -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -o CMakeFiles/cmTC_ad633.dir/testCCompiler.c.o -c /private/var/folders/hg/cv1z7tsd57g3d07dp226b_6w0000gn/T/pip-req-build-7dk58ciu/build/temp.macosx-10.9-x86_64-3.7/CMakeFiles/CMakeTmp/testCCompiler.c
      Linking C executable cmTC_ad633
      /Users/user/opt/anaconda3/lib/python3.7/site-packages/cmake/data/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ad633.dir/link.txt --verbose=1
      /Users/user/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-clang -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs  CMakeFiles/cmTC_ad633.dir/testCCompiler.c.o -o cmTC_ad633
      ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd
      ld: dynamic main executables must link with libSystem.dylib for architecture x86_64
      clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
      make[1]: *** [cmTC_ad633] Error 1
      make: *** [cmTC_ad633/fast] Error 2
  
    CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
    CMakeLists.txt:5 (project)
  

Also, here is the output of cmake --trace --debug-output --debug-trycompile:

CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.
CMake Error: The source directory "/Users/user" does not appear to contain CMakeLists.txt.
@JeanPaulShapo
Copy link
Contributor

I am trying to install this package (https://github.com/gstonge/spreading_CR) through Cmake (3.1) on my MacOS Mojave 10.14.3.

Sorry, I'm confused about this issue and don't know how to help.
I don't understand how problems with installing spreading_CR can be related to bigartm.
Is it simply an issue opened into wrong repository, or there is some connection between spreading_CR and bigartm?

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