Bug 42021 - Mkbundle : monosgen-2.0.dll fatal error LNK1107: invalid or corrupt file:cannot read at 0x2E8
Summary: Mkbundle : monosgen-2.0.dll fatal error LNK1107: invalid or corrupt file:cann...
Status: NEW
Alias: None
Product: Tools
Classification: Mono
Component: mkbundle ()
Version: 4.4.0 (C7)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-06-21 05:07 UTC by rocky
Modified: 2017-10-27 11:32 UTC (History)
4 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 for Bug 42021 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description rocky 2016-06-21 05:07:20 UTC
i'm using mkbundle with env :
windows7 x64, vs2013, cygwin

first time:
run command like : mkbundle --deps  source.exe -o test.exe 
that error info: can not find monosgen-2.0.dll from  c:\program files (x86)\mono\lib\.
and then i copy that file from c:\program files(x86\mono\bin to lib.
second time:
run command again: mkbundle --deps source.exe -o test.exe
and there was an warning:  cl: command line wwarning D9024:  An unrecognized source file type "temp.o", assuming that the target file.

and then i run third itme:
mkbundle --deps source.exe -oo test.obj -o test.exe
there was an fatal error: 

error message: 

mkbundle --deps testmkbundle.exe -oo ttt.obj -o ttt.exe
OS is: Windows
Sources: 1 Auto-dependencies: True
   embedding: C: \ Users \ Administrator \ Desktop \ test \ testmkbundle.exe
 config from: C: \ Users \ Administrator \ Desktop \ test \ testmkbundle.exe.config
   embedding: C: \ Program Files (x86) \ Mono \ lib \ mono \ 4.5 \ mscorlib.dll
AS = as (default)
as -o ttt.obj temp.s
Compiling:
CC = cl.exe (default)
WINSDK = C: \ Program Files (x86) \ Windows Kits \ 8.1 (default)
VSINCLUDE = C: \ Program Files (x86) \ Microsoft Visual Studio 12.0 \ VC (default)
MONOPREFIX = C: \ Program Files (x86) \ Mono (default)
cl.exe / I "C: \ Program Files (x86) \ Windows Kits \ 8.1 \ Include \ um" / I "C: \ Program Files (x86) \ Windows Kits \ 8.1 \ Include \ shared" / I "C: \ Program Files (x86) \ Microsoft Visual Studio 12.0 \ VC \ include "/ I" C: \ Program Files (x86) \ Mono \ include \ mono-2.0 "/ MD temp.c ttt.obj / link / DLL / LIBPATH : "C: \ Program Files (x86) \ Windows Kits \ 8.1 \ lib \ winv6.3 \ um \ x86" / LIBPATH: "C: \ Program Files (x86) \ Microsoft Visual Studio 12.0 \ VC \ lib" "C : \ Program Files (x86) \ Mono \ lib \ monosgen-2.0.dll "
For x86 Microsoft (R) C / C ++ Optimizing Compiler Version 18.00.40629 Copyright (C) Microsoft Corporation. all rights reserved.

temp.c
Microsoft (R) Incremental Linker Version 12.00.40629.0
Copyright (C) Microsoft Corporation. All rights reserved.

/out:temp.exe
/ DLL
"/ LIBPATH: C: \ Program Files (x86) \ Windows Kits \ 8.1 \ Lib \ winv6.3 \ um \ x86"
"/ LIBPATH: C: \ Program Files (x86) \ Microsoft Visual Studio 12.0 \ VC \ lib"
"C: \ Program Files (x86) \ Mono \ lib \ monosgen-2.0.dll"
temp.obj
ttt.obj
C: \ Program Files (x86) \ Mono \ lib \ monosgen-2.0.dll: fatal error LNK1107: invalid or corrupt file: can not read at 0x2E8
ERROR: [Fail] 2
Google 翻译(企业版):译者工具包网站翻译器全球商
Comment 1 Marek Safar 2017-10-27 11:32:03 UTC
Johan, is this still happening with your recent updates ?