Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

clang-format failed to build on 10.11 #42221

Closed
jamieshorten opened this issue Jul 28, 2015 · 4 comments
Closed

clang-format failed to build on 10.11 #42221

jamieshorten opened this issue Jul 28, 2015 · 4 comments
Labels

Comments

@jamieshorten
Copy link

All prerequisites built and installed as expected but clang-format failed when cmake was run. The following error was generated:

==> cmake -G Ninja -DCMAKE_C_FLAGS_RELEASE= -DCMAKE_CXX_FLAGS_RELEASE= -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/clang-format/2015-06-18 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DLLVM_ENABLE_LIBCXX=ON ..
-- The C compiler identification is AppleClang 7.0.0.7000059
-- The CXX compiler identification is AppleClang 7.0.0.7000059
CMake Error at /usr/local/Cellar/cmake/3.3.0/share/cmake/Modules/Platform/Darwin.cmake:76 (message):
  CMAKE_OSX_DEPLOYMENT_TARGET is '10.11' but CMAKE_OSX_SYSROOT:

   ""

  is not set to a MacOSX SDK with a recognized version.  Either set
  CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
  empty.
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.3.0/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
  CMakeLists.txt:29 (project)


-- Configuring incomplete, errors occurred!
See also "/tmp/clang-format20150728-22654-1s4qakg/build/CMakeFiles/CMakeOutput.log".
@bfontaine
Copy link
Contributor

Please post the output of brew gist-logs clang-format.

@jamieshorten
Copy link
Author

https://gist.github.com/anonymous/e4f22081d71566efbac1

01.cmake

2015-07-28 22:15:30 +0100

cmake
-G
Ninja
-DCMAKE_C_FLAGS_RELEASE=
-DCMAKE_CXX_FLAGS_RELEASE=
-DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/clang-format/2015-06-18
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_VERBOSE_MAKEFILE=ON
-Wno-dev
-DLLVM_ENABLE_LIBCXX=ON
..

-- The C compiler identification is AppleClang 7.0.0.7000059
-- The CXX compiler identification is AppleClang 7.0.0.7000059
CMake Error at /usr/local/Cellar/cmake/3.3.0/share/cmake/Modules/Platform/Darwin.cmake:76 (message):
  CMAKE_OSX_DEPLOYMENT_TARGET is '10.11' but CMAKE_OSX_SYSROOT:

   ""

  is not set to a MacOSX SDK with a recognized version.  Either set
  CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
  empty.
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.3.0/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
  CMakeLists.txt:29 (project)


-- Configuring incomplete, errors occurred!
See also "/tmp/clang-format20150728-22654-1s4qakg/build/CMakeFiles/CMakeOutput.log".

HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: 5bd266879a3a2b28bcc6ab0c7ab32a902d6efcf8
Last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit haswell
OS X: 10.11-x86_64
Xcode: 7.0 => /Applications/Xcode-beta.app/Contents/Developer
CLT: 7.0.0.0.1.1437113798
Clang: 7.0 build 700
X11: N/A
System Ruby: 2.0.0-p645
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby
Java: 1.8.0_51

CC: /usr/bin/clang
CXX: /usr/bin/clang++
OBJC: /usr/bin/clang
OBJCXX: /usr/bin/clang++
CFLAGS: -Os -w -pipe -march=native -mmacosx-version-min=10.11
CXXFLAGS: -Os -w -pipe -march=native -mmacosx-version-min=10.11
LDFLAGS: -L/usr/local/lib -Wl,-headerpad_max_install_names
MAKEFLAGS: -j4
MACOSX_DEPLOYMENT_TARGET: 10.11
PKG_CONFIG_LIBDIR: /usr/local/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.11:/usr/lib/pkgconfig
PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Library/ENV/scm
CPATH: /usr/local/include

config.out

HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: 5bd266879a3a2b28bcc6ab0c7ab32a902d6efcf8
Last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit haswell
OS X: 10.11-x86_64
Xcode: 7.0 => /Applications/Xcode-beta.app/Contents/Developer
CLT: 7.0.0.0.1.1437113798
Clang: 7.0 build 700
X11: N/A
System Ruby: 2.0.0-p645
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby
Java: 1.8.0_51

doctor.out

Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

@DomT4
Copy link
Member

DomT4 commented Jul 29, 2015

I suspect it's trying to find /Applications/Xcode.app/ rather than /Applications/Xcode-beta.app/. If you symlink the latter to the former, does compile work?

@jamieshorten
Copy link
Author

That sorted it.

Thanks

@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants