{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/corert/pulls/comments/49820455","id":49820455,"diff_hunk":"@@ -53,3 +54,18 @@ From the shell/command prompt, issue the following commands to generate the nati\n     dotnet restore\n     dotnet compile --native --cpp --ilcpath bin\\Product\\Windows_NT.x64.Debug\\.nuget\\publish1\n ```\n+\n+## Workarounds for linker errors on Windows ##\n+\n+If you are seeing errors such as: \n+\n+```\n+    LINK : fatal error LNK1104: cannot open file 'kernel32.lib'\n+    Linking of intermediate files failed.\n+```\n+\n+There are a few workarounds you might try:\n+ - Make sure you run these commands from a VS developer X64 command prompt instead of a vanilla command prompt\n+ - Search for the missing lib files in your SDK, for example under C:\\Program Files (x86)\\Windows Kits\\10\\lib. Make sure the path to these libraries is included in the LIB environment variable. It appears VS 2015 RTM developer command prompt does not correctly set the LIB paths for the 10586 Windows SDK. VS 2015 Update 1 resolves that issue, so installing it is another alternative.","path":"Documentation/how-to-build-and-run-ilcompiler-in-console-shell-prompt.md","position":null,"original_position":24,"commit_id":"1045280619a41ab2c077ee1997afec7f76612810","original_commit_id":"3c6c13f3fc68ed133abd6531ae98ed710c2e69ec","user":{"login":"noahfalk","id":6243776,"avatar_url":"https://avatars.githubusercontent.com/u/6243776?v=3","gravatar_id":"","url":"https://api.github.com/users/noahfalk","html_url":"https://github.com/noahfalk","followers_url":"https://api.github.com/users/noahfalk/followers","following_url":"https://api.github.com/users/noahfalk/following{/other_user}","gists_url":"https://api.github.com/users/noahfalk/gists{/gist_id}","starred_url":"https://api.github.com/users/noahfalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahfalk/subscriptions","organizations_url":"https://api.github.com/users/noahfalk/orgs","repos_url":"https://api.github.com/users/noahfalk/repos","events_url":"https://api.github.com/users/noahfalk/events{/privacy}","received_events_url":"https://api.github.com/users/noahfalk/received_events","type":"User","site_admin":false},"body":"I attempted to recreate my repro but I was unsuccesful. Installing VS2015 RTM + 10.10586 SDK gave correct LIB paths for both VS2015 x64 Native Tools and Developer Command Prompt for 2015. Looks like Jan already merged the change. I have no complaints if you want to remove the workaround instructions, or if we leave them there for a while just in case.\r\n\r\nI’m guessing at some point the dotnet native compile won’t have a dependency on having a Windows SDK installed, in which case that seems like a good time to also remove the workaround portion of the instructions.\r\n\r\n-Noah\r\n\r\nFrom: Gaurav Khanna [mailto:notifications@github.com]\r\nSent: Tuesday, January 12, 2016 7:38 AM\r\nTo: dotnet/corert <corert@noreply.github.com>\r\nCc: Noah Falk <noahfalk@microsoft.com>\r\nSubject: Re: [corert] Update build instructions to address linker errors (#625)\r\n\r\n\r\nIn Documentation/how-to-build-and-run-ilcompiler-in-console-shell-prompt.md<https://github.com/dotnet/corert/pull/625#discussion_r49469384>:\r\n\r\n> @@ -53,3 +54,18 @@ From the shell/command prompt, issue the following commands to generate the nati\r\n\r\n>      dotnet restore\r\n\r\n>      dotnet compile --native --cpp --ilcpath bin\\Product\\Windows_NT.x64.Debug\\.nuget\\publish1\r\n\r\n>  ```\r\n\r\n> +\r\n\r\n> +## Workarounds for linker errors on Windows ##\r\n\r\n> +\r\n\r\n> +If you are seeing errors such as:\r\n\r\n> +\r\n\r\n> +```\r\n\r\n> +    LINK : fatal error LNK1104: cannot open file 'kernel32.lib'\r\n\r\n> +    Linking of intermediate files failed.\r\n\r\n> +```\r\n\r\n> +\r\n\r\n> +There are a few workarounds you might try:\r\n\r\n> + - Make sure you run these commands from a VS developer X64 command prompt instead of a vanilla command prompt\r\n\r\n> + - Search for the missing lib files in your SDK, for example under C:\\Program Files (x86)\\Windows Kits\\10\\lib. Make sure the path to these libraries is included in the LIB environment variable. It appears VS 2015 RTM developer command prompt does not correctly set the LIB paths for the 10586 Windows SDK. VS 2015 Update 1 resolves that issue, so installing it is another alternative.\r\n\r\nOnce we are in \"Native Tools for x64\" command prompt, these errors shouldn't exist. Can you please confirm if you still see them?\r\n\r\n—\r\nReply to this email directly or view it on GitHub<https://github.com/dotnet/corert/pull/625/files#r49469384>.\r\n","created_at":"2016-01-15T04:40:25Z","updated_at":"2016-01-15T04:40:25Z","html_url":"https://github.com/dotnet/corert/pull/625#discussion_r49820455","pull_request_url":"https://api.github.com/repos/dotnet/corert/pulls/625","_links":{"self":{"href":"https://api.github.com/repos/dotnet/corert/pulls/comments/49820455"},"html":{"href":"https://github.com/dotnet/corert/pull/625#discussion_r49820455"},"pull_request":{"href":"https://api.github.com/repos/dotnet/corert/pulls/625"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/corert/pulls/625","id":55699792,"html_url":"https://github.com/dotnet/corert/pull/625","diff_url":"https://github.com/dotnet/corert/pull/625.diff","patch_url":"https://github.com/dotnet/corert/pull/625.patch","issue_url":"https://api.github.com/repos/dotnet/corert/issues/625","number":625,"state":"closed","locked":false,"title":"Update build instructions to address linker errors","user":{"login":"noahfalk","id":6243776,"avatar_url":"https://avatars.githubusercontent.com/u/6243776?v=3","gravatar_id":"","url":"https://api.github.com/users/noahfalk","html_url":"https://github.com/noahfalk","followers_url":"https://api.github.com/users/noahfalk/followers","following_url":"https://api.github.com/users/noahfalk/following{/other_user}","gists_url":"https://api.github.com/users/noahfalk/gists{/gist_id}","starred_url":"https://api.github.com/users/noahfalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahfalk/subscriptions","organizations_url":"https://api.github.com/users/noahfalk/orgs","repos_url":"https://api.github.com/users/noahfalk/repos","events_url":"https://api.github.com/users/noahfalk/events{/privacy}","received_events_url":"https://api.github.com/users/noahfalk/received_events","type":"User","site_admin":false},"body":"Call out the explicit requirement to use VS developer command prompt. Even with the VS command prompt there are still some cases it doesn't handle, so added workarounds section at the bottom to address that.\r\n\r\nFix #606","created_at":"2016-01-12T00:37:48Z","updated_at":"2016-01-15T04:40:25Z","closed_at":"2016-01-14T13:59:04Z","merged_at":"2016-01-14T13:59:03Z","merge_commit_sha":"2ce47e5cdcc5019d6f5f71363fce81ac157ba688","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/corert/pulls/625/commits","review_comments_url":"https://api.github.com/repos/dotnet/corert/pulls/625/comments","review_comment_url":"https://api.github.com/repos/dotnet/corert/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/corert/issues/625/comments","statuses_url":"https://api.github.com/repos/dotnet/corert/statuses/1045280619a41ab2c077ee1997afec7f76612810","head":{"label":"dotnet:noahfalk-issue_606","ref":"noahfalk-issue_606","sha":"1045280619a41ab2c077ee1997afec7f76612810","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":42552143,"name":"corert","full_name":"dotnet/corert","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/corert","description":"This repo contains CoreRT, a .NET Core runtime optimized for AOT (ahead of time compilation) scenarios, with the accompanying .NET Native compiler toolchain.","fork":false,"url":"https://api.github.com/repos/dotnet/corert","forks_url":"https://api.github.com/repos/dotnet/corert/forks","keys_url":"https://api.github.com/repos/dotnet/corert/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/corert/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/corert/teams","hooks_url":"https://api.github.com/repos/dotnet/corert/hooks","issue_events_url":"https://api.github.com/repos/dotnet/corert/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/corert/events","assignees_url":"https://api.github.com/repos/dotnet/corert/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/corert/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/corert/tags","blobs_url":"https://api.github.com/repos/dotnet/corert/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/corert/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/corert/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/corert/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/corert/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/corert/languages","stargazers_url":"https://api.github.com/repos/dotnet/corert/stargazers","contributors_url":"https://api.github.com/repos/dotnet/corert/contributors","subscribers_url":"https://api.github.com/repos/dotnet/corert/subscribers","subscription_url":"https://api.github.com/repos/dotnet/corert/subscription","commits_url":"https://api.github.com/repos/dotnet/corert/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/corert/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/corert/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/corert/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/corert/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/corert/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/corert/merges","archive_url":"https://api.github.com/repos/dotnet/corert/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/corert/downloads","issues_url":"https://api.github.com/repos/dotnet/corert/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/corert/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/corert/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/corert/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/corert/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/corert/releases{/id}","created_at":"2015-09-15T23:10:53Z","updated_at":"2016-01-14T13:01:29Z","pushed_at":"2016-01-15T04:15:03Z","git_url":"git://github.com/dotnet/corert.git","ssh_url":"git@github.com:dotnet/corert.git","clone_url":"https://github.com/dotnet/corert.git","svn_url":"https://github.com/dotnet/corert","homepage":"http://dotnet.github.io/","size":6303,"stargazers_count":216,"watchers_count":216,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":60,"mirror_url":null,"open_issues_count":119,"forks":60,"open_issues":119,"watchers":216,"default_branch":"master"}},"base":{"label":"dotnet:master","ref":"master","sha":"cc91e1803f1ddea3f7b3da059c7937b7547d5d65","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":42552143,"name":"corert","full_name":"dotnet/corert","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/corert","description":"This repo contains CoreRT, a .NET Core runtime optimized for AOT (ahead of time compilation) scenarios, with the accompanying .NET Native compiler toolchain.","fork":false,"url":"https://api.github.com/repos/dotnet/corert","forks_url":"https://api.github.com/repos/dotnet/corert/forks","keys_url":"https://api.github.com/repos/dotnet/corert/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/corert/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/corert/teams","hooks_url":"https://api.github.com/repos/dotnet/corert/hooks","issue_events_url":"https://api.github.com/repos/dotnet/corert/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/corert/events","assignees_url":"https://api.github.com/repos/dotnet/corert/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/corert/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/corert/tags","blobs_url":"https://api.github.com/repos/dotnet/corert/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/corert/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/corert/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/corert/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/corert/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/corert/languages","stargazers_url":"https://api.github.com/repos/dotnet/corert/stargazers","contributors_url":"https://api.github.com/repos/dotnet/corert/contributors","subscribers_url":"https://api.github.com/repos/dotnet/corert/subscribers","subscription_url":"https://api.github.com/repos/dotnet/corert/subscription","commits_url":"https://api.github.com/repos/dotnet/corert/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/corert/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/corert/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/corert/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/corert/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/corert/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/corert/merges","archive_url":"https://api.github.com/repos/dotnet/corert/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/corert/downloads","issues_url":"https://api.github.com/repos/dotnet/corert/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/corert/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/corert/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/corert/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/corert/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/corert/releases{/id}","created_at":"2015-09-15T23:10:53Z","updated_at":"2016-01-14T13:01:29Z","pushed_at":"2016-01-15T04:15:03Z","git_url":"git://github.com/dotnet/corert.git","ssh_url":"git@github.com:dotnet/corert.git","clone_url":"https://github.com/dotnet/corert.git","svn_url":"https://github.com/dotnet/corert","homepage":"http://dotnet.github.io/","size":6303,"stargazers_count":216,"watchers_count":216,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":60,"mirror_url":null,"open_issues_count":119,"forks":60,"open_issues":119,"watchers":216,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/corert/pulls/625"},"html":{"href":"https://github.com/dotnet/corert/pull/625"},"issue":{"href":"https://api.github.com/repos/dotnet/corert/issues/625"},"comments":{"href":"https://api.github.com/repos/dotnet/corert/issues/625/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/corert/pulls/625/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/corert/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/corert/pulls/625/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/corert/statuses/1045280619a41ab2c077ee1997afec7f76612810"}}}}