{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/165","labels_url":"https://api.github.com/repos/dotnet/coreclr/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/coreclr/issues/165/comments","events_url":"https://api.github.com/repos/dotnet/coreclr/issues/165/events","html_url":"https://github.com/dotnet/coreclr/issues/165","id":57006693,"number":165,"title":"OS X build error:CMake Error at CMakeLists.txt:error: Detected non x86_64 target processor. Not supported!(CMAKE_SYSTEM_PROCESSOR is i386)","user":{"login":"chenjd","id":5668352,"avatar_url":"https://avatars.githubusercontent.com/u/5668352?v=3","gravatar_id":"","url":"https://api.github.com/users/chenjd","html_url":"https://github.com/chenjd","followers_url":"https://api.github.com/users/chenjd/followers","following_url":"https://api.github.com/users/chenjd/following{/other_user}","gists_url":"https://api.github.com/users/chenjd/gists{/gist_id}","starred_url":"https://api.github.com/users/chenjd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenjd/subscriptions","organizations_url":"https://api.github.com/users/chenjd/orgs","repos_url":"https://api.github.com/users/chenjd/repos","events_url":"https://api.github.com/users/chenjd/events{/privacy}","received_events_url":"https://api.github.com/users/chenjd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-09T09:30:31Z","updated_at":"2015-02-10T05:40:48Z","closed_at":null,"body":"when i tried to build corlclr on OS X, i got the error:\r\n```\r\n-- The C compiler identification is Clang 5.1.0\r\n-- The CXX compiler identification is Clang 5.1.0\r\n-- Check for working C compiler: /usr/bin/clang\r\n-- Check for working C compiler: /usr/bin/clang -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Check for working CXX compiler: /usr/bin/clang++\r\n-- Check for working CXX compiler: /usr/bin/clang++ -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\nCMake Error at CMakeLists.txt:307 (message):\r\n  error: Detected non x86_64 target processor.  Not supported!\r\n```\r\nCMakeLists.txt:307\r\n```\r\nif(CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64)\r\n    add_definitions(-DBIT64=1)\r\n    add_definitions(-DFEATURE_PAL)\r\n  else (CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64)\r\n      message(FATAL_ERROR \"error: Detected non x86_64 target processor. Not supported!\")      \r\n```\r\nthe reason maybe the CMAKE_SYSTEM_PROCESSOR isnot x86_64,and then i figour out that the CMAKE_SYSTEM_PROCESSOR  is always i386 on OS X!!\r\ni change  CMakeLists.txt:307 to:\r\n```\r\n else (CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64)\r\n      #message(FATAL_ERROR \"error: Detected non x86_64 target processor. Not supported!\")                                                    \r\n      message(STATUS \"CMAKE_SYSTEM_PROCESSOR: \" ${CMAKE_SYSTEM_PROCESSOR} )                                     \r\n```\r\nand the output is\r\n```\r\n-- CMAKE_SYSTEM_PROCESSOR: i386\r\nDetected OSX x86_64\r\nCMake Error at CMakeLists.txt:342 (message):\r\n  Not Implemented!\r\n\r\n\r\n-- Configuring incomplete, errors occurred!\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/comments/73647592","html_url":"https://github.com/dotnet/coreclr/issues/165#issuecomment-73647592","issue_url":"https://api.github.com/repos/dotnet/coreclr/issues/165","id":73647592,"user":{"login":"kangaroo","id":151532,"avatar_url":"https://avatars.githubusercontent.com/u/151532?v=3","gravatar_id":"","url":"https://api.github.com/users/kangaroo","html_url":"https://github.com/kangaroo","followers_url":"https://api.github.com/users/kangaroo/followers","following_url":"https://api.github.com/users/kangaroo/following{/other_user}","gists_url":"https://api.github.com/users/kangaroo/gists{/gist_id}","starred_url":"https://api.github.com/users/kangaroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kangaroo/subscriptions","organizations_url":"https://api.github.com/users/kangaroo/orgs","repos_url":"https://api.github.com/users/kangaroo/repos","events_url":"https://api.github.com/users/kangaroo/events{/privacy}","received_events_url":"https://api.github.com/users/kangaroo/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T05:40:48Z","updated_at":"2015-02-10T05:40:48Z","body":"@chenjd Building and Running CoreCLR on Linux != Mac OS X :)"}}