. NET cross-platform: compiling CORECLR/COREFX/DNX on Linux ubuntu (20150617)

Source: Internet
Author: User
Tags stack trace

Compile time: Beijing June 17, 2015 morning

Operating system: Ubuntu 14.04.2 LTS

Mono version: Mono JIT compiler version 4.3.0 (MASTER/3445AC5 Tue June 20:43:48 CST 2015)

First, compile CoreCLR

Success!

Repo successfully built. Product binaries is available at/data/git/coreclr/bin/product/linux.x64.debug

Second, compiling Corefx

Failed! 15,231 errors, the compilation results are as follows:

/data/git/corefx/bin/obj/linux.anycpu.debug/microsoft.csharp/_assemblyinfo.cs (3,11): Error cs0246:the type or namespace name ' Assemblytitle ' could not being found (is you missing a using directive or an assembly reference?) [/data/git/corefx/src/microsoft.csharp/src/microsoft.csharp.csproj]/data/git/corefx/bin/obj/linux.anycpu.debug /microsoft.csharp/_assemblyinfo.cs (4,11): Error cs0246:the Type or namespace name ' Assemblydescription ' could not being foun D (is missing a using directive or an assembly reference?) [/data/git/corefx/src/microsoft.csharp/src/microsoft.csharp.csproj] ...  System/numerics/vector_operations.cs (112,10): Error cs0246:the Type or namespace name ' MethodImplAttribute ' could not being Found (is missing a using directive or an assembly reference?) [/data/git/corefx/src/system.numerics.vectors/src/system.numerics.vectors.csproj] System/numerics/vector_operations.cs (112,30): Error cs0518:predefined type ' System.Object ' is not defined or imported [/ Data/git/corefx/src/system.numerics.vectors/src/system.numerics.vectors.csproj]system/numerics/vector_operations.cs (112,30): Error Cs0103:the name ' methodimploptions ' does not exist in the current context [/data/git/corefx/src/system.numerics.vectors/ Src/system.numerics.vectors.csproj]16 Warning (s) 15231 Error (s) time Elapsed 00:04:12.30build Exit Code = 1

The problem did not find a workaround, issue was submitted on GitHub: #2073.

Third, compiling DNX

Failed!

The 1th error of the first build:

Determining latest Versionlatest version is 1.0.0-beta6-12082downloading dnx-mono.1.0.0-beta6-12082 from https:// Www.myget.org/F/aspnetvnext/api/v2Installing TO/ROOT/.DNX/RUNTIMES/DNX-MONO.1.0.0-BETA6-12082DNVM needs unzip to Proceed.

1th error of Build again:

dnx-mono.1.0.0-beta6-12082 already installed. Cannot find dnx-mono.1.0.0-beta6-12082, does need to run ' DNVM install 1.0.0-beta6-12082 '?

This error is due to the fact that there is no unzip installed on Ubuntu and the following command solves the problem:

Apt-get Unzip-U

The next compilation error did not find a workaround:

Warn:dynamic View compilation Failed./tmp/6dc38ab7770645d48e9ae31c479dec2c-1.cs (10953,13): Error cs0103:the name ' IsBuildV2 ' does not exist in the current Context/tmp/6dc38ab7770645d48e9ae31c479dec2c-1.cs (10955,15): Error cs0103:the N Ame ' Dnupack ' does not exist in the current Context/tmp/6dc38ab7770645d48e9ae31c479dec2c-1.cs (10961,17): Error cs0103:th E name ' Dnupack ' does not exist in the current Context...verbose:stack trace:at Spark.Compiler.BatchCompiler.Compile ( Boolean Debug, System.String languageorextension, system.string[] sourcecode) &LT;0X41536F50 + 0x010ae> in < FileName unknown>:0 at Spark.Compiler.CSharp.CSharpViewCompiler.CompileView (IEnumerable ' 1 viewtemplates, IEnumerable ' 1 allresources) <0x4152fc40 + 0x0009b> in <filename unknown>:0 at Spark.SparkViewEngine.CreateE Ntryinternal (spark.sparkviewdescriptor descriptor, Boolean compile) <0x4150b670 + 0x002a0> in <filename unknown>:0 at Spark.SparkViewEngine.CreateEntry (Spark.Sparkviewdescriptor descriptor) <0x4150b370 + 0x0005a> in <filename unknown>:0 at Spark.SparkViewEngine.Cre Ateinstance (Spark.sparkviewdescriptor Descriptor) <0x4150b330 + 0x00019> in <filename unknown>:0 at Sake.En Gine. Loader.DefaultLoader.Load (Sake.Engine.Options Options) <0x414f3580 + 0x004b0> in <filename unknown>:0 at Sa Ke. Engine.SakeEngine.Execute (Sake.Engine.Options Options) <0x414f2f10 + 0x002e1> in <filename unknown>:0 at Sa Ke. Engine.SakeEngine.Execute (system.string[] args) <0x414c5fd0 + 0x00047> in <filename unknown>:0 at Sake.prog Ram.  Main (system.string[] args) <0x414a8d80 + 0x000f7> in <filename unknown>:0

Issue was submitted on GitHub: #2080.

. NET cross-platform: compiling CORECLR/COREFX/DNX on Linux ubuntu (20150617)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.