Page MenuHomePhabricator

Unable to build with mono: Cannot find the msbuild executable
Closed, InvalidPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):
Cannot find the msbuild executable.

What happens?:
Unable to rebuild my mono libraries and executables.

What should have happened instead?:
Mono should be available and on the default path.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

Event Timeline

Hmmm. It is back now. Possibly a upgrade?

Aklapper renamed this task from Unable to build with mono to Unable to build with mono: Cannot find the msbuild executable.Jun 5 2022, 5:53 AM
Aklapper changed the task status from Open to Stalled.

Cannot find the msbuild executable.
Unable to rebuild my mono libraries and executables.

Where? Please provide context. Thanks!

Toolforge. tools-sgebastion-10.

mono is in /usr/bin/mono, and msbuild should be there too. Except that it is missing again. What is going on?

rmallett@tools-sgebastion-10:~$ which mono
/usr/bin/mono
rmallett@tools-sgebastion-10:~$ which msbuild
rmallett@tools-sgebastion-10:~$ uname
Linux
rmallett@tools-sgebastion-10:~$ uname -a
Linux tools-sgebastion-10 4.19.0-20-cloud-amd64 #1 SMP Debian 4.19.235-1 (2022-03-17) x86_64 GNU/Linux
rmallett@tools-sgebastion-10:~$ hostname
tools-sgebastion-10
rmallett@tools-sgebastion-10:~$ dnsdomainname
tools.eqiad1.wikimedia.cloud
rmallett@tools-sgebastion-10:~$

rmallett@tools-sgebastion-10:~/tool-milhistbot/mono$ xbuild AutoStub.csproj

xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<

I've never used xbuild before.

No. xbuild does not contain the libraries that I need. Cannot build with xbuild. Need to have mono restored.

My Bots are written with a C# API. Still working so long as mono is present, but changing them will be difficult. Can rtebuild on the Linux machine here, but no assurance that iut is running the same version of mono.

Hmmm

rmallett@tools-sgebastion-07:~$ mono --version
Mono JIT compiler version 5.12.0.226 (tarball Thu May 3 09:49:46 UTC 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: supported, not enabled.
GC: sgen (concurrent by default)
rmallett@tools-sgebastion-07:~$ which msbuild
/usr/bin/msbuild
rmallett@tools-sgebastion-07:~$

So everything is okay, and that is because I am on tools-sgebastion-07. msbuild id available, and the version of mono is good.

Normally I login with:

ssh rmallett@login-stretch.tools.wmflabs.org

So we seem to have more than one machine.

It looks like tools-sgebastion-10 is an obsolete server that needs to be decommissioned. How do you force it to login to a working server?

Okay. I have figured this out. Can close now.