DotNet Core Source Build Questions

Russell Haley russ.haley at gmail.com
Wed Sep 20 05:07:25 UTC 2017


Hey Tomas,

coreclr native parts built first time for me. I am trying to build the
dotnet fx native parts and I'm still stalled out on Linux emulation
errors. I have a question in the TrueOS forums and will poke around:
https://discourse.trueos.org/t/executing-64-bit-linux-binaries/703/2

Here is my build output:

russellh at prescott:/storage/russellh/Git/corefx% ./build.sh native
-clang=clang3.9
Unsupported OS 'FreeBSD' detected. Downloading linux-x64 tools.
Installing dotnet cli...
Restoring BuildTools version 2.0.0-prerelease-01931-01...
ELF interpreter /lib64/ld-linux-x86-64.so.2 not found, error 2
/storage/russellh/Git/corefx/init-tools.sh: line 142: 39789 Abort trap
             $__DOTNET_CMD restore "$__INIT_TOOLS_RESTORE_PROJECT"
--no-cache --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE
/p:BuildToolsPackageVersion=$__BUILD_TOOLS_PACKAGE_VERSION >>
$__init_tools_log
ERROR: Could not restore build tools correctly.
Please check the detailed log that follows.
Running: /storage/russellh/Git/corefx/init-tools.sh
Installing 'https://dotnetcli.azureedge.net/dotnet/Sdk/2.0.0-preview1-005977/dotnet-dev-linux-x64.2.0.0-preview1-005977.tar.gz'
to '/storage/russellh/Git/corefx/Tools/dotnetcli/dotnet.tar'
Running: /storage/russellh/Git/corefx/Tools/dotnetcli/dotnet restore
"/storage/russellh/Git/corefx/init-tools.msbuild" --no-cache
--packages /storage/russellh/Git/corefx/packages --source
https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json
/p:BuildToolsPackageVersion=2.0.0-prerelease-01931-01
Initializing BuildTools...
chmod: /storage/russellh/Git/corefx/packages/microsoft.dotnet.buildtools/2.0.0-prerelease-01931-01/lib/init-tools.sh:
No such file or directory
/storage/russellh/Git/corefx/init-tools.sh: line 121:
/storage/russellh/Git/corefx/packages/microsoft.dotnet.buildtools/2.0.0-prerelease-01931-01/lib/init-tools.sh:
No such file or directory
ERROR: An error occurred when trying to initialize the tools.
Please check the detailed log that follows.
Running: /storage/russellh/Git/corefx/init-tools.sh
Installing 'https://dotnetcli.azureedge.net/dotnet/Sdk/2.0.0-preview1-005977/dotnet-dev-linux-x64.2.0.0-preview1-005977.tar.gz'
to '/storage/russellh/Git/corefx/Tools/dotnetcli/dotnet.tar'
Running: /storage/russellh/Git/corefx/Tools/dotnetcli/dotnet restore
"/storage/russellh/Git/corefx/init-tools.msbuild" --no-cache
--packages /storage/russellh/Git/corefx/packages --source
https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json
/p:BuildToolsPackageVersion=2.0.0-prerelease-01931-01
Running: /storage/russellh/Git/corefx/packages/microsoft.dotnet.buildtools/2.0.0-prerelease-01931-01/lib/init-tools.sh
/storage/russellh/Git/corefx
/storage/russellh/Git/corefx/Tools/dotnetcli/dotnet
/storage/russellh/Git/corefx/Tools
russellh at prescott:/storage/russellh/Git/corefx%


I tried building the mscorelib in monodevelop (and also tried xbuild)
but got the following error:

Error: /storage/russellh/Git/coreclr/src/mscorlib/System.Private.CoreLib.csproj:
/storage/russellh/Git/coreclr/dir.targets: Project file could not be
imported, it was being imported by
/storage/russellh/Git/coreclr/src/mscorlib/System.Private.CoreLib.csproj:
/storage/russellh/Git/coreclr/dir.targets could not import
"$(ToolsDir)/Build.Common.targets" (System.Private.CoreLib)x

A quick search showed something about wrong framework version. I
wonder if I should ping off the Xamarina/Mono team?

Russ


More information about the freebsd-mono mailing list