Bug 36267 - mkbundle [ERROR] FATAL UNHANDLED EXCEPTION: System.ComponentModel.Win32Exception:
Summary: mkbundle [ERROR] FATAL UNHANDLED EXCEPTION: System.ComponentModel.Win32Except...
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: Tools ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Alexis Christoforides
URL:
Depends on:
Blocks:
 
Reported: 2015-11-25 19:09 UTC by pr0vieh
Modified: 2015-12-22 22:01 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description pr0vieh 2015-11-25 19:09:05 UTC
Mono JIT compiler version 4.3.0 (master/d4828b4 Do 26. Nov 00:50:20 CET 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  x86
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen

....

OS is: Linux
Note that statically linking the LGPL Mono runtime has more licensing restrictions than dynamically linking.
See http://www.mono-project.com/Licensing for details on licensing.
WARNING:
  Check that the machine.config file you are bundling
  doesn't contain sensitive information specific to this machine.
Sources: 15 Auto-dependencies: True
   embedding: /usr/local/lib/mono/4.5/mscorlib.dll
   embedding: /usr/local/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
   embedding: /usr/local/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll
   embedding: /usr/local/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
   embedding: /usr/local/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll
   embedding: /usr/local/lib/mono/gac/System.Security/4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
   embedding: /usr/local/lib/mono/gac/System.Data/4.0.0.0__b77a5c561934e089/System.Data.dll
   embedding: /usr/local/lib/mono/gac/System.Numerics/4.0.0.0__b77a5c561934e089/System.Numerics.dll
   embedding: /usr/local/lib/mono/gac/System.Transactions/4.0.0.0__b77a5c561934e089/System.Transactions.dll
   embedding: /usr/local/lib/mono/gac/Mono.Data.Tds/4.0.0.0__0738eb9f132ed756/Mono.Data.Tds.dll
   embedding: /usr/local/lib/mono/gac/System.EnterpriseServices/4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
   embedding: /usr/local/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll
   embedding: /usr/local/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll
   embedding: /usr/local/lib/mono/gac/System.Design/4.0.0.0__b03f5f7f11d50a3a/System.Design.dll
   embedding: /usr/local/lib/mono/gac/System.Windows.Forms/4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
   embedding: /usr/local/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
   embedding: /usr/local/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/Mono.WebBrowser.dll
   embedding: /usr/local/lib/mono/gac/System.Runtime.Serialization.Formatters.Soap/4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll
   embedding: /usr/local/lib/mono/gac/Accessibility/4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
   embedding: /usr/local/lib/mono/gac/System.Web/4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
   embedding: /usr/local/lib/mono/gac/System.Web.ApplicationServices/4.0.0.0__31bf3856ad364e35/System.Web.ApplicationServices.dll
   embedding: /usr/local/lib/mono/gac/System.Web.Services/4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
   embedding: /usr/local/lib/mono/gac/System.DirectoryServices/4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll
   embedding: /usr/local/lib/mono/gac/Novell.Directory.Ldap/4.0.0.0__0738eb9f132ed756/Novell.Directory.Ldap.dll
   embedding: /usr/local/lib/mono/gac/Mono.Data.Sqlite/4.0.0.0__0738eb9f132ed756/Mono.Data.Sqlite.dll
   embedding: /usr/local/lib/mono/gac/System.ComponentModel.DataAnnotations/4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
   embedding: /usr/local/lib/mono/4.5/I18N.CJK.dll
   embedding: /usr/local/lib/mono/4.5/I18N.dll
   embedding: /usr/local/lib/mono/4.5/I18N.MidEast.dll
   embedding: /usr/local/lib/mono/4.5/I18N.Other.dll
   embedding: /usr/local/lib/mono/4.5/I18N.Rare.dll
   embedding: /usr/local/lib/mono/4.5/I18N.West.dll
System config from: /usr/local/etc/mono/config
Machine config from: /usr/local/etc/mono/4.5/machine.config
Compiling:
AS = as (default)
as -o temp.o temp.s 
as -o temp.o temp.s 

Unhandled Exception:
System.ComponentModel.Win32Exception: ApplicationName='cmd', CommandLine='/c "as -o temp.o temp.s "', CurrentDirectory='', Native error= Cannot find the specified file
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) <0xb707bf88 + 0x00553> in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ComponentModel.Win32Exception: ApplicationName='cmd', CommandLine='/c "as -o temp.o temp.s "', CurrentDirectory='', Native error= Cannot find the specified file
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) <0xb707bf88 + 0x00553> in <filename unknown>:0
Comment 1 Rodrigo Kumpera 2015-11-27 17:28:07 UTC
Your  system doesn't have the "as" binary on its path.
Comment 2 pr0vieh 2015-11-27 18:48:39 UTC
ok and why ?

I used my bundle script for years...

after https://github.com/mono/mono/commit/fb0e53431985e3a1b5e4f73ca8b55777d1a9d509

is not working :/

what I need to change? set a new ENV_VAR ?
Comment 3 pr0vieh 2015-11-27 19:45:27 UTC
Btw. My OS is Linux
Comment 4 Rodrigo Kumpera 2015-11-28 15:43:34 UTC
Hey Alexis,

Looks like your change broke linux.

It's worth checking if you didn't break OSX too.
Comment 6 Rolf Bjarne Kvinge [MSFT] 2015-12-10 10:00:28 UTC
This breaks the maccore build as well.

This looks suspicious: https://github.com/mono/mono/blob/fb0e53431985e3a1b5e4f73ca8b55777d1a9d509/mcs/tools/mkbundle/mkbundle.cs#L470-L472 - it's saying it's compiling just after returning if only compiling.
Comment 7 pr0vieh 2015-12-22 22:01:18 UTC
ok for me all working fine

i think this Bug can closed