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

Build failed on Linux Ubuntu #5

Open
jurajsomorovsky opened this issue May 13, 2016 · 3 comments
Open

Build failed on Linux Ubuntu #5

jurajsomorovsky opened this issue May 13, 2016 · 3 comments

Comments

@jurajsomorovsky
Copy link

As discussed...report:

Errors:

/home/juraj/programs/mitls-flex/VS/miTLS.sln (default targets) ->
(Build target) ->
/home/juraj/programs/mitls-flex/libs/DB/DB.fsproj (default targets) ->

/home/juraj/programs/mitls-flex/libs/DB/DB.fsproj: error : Target named 'Build' not found in the project.

/home/juraj/programs/mitls-flex/VS/miTLS.sln (default targets) ->
(Build target) ->
/home/juraj/programs/mitls-flex/libs/Platform/Platform.fsproj (default targets) ->

/home/juraj/programs/mitls-flex/libs/Platform/Platform.fsproj: error : Target named 'Build' not found in the project.

Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu4)

@pfasante
Copy link

pfasante commented Jul 8, 2016

did you install all of the prerequisites?
I'm also not able to install it on xubuntu-xenial, but I get another error (which is later in the make phase, I guess):

% make
xbuild /nologo /p:Configuration=Release VS/miTLS.sln

Build started 7/8/2016 9:57:27 AM.
[...]
Errors:

/home/asante/werkstatt/werkbank/mitls-flex/VS/miTLS.sln (default targets) ->
(Build target) ->
/home/asante/werkstatt/werkbank/mitls-flex/libs/OpenSSL/OpenSSL.csproj (default targets) ->
/usr/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->

CSC: error CS0518: The predefined type System.Object is not defined or imported
[...]
CSC: error CS0518: The predefined type System.Exception is not defined or imported

2 Warning(s)
31 Error(s)

Time Elapsed 00:00:07.0791400
Makefile:26: recipe for target 'build' failed

Haven't yet found out, what I am missing, the complete make output is: make-log.txt.
What I've done:

  • git clone [email protected]:mitls/mitls-flex.git
  • sudo apt install mono-complete mono-xbuild fsharp nuget
  • cd mitls-flex/VS && nuget restore && cd ..
  • make

@markulf
Copy link

markulf commented Jul 8, 2016

Is it related to differing runtime versions. Have a look at

http://stackoverflow.com/questions/10490155/unable-to-run-net-app-with-mono-mscorlib-dll-not-found-version-mismatch
http://superuser.com/questions/743863/debian-unable-to-use-mono-missing-mscorlib-dll?

This may fix the immediate problem, but won't be a long-term solution. We should adapt the README.

@pfasante
Copy link

pfasante commented Jul 8, 2016

that's right. adding /p:TargetFrameworkVersion="v4.5" to the build variable in the Makefile fixed it for me (based on this so answer: https://stackoverflow.com/questions/27594393/compiled-mono-missing-default-net-libraries-system-object-is-not-defined-or-i/27855445#27855445 ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants