Skip to content

cmake build not working on MacOS 11.5.1 x86_64 #215

Description

@michaelleerilee
(stare) mri1:STAREmaster-build mrilee$ ../STAREmaster/mlr-build 
-- The C compiler identification is AppleClang 12.0.5.12050022
-- The CXX compiler identification is AppleClang 12.0.5.12050022
-- Detecting C compiler ABI info
CMake Warning (dev) at /Users/mrilee/opt/anaconda3/envs/stare/share/cmake-3.19/Modules/CMakeDetermineCompilerABI.cmake:48 (try_compile):
  Policy CMP0066 is not set: Honor per-config flags in try_compile()
  source-file signature.  Run "cmake --help-policy CMP0066" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  For compatibility with older versions of CMake, try_compile is not honoring
  caller config-specific compiler flags (e.g.  CMAKE_C_FLAGS_DEBUG) in the
  test project.
Call Stack (most recent call first):
  /Users/mrilee/opt/anaconda3/envs/stare/share/cmake-3.19/Modules/CMakeTestCCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:9 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /Users/mrilee/opt/anaconda3/envs/stare/share/cmake-3.19/Modules/CMakeDetermineCompilerABI.cmake:48 (try_compile):
  Policy CMP0056 is not set: Honor link flags in try_compile() source-file
  signature.  Run "cmake --help-policy CMP0056" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  For compatibility with older versions of CMake, try_compile is not honoring
  caller link flags (e.g.  CMAKE_EXE_LINKER_FLAGS) in the test project.
Call Stack (most recent call first):
  /Users/mrilee/opt/anaconda3/envs/stare/share/cmake-3.19/Modules/CMakeTestCCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:9 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Warning (dev) at CMakeLists.txt:9 (project):
  Policy CMP0025 is not set: Compiler id for Apple Clang is now AppleClang.
  Run "cmake --help-policy CMP0025" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Converting C compiler id "AppleClang" to "Clang" for compatibility.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Detecting CXX compiler ABI info
CMake Warning (dev) at /Users/mrilee/opt/anaconda3/envs/stare/share/cmake-3.19/Modules/CMakeDetermineCompilerABI.cmake:48 (try_compile):
  Policy CMP0066 is not set: Honor per-config flags in try_compile()
  source-file signature.  Run "cmake --help-policy CMP0066" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  For compatibility with older versions of CMake, try_compile is not honoring
  caller config-specific compiler flags (e.g.  CMAKE_C_FLAGS_DEBUG) in the
  test project.
Call Stack (most recent call first):
  /Users/mrilee/opt/anaconda3/envs/stare/share/cmake-3.19/Modules/CMakeTestCXXCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:9 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /Users/mrilee/opt/anaconda3/envs/stare/share/cmake-3.19/Modules/CMakeDetermineCompilerABI.cmake:48 (try_compile):
  Policy CMP0056 is not set: Honor link flags in try_compile() source-file
  signature.  Run "cmake --help-policy CMP0056" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  For compatibility with older versions of CMake, try_compile is not honoring
  caller link flags (e.g.  CMAKE_EXE_LINKER_FLAGS) in the test project.
Call Stack (most recent call first):
  /Users/mrilee/opt/anaconda3/envs/stare/share/cmake-3.19/Modules/CMakeTestCXXCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:9 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at CMakeLists.txt:9 (project):
  Policy CMP0025 is not set: Compiler id for Apple Clang is now AppleClang.
  Run "cmake --help-policy CMP0025" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Converting CXX compiler id "AppleClang" to "Clang" for compatibility.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    ENABLE_LARGE_FILE_TESTS
    NETCDF_INCLUDES
    NETCDF_LIBRARIES
    STARE_INCLUDE_DIR
    STARE_LIBRARY
    TEST_LARGE


-- Build files have been written to: /Users/mrilee/git/STAREmaster-build
/Users/mrilee/opt/anaconda3/envs/stare/bin/cmake -S/Users/mrilee/git/STAREmaster -B/Users/mrilee/git/STAREmaster-build --check-build-system CMakeFiles/Makefile.cmake 0
/Users/mrilee/opt/anaconda3/envs/stare/bin/cmake -E cmake_progress_start /Users/mrilee/git/STAREmaster-build/CMakeFiles /Users/mrilee/git/STAREmaster-build//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/Users/mrilee/git/STAREmaster-build'
make  -f CMakeFiles/print_stare.dir/build.make CMakeFiles/print_stare.dir/depend
make[2]: Entering directory '/Users/mrilee/git/STAREmaster-build'
cd /Users/mrilee/git/STAREmaster-build && /Users/mrilee/opt/anaconda3/envs/stare/bin/cmake -E cmake_depends "Unix Makefiles" /Users/mrilee/git/STAREmaster /Users/mrilee/git/STAREmaster /Users/mrilee/git/STAREmaster-build /Users/mrilee/git/STAREmaster-build /Users/mrilee/git/STAREmaster-build/CMakeFiles/print_stare.dir/DependInfo.cmake --color=
Dependee "/Users/mrilee/git/STAREmaster-build/CMakeFiles/print_stare.dir/DependInfo.cmake" is newer than depender "/Users/mrilee/git/STAREmaster-build/CMakeFiles/print_stare.dir/depend.internal".
Dependee "/Users/mrilee/git/STAREmaster-build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Users/mrilee/git/STAREmaster-build/CMakeFiles/print_stare.dir/depend.internal".
Scanning dependencies of target print_stare
make[2]: Leaving directory '/Users/mrilee/git/STAREmaster-build'
make  -f CMakeFiles/print_stare.dir/build.make CMakeFiles/print_stare.dir/build
make[2]: Entering directory '/Users/mrilee/git/STAREmaster-build'
[  8%] Building CXX object CMakeFiles/print_stare.dir/src/print_stare.cpp.o
/Library/Developer/CommandLineTools/usr/bin/c++  -I/Users/mrilee/git/STAREmaster/include -I/Users/mrilee/git/STAREmaster/. -g -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk -o CMakeFiles/print_stare.dir/src/print_stare.cpp.o -c /Users/mrilee/git/STAREmaster/src/print_stare.cpp
/Users/mrilee/git/STAREmaster/src/print_stare.cpp:6:10: fatal error: 'config.h' file not found
#include "config.h"
         ^~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/print_stare.dir/build.make:82: CMakeFiles/print_stare.dir/src/print_stare.cpp.o] Error 1
make[2]: Leaving directory '/Users/mrilee/git/STAREmaster-build'
make[1]: *** [CMakeFiles/Makefile2:97: CMakeFiles/print_stare.dir/all] Error 2
make[1]: Leaving directory '/Users/mrilee/git/STAREmaster-build'
make: *** [Makefile:103: all] Error 2

And mlr-build is:

(stare) mri1:STAREmaster mrilee$ cat mlr-build
#!/bin/bash

cd /Users/mrilee/git/STAREmaster-build

cmake \
  -DTEST_LARGE=/home/mrilee/ \
  -DENABLE_LARGE_FILE_TESTS=ON \
  -DCMAKE_BUILD_TYPE=Debug \
  --trace-source=test/CMakeLists.txt \
  -DNETCDF_INCLUDES=/Users/mrilee/opt/anaconda3/envs/stare/include/ \
  -DNETCDF_LIBRARIES=/Users/mrilee/opt/anaconda3/envs/stare/lib/ \
  -DSTARE_INCLUDE_DIR=/Users/mrilee/opt/local/include/STARE \
  -DSTARE_LIBRARY=/Users/mrilee/opt/local/lib \
  -DCMAKE_PREFIX_PATH="/usr/local/hdf-4.2.15;/usr/local/hdfeos" \
  /Users/mrilee/git/STAREmaster \
&& make VERBOSE=1 && make VERBOSE=1 test

Other information.

(stare) mri1:STAREmaster mrilee$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   .gitignore
	modified:   CMakeLists.txt

no changes added to commit (use "git add" and/or "git commit -a")
(stare) mri1:STAREmaster mrilee$ git branch
  cover1
  ejh_ringpoints
* master
(stare) mri1:STAREmaster mrilee$ git log
commit 63c197db2b3bef17177469227ed58938f28198a1 (HEAD -> master, origin/master, origin/HEAD)
Merge: 95fdabc f73d040
Author: Captain James Tiberius Kirk <37277297+captainkirk99@users.noreply.github.com>
Date:   Sat Aug 21 05:18:20 2021 -0600

    Merge pull request #213 from SpatioTemporal/ejh_test_3
    
    turned off verbose output when not wanted

[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginstallation problemSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions