Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake doesn't work with Mac OS X #348

Closed
wangkuiyi opened this issue Nov 4, 2016 · 3 comments
Closed

cmake doesn't work with Mac OS X #348

wangkuiyi opened this issue Nov 4, 2016 · 3 comments
Assignees
Labels
Milestone

Comments

@wangkuiyi
Copy link
Collaborator

After installing dependencies as described here, the running of cmake prints the following erros:

yi@WangYis-iMac:~/work/paddle/build (fix_mac_build_doc)$ cmake  .. -DWITH_GPU=OFF -DWITH_DOC=OFF
CMake Warning at /usr/local/Cellar/cmake/3.4.3/share/cmake/Modules/Platform/Darwin-Initialize.cmake:97 (message):
  CMAKE_OSX_DEPLOYMENT_TARGET is '10.10' but the matching SDK does not exist
  at:

   "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk"

  Instead using SDK:

   "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk".
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.4.3/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake:18 (include)
  CMakeLists.txt:3 (project)


CMake Error at /usr/local/Cellar/cmake/3.4.3/share/cmake/Modules/Platform/Darwin.cmake:76 (message):
  CMAKE_OSX_DEPLOYMENT_TARGET is '10.10' 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.4.3/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
  CMakeLists.txt:3 (project)


-- Configuring incomplete, errors occurred!
See also "/Users/yi/work/paddle/build/CMakeFiles/CMakeOutput.log".
@wangkuiyi
Copy link
Collaborator Author

I noticed that @gangliao submitted this PR to add Mac OS X port of Paddle. Could @gangliao please help with this issue? Thanks!

@wangkuiyi wangkuiyi added this to the 0.8.1 milestone Nov 4, 2016
@wangkuiyi wangkuiyi assigned wangkuiyi and unassigned gangliao Nov 4, 2016
@gangliao gangliao self-assigned this Nov 4, 2016
@gangliao
Copy link
Contributor

gangliao commented Nov 4, 2016

@wangkuiyi

Homebrew/legacy-homebrew#46362
It seems like your Mac OS X is 10.10 and the Xcode is 7.x (10.11 SDK).
Maybe you can additionally pass CMAKE_OSX_SYSROOTto your CMake commands:

cmake .. -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -DWITH_GPU=OFF

@wangkuiyi
Copy link
Collaborator Author

@gangliao

Awesome! That works! Thank you!

thisjiang pushed a commit to thisjiang/Paddle that referenced this issue Oct 28, 2021
gglin001 added a commit to graphcore/Paddle-fork that referenced this issue Mar 17, 2022
AnnaTrainingG pushed a commit to AnnaTrainingG/Paddle that referenced this issue Sep 19, 2022
AnnaTrainingG pushed a commit to AnnaTrainingG/Paddle that referenced this issue Dec 6, 2023
[LayerNorm] Fix typo in ln_api.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants