Skip to content

Fix osx build #92

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

Closed
wants to merge 9 commits into from
Closed

Fix osx build #92

wants to merge 9 commits into from

Conversation

repagh
Copy link
Member

@repagh repagh commented Feb 2, 2020

Modify travis configuration to enable osx building and linking

@bnavigator
Copy link
Collaborator

master is still on gcc. The problems only arise from switching to Apple's default clang in #90, #91

@bnavigator
Copy link
Collaborator

I have been playing all day with https://github.com/bnavigator/Slycot/tree/work-on-build-plus-travis which is based on #91. But no success with the conda build on OSX

@bnavigator
Copy link
Collaborator

even with the recent commits, there is still loading of the Travis shipped XCode SDK instead of the downloaded SDK

  -- Check for working C compiler: /Users/travis/miniconda/conda-bld/slycot_1580789925560/_build_env/bin/x86_64-apple-darwin13.4.0-clang -- broken
  CMake Error at /Users/travis/miniconda/conda-bld/slycot_1580789925560/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/share/cmake-3.14/Modules/CMakeTestCCompiler.cmake:60 (message):
    The C compiler
      "/Users/travis/miniconda/conda-bld/slycot_1580789925560/_build_env/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: /tmp/pip-req-build-M0aLqI/_cmake_test_compile/build/CMakeFiles/CMakeTmp
      Run Build Command(s):/usr/bin/make cmTC_b5684/fast
      /Applications/Xcode-9.4.1.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_b5684.dir/build.make CMakeFiles/cmTC_b5684.dir/build
      Building C object CMakeFiles/cmTC_b5684.dir/testCCompiler.c.o
      /Users/travis/miniconda/conda-bld/slycot_1580789925560/_build_env/bin/x86_64-apple-darwin13.4.0-clang   -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -I/Users/travis/miniconda/conda-bld/slycot_1580789925560/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/include -fdebug-prefix-map=/Users/travis/miniconda/conda-bld/slycot_1580789925560/work=/usr/local/src/conda/slycot-0.3.5 -fdebug-prefix-map=/Users/travis/miniconda/conda-bld/slycot_1580789925560/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla=/usr/local/src/conda-prefix  -arch x86_64 -isysroot /Applications/Xcode-9.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -mmacosx-version-min=10.9   -o CMakeFiles/cmTC_b5684.dir/testCCompiler.c.o   -c /tmp/pip-req-build-M0aLqI/_cmake_test_compile/build/CMakeFiles/CMakeTmp/testCCompiler.c
      Linking C executable cmTC_b5684
      /Users/travis/miniconda/conda-bld/slycot_1580789925560/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b5684.dir/link.txt --verbose=1
      /Users/travis/miniconda/conda-bld/slycot_1580789925560/_build_env/bin/x86_64-apple-darwin13.4.0-clang -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -I/Users/travis/miniconda/conda-bld/slycot_1580789925560/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/include -fdebug-prefix-map=/Users/travis/miniconda/conda-bld/slycot_1580789925560/work=/usr/local/src/conda/slycot-0.3.5 -fdebug-prefix-map=/Users/travis/miniconda/conda-bld/slycot_1580789925560/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla=/usr/local/src/conda-prefix  -arch x86_64 -isysroot /Applications/Xcode-9.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -mmacosx-version-min=10.9 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/travis/miniconda/conda-bld/slycot_1580789925560/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib -L/Users/travis/miniconda/conda-bld/slycot_1580789925560/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib  CMakeFiles/cmTC_b5684.dir/testCCompiler.c.o  -o cmTC_b5684
      ld: library not found for -lSystem

See also the failing approach in #93

@repagh
Copy link
Member Author

repagh commented Feb 4, 2020

Hm.

@repagh
Copy link
Member Author

repagh commented Feb 5, 2020

still fails. Giving up for now

@repagh repagh closed this Feb 5, 2020
@bnavigator
Copy link
Collaborator

See #93 (comment)

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

Successfully merging this pull request may close these issues.

2 participants