pkgsrc-Users archive

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

Re: cmake on macOS broken?



On Sat, Oct 30, 2021 at 1:20 PM Thomas Klausner <wiz%netbsd.org@localhost> wrote:
>
> Hi!
>
> I just installed cmake from the binary repository
> (https://pkgsrc.joyent.com/packages/Darwin/11.0/x86_64/All) on macOS
> Big Sur 11.6 and tried to build some software, but it fails
> immediately:
>
> wiz@iMac build % cmake ..
> -- The C compiler identification is AppleClang 13.0.0.13000029
> -- The CXX compiler identification is AppleClang 13.0.0.13000029
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - failed
> -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
> -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - broken

The workaround I've been using: when building cmake, pass
CMAKE_PREFIX_PATH to the bootstrap script.

In devel/cmake/Makefile:

CONFIGURE_ENV+= CMAKE_OPTIONS="-DCMAKE_PREFIX_PATH=${PREFIX}"

and patch the bootstrap script:

 # Run bootstrap CMake to configure real CMake
-cmake_options="-DCMAKE_BOOTSTRAP=1"
+cmake_options="-DCMAKE_BOOTSTRAP=1 ${CMAKE_OPTIONS}"


Home | Main Index | Thread Index | Old Index