{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corert/issues/5742","repository_url":"https://api.github.com/repos/dotnet/corert","labels_url":"https://api.github.com/repos/dotnet/corert/issues/5742/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corert/issues/5742/comments","events_url":"https://api.github.com/repos/dotnet/corert/issues/5742/events","html_url":"https://github.com/dotnet/corert/issues/5742","id":317050008,"number":5742,"title":"Link error occured when sample code build","user":{"login":"Reevid","id":4592433,"avatar_url":"https://avatars2.githubusercontent.com/u/4592433?v=4","gravatar_id":"","url":"https://api.github.com/users/Reevid","html_url":"https://github.com/Reevid","followers_url":"https://api.github.com/users/Reevid/followers","following_url":"https://api.github.com/users/Reevid/following{/other_user}","gists_url":"https://api.github.com/users/Reevid/gists{/gist_id}","starred_url":"https://api.github.com/users/Reevid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reevid/subscriptions","organizations_url":"https://api.github.com/users/Reevid/orgs","repos_url":"https://api.github.com/users/Reevid/repos","events_url":"https://api.github.com/users/Reevid/events{/privacy}","received_events_url":"https://api.github.com/users/Reevid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-24T02:40:32Z","updated_at":"2018-04-24T02:51:39Z","closed_at":null,"author_association":"NONE","body":"I tring to build corert sample project in https://github.com/dotnet/corert/tree/master/samples/HelloWorld, but link error is occured\r\n\r\n```jerry@orange-Samsung-DeskTop-System:~/Downloads/Test/HelloWorld$ dotnet publish -r linux-x64 -c release\r\nMicrosoft (R) Build Engine version 15.6.84.34536 for .NET Core\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\n  Restoring packages for /home/jerry/Downloads/Test/HelloWorld/HelloWorld.csproj...\r\n  Generating MSBuild file /home/jerry/Downloads/Test/HelloWorld/obj/HelloWorld.csproj.nuget.g.targets.\r\n  Restore completed in 1.24 sec for /home/jerry/Downloads/Test/HelloWorld/HelloWorld.csproj.\r\n  HelloWorld -> /home/jerry/Downloads/Test/HelloWorld/bin/release/netcoreapp2.0/linux-x64/HelloWorld.dll\r\n  /usr/bin/clang-3.9\r\n  Generating native code\r\n  /usr/bin/ld: cannot find -lcurl\r\n  /usr/bin/ld: cannot find -lgssapi_krb5\r\nclang : error : linker command failed with exit code 1 (use -v to see invocation) [/home/jerry/Downloads/Test/HelloWorld/HelloWorld.csproj]\r\n/home/jerry/.nuget/packages/microsoft.dotnet.ilcompiler/1.0.0-alpha-26424-01/build/Microsoft.NETCore.Native.targets(219,5): error MSB3073: The command \"clang-3.9 \"obj/release/netcoreapp2.0/linux-x64/native/HelloWorld.o\" -o \"bin/release/netcoreapp2.0/linux-x64/native/HelloWorld\" /home/jerry/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-26424-01/sdk/libbootstrapper.a /home/jerry/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-26424-01/sdk/libRuntime.a /home/jerry/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-26424-01/sdk/libSystem.Private.CoreLib.Native.a /home/jerry/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-26424-01/framework/System.Native.a /home/jerry/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-26424-01/framework/System.Globalization.Native.a /home/jerry/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-26424-01/framework/System.IO.Compression.Native.a /home/jerry/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-26424-01/framework/System.Net.Http.Native.a /home/jerry/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-26424-01/framework/System.Net.Security.Native.a /home/jerry/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-26424-01/framework/System.Security.Cryptography.Native.OpenSsl.a -g -Wl,-rpath,'$ORIGIN' -pthread -lstdc++ -ldl -lm -lcurl -lz -lgssapi_krb5 -lrt\" exited with code 1. [/home/jerry/Downloads/Test/HelloWorld/HelloWorld.csproj]\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/corert/issues/comments/383786659","html_url":"https://github.com/dotnet/corert/issues/5742#issuecomment-383786659","issue_url":"https://api.github.com/repos/dotnet/corert/issues/5742","id":383786659,"user":{"login":"Reevid","id":4592433,"avatar_url":"https://avatars2.githubusercontent.com/u/4592433?v=4","gravatar_id":"","url":"https://api.github.com/users/Reevid","html_url":"https://github.com/Reevid","followers_url":"https://api.github.com/users/Reevid/followers","following_url":"https://api.github.com/users/Reevid/following{/other_user}","gists_url":"https://api.github.com/users/Reevid/gists{/gist_id}","starred_url":"https://api.github.com/users/Reevid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reevid/subscriptions","organizations_url":"https://api.github.com/users/Reevid/orgs","repos_url":"https://api.github.com/users/Reevid/repos","events_url":"https://api.github.com/users/Reevid/events{/privacy}","received_events_url":"https://api.github.com/users/Reevid/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T02:51:39Z","updated_at":"2018-04-24T02:51:39Z","author_association":"NONE","body":"add more information \r\n```jerry@orange-Samsung-DeskTop-System:~/Downloads/Test/HelloWorld$ dotnet publish -r linux-x64 -c release -v\r\nSystem.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index\r\n   at System.ThrowHelper.ThrowArgumentOutOfRange_IndexException()\r\n   at System.SZArrayHelper.get_Item[T](Int32 index)\r\n   at System.Linq.Enumerable.ElementAt[TSource](IEnumerable`1 source, Int32 index)\r\n   at Microsoft.DotNet.Cli.Telemetry.TelemetryFilter.LogVerbosityForAllTopLevelCommand(ICollection`1 result, ParseResult parseResult, String topLevelCommandName)\r\n   at Microsoft.DotNet.Cli.Telemetry.TelemetryFilter.Filter(Object objectToFilter)\r\n   at Microsoft.DotNet.Cli.Utils.TelemetryEventEntry.SendFiltered(Object o)\r\n   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)\r\n   at Microsoft.DotNet.Cli.Program.Main(String[] args)\r\n```"}}
{"actor":{"display_login":"Reevid"}}