pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cmake on Darwni



On 2020-03-02 20:03, Jason Bacon wrote:
On 2020-03-02 14:40, Adam wrote:
Is anyone running the latest cmake on Darwin?
I do.

Build reports that Apple clang 10 does not support C++11, which is nonsense.

If anyone has a fix for this, please let me know.  Otherwise, I'll investigate.
Mostly I work with Apple Clang 11 (Xcode 11), but I don't recall having any problem with Clang 10 (Xcode 10).
What exactly do you get?

Kind regards,
Adam

Unfortunately, my Mac won't run anything newer than High Sierra, so Xcode 11 is not an option.

Here's the tail of my output:

Thanks,

    JB

ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList are out of sync. Falling back to library file for linking. loading initial cache file /Users/bacon/Pkgsrc/pkgsrc/devel/cmake/work/cmake-3.16.4/Bootstrap.cmk/InitialCacheFlags.cmake
-- The C compiler identification is AppleClang 10.0.0.10001044
-- The CXX compiler identification is AppleClang 10.0.0.10001044
-- Check for working C compiler: /Users/bacon/Pkgsrc/pkgsrc/devel/cmake/work/.cwrapper/bin/clang -- Check for working C compiler: /Users/bacon/Pkgsrc/pkgsrc/devel/cmake/work/.cwrapper/bin/clang -- 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: /Users/bacon/Pkgsrc/pkgsrc/devel/cmake/work/.cwrapper/bin/clang++ -- Check for working CXX compiler: /Users/bacon/Pkgsrc/pkgsrc/devel/cmake/work/.cwrapper/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Checking if compiler supports needed C++17 constructs
-- Checking if compiler supports needed C++17 constructs - no
-- Checking if compiler supports needed C++14 constructs
-- Checking if compiler supports needed C++14 constructs - yes
-- Checking if compiler supports C++ make_unique
-- Checking if compiler supports C++ make_unique - no
-- Checking if compiler supports C++ unique_ptr
-- Checking if compiler supports C++ unique_ptr - no
CMake Error at CMakeLists.txt:107 (message):
  The C++ compiler does not support C++11 (e.g.  std::unique_ptr).


-- Configuring incomplete, errors occurred!
See also "/Users/bacon/Pkgsrc/pkgsrc/devel/cmake/work/cmake-3.16.4/CMakeFiles/CMakeOutput.log". See also "/Users/bacon/Pkgsrc/pkgsrc/devel/cmake/work/cmake-3.16.4/CMakeFiles/CMakeError.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
*** Error code 11

Stop.
bmake.bin[1]: stopped in /Users/bacon/Pkgsrc/pkgsrc/devel/cmake
*** Error code 1

Stop.
bmake.bin: stopped in /Users/bacon/Pkgsrc/pkgsrc/devel/cmake


Found the issue here:

https://gitlab.kitware.com/cmake/cmake/issues/17791

CMake bootstrap treats the word "warning" in the output as an error, so the ld warning above made it crap out.  I commented out the check in the cmake file and install succeeded.

So I think this is an OS X update issue.



Home | Main Index | Thread Index | Old Index