How to compile CoreCLR (compilation problems)?

232 views Asked by At

I have a problem compiling CoreCLR on Linux (Linux Mint 64-bit). There is one error and two messages (Sorry for the translation from my language):

 -- Configuring incomplete, errors occurred!
  See also "/home/mdev/Desktop/runtime/artifacts/obj/coreclr/Linux.x64.Checked/CMakeFiles/CMakeOutput.log".
  See also "/home/mdev/Desktop/runtime/artifacts/obj/coreclr/Linux.x64.Checked/CMakeFiles/CMakeError.log".
  /home/mdev/Desktop/runtime/src/coreclr
  Executing cmake --build "/home/mdev/Desktop/runtime/artifacts/obj/coreclr/Linux.x64.Checked" --target install -- -j 4
  make: *** There are no rules to execute the object 'install'. Stop.
  Failed to build "CoreCLR component".
/home/mdev/Desktop/runtime/src/coreclr/runtime.proj(38,5): error MSB3073: Command „"/home/mdev/Desktop/runtime/src/coreclr/build-runtime.sh" -x64 -checked -os Linux” has been finished with error code 2.

Compilation WAS NOT SUCCESSFUL.

/home/mdev/Desktop/runtime/src/coreclr/runtime.proj(38,5): error MSB3073: Command „"/home/mdev/Desktop/runtime/src/coreclr/build-runtime.sh" -x64 -checked -os Linux” has been finished with error code 2.
    Warnings: 0
    Errors: 1

https://pastebin.com/tZ6rFDqC This is the output of build.sh from the official .NET Runtime repository How do I install these packages not found?

1

There are 1 answers

6
omajid On

This is the error message from your build log:

CMake Error at /home/mdev/Desktop/runtime/src/libraries/Native/Unix/System.Net.Security.Native/extra_libs.cmake:18 (message):
Cannot find libgssapi_krb5 and System.Net.Security.Native cannot build
without it.  Try installing libkrb5-dev (or the appropriate package for
your platform)

Can you install the kerberos development headers? The exact command will depend on your distro. For example, it's dnf install krb5-devel on Fedora.