Skip to content

OSX needs OSX 10.9 SDK for conda compilers to function #323

@rabah-khalek

Description

@rabah-khalek

After my update yesterday to Mac Mojave, I am not able to set up an nnpdf env with conda.
I redid the full procedure of setting an env and install nnpdf, but I am getting this error when arriving to the step cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX :

-- Setting build type to 'Release' as none was specified.
-- The C compiler identification is Clang 4.0.1
-- The CXX compiler identification is Clang 4.0.1
-- Check for working C compiler: /Users/rabah/Documents/miniconda3/envs/nnpdf/bin/x86_64-apple-darwin13.4.0-clang
-- Check for working C compiler: /Users/rabah/Documents/miniconda3/envs/nnpdf/bin/x86_64-apple-darwin13.4.0-clang -- broken
CMake Error at /Users/rabah/Documents/miniconda3/envs/nnpdf/share/cmake-3.12/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler

    "/Users/rabah/Documents/miniconda3/envs/nnpdf/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: /Users/rabah/Documents/new/nnpdf/conda-build/CMakeFiles/CMakeTmp
    
    Run Build Command:"/usr/bin/make" "cmTC_a2c8d/fast"
    /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_a2c8d.dir/build.make CMakeFiles/cmTC_a2c8d.dir/build
    Building C object CMakeFiles/cmTC_a2c8d.dir/testCCompiler.c.o
    /Users/rabah/Documents/miniconda3/envs/nnpdf/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_a2c8d.dir/testCCompiler.c.o   -c /Users/rabah/Documents/new/nnpdf/conda-build/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_a2c8d
    /Users/rabah/Documents/miniconda3/envs/nnpdf/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a2c8d.dir/link.txt --verbose=1
    /Users/rabah/Documents/miniconda3/envs/nnpdf/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_a2c8d.dir/testCCompiler.c.o  -o cmTC_a2c8d 
    ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.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/MacOSX10.14.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_a2c8d] Error 1
    make: *** [cmTC_a2c8d/fast] Error 2
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:21 (project)


-- Configuring incomplete, errors occurred!
See also "/Users/rabah/Documents/new/nnpdf/conda-build/CMakeFiles/CMakeOutput.log".
See also "/Users/rabah/Documents/new/nnpdf/conda-build/CMakeFiles/CMakeError.log".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions