Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build using Cake #2048

Closed
politas opened this issue May 15, 2017 · 2 comments
Closed

Can't build using Cake #2048

politas opened this issue May 15, 2017 · 2 comments

Comments

@politas
Copy link
Member

politas commented May 15, 2017

Trying to build on Linux, I get this message early in the build process:

========================================
Build-DotNet
========================================

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

And then the Repack fails:

========================================
Repack-Ckan
========================================
INFO: IL Repack - Version 2.0.12
INFO: Target platform directory resolved to /usr/lib/mono/4.0
INFO: Adding assembly for merge: /mnt/raid/Repositories/monodevelop/CKAN/_build/out/CmdLine/Debug/bin/CmdLine.exe
INFO: Failed to load debug information for /mnt/raid/Repositories/monodevelop/CKAN/_build/out/CmdLine/Debug/bin/CmdLine.exe
INFO: Adding assembly for merge: /mnt/raid/Repositories/monodevelop/CKAN/_build/out/CmdLine/Debug/bin/Autofac.dll
INFO: Adding assembly for merge: /mnt/raid/Repositories/monodevelop/CKAN/_build/out/CmdLine/Debug/bin/CKAN.dll
INFO: Failed to load debug information for /mnt/raid/Repositories/monodevelop/CKAN/_build/out/CmdLine/Debug/bin/CKAN.dll
INFO: Adding assembly for merge: /mnt/raid/Repositories/monodevelop/CKAN/_build/out/CmdLine/Debug/bin/ChinhDo.Transactions.dll
INFO: Adding assembly for merge: /mnt/raid/Repositories/monodevelop/CKAN/_build/out/CmdLine/Debug/bin/CommandLine.dll
INFO: Adding assembly for merge: /mnt/raid/Repositories/monodevelop/CKAN/_build/out/CmdLine/Debug/bin/CurlSharp.dll
INFO: Adding assembly for merge: /mnt/raid/Repositories/monodevelop/CKAN/_build/out/CmdLine/Debug/bin/ICSharpCode.SharpZipLib.dll
INFO: Adding assembly for merge: /mnt/raid/Repositories/monodevelop/CKAN/_build/out/CmdLine/Debug/bin/INIFileParser.dll
INFO: Adding assembly for merge: /mnt/raid/Repositories/monodevelop/CKAN/_build/out/CmdLine/Debug/bin/Newtonsoft.Json.dll
INFO: Adding assembly for merge: /mnt/raid/Repositories/monodevelop/CKAN/_build/out/CmdLine/Debug/bin/log4net.dll
INFO: Adding assembly for merge: /mnt/raid/Repositories/monodevelop/CKAN/_build/out/CmdLine/Debug/bin/CKAN-GUI.exe
INFO: Failed to load debug information for /mnt/raid/Repositories/monodevelop/CKAN/_build/out/CmdLine/Debug/bin/CKAN-GUI.exe
WARN: Duplicate Win32 resource with id=0, parents=[3,1], name= in assembly CKAN-GUI, Version=1.22.0.0, Culture=neutral, PublicKeyToken=null, ignoring
WARN: Duplicate Win32 resource with id=0, parents=[3,2], name= in assembly CKAN-GUI, Version=1.22.0.0, Culture=neutral, PublicKeyToken=null, ignoring
WARN: Duplicate Win32 resource with id=0, parents=[3,3], name= in assembly CKAN-GUI, Version=1.22.0.0, Culture=neutral, PublicKeyToken=null, ignoring
WARN: Duplicate Win32 resource with id=0, parents=[3,4], name= in assembly CKAN-GUI, Version=1.22.0.0, Culture=neutral, PublicKeyToken=null, ignoring
WARN: Duplicate Win32 resource with id=0, parents=[3,5], name= in assembly CKAN-GUI, Version=1.22.0.0, Culture=neutral, PublicKeyToken=null, ignoring
WARN: Duplicate Win32 resource with id=0, parents=[3,6], name= in assembly CKAN-GUI, Version=1.22.0.0, Culture=neutral, PublicKeyToken=null, ignoring
WARN: Duplicate Win32 resource with id=0, parents=[3,7], name= in assembly CKAN-GUI, Version=1.22.0.0, Culture=neutral, PublicKeyToken=null, ignoring
WARN: Duplicate Win32 resource with id=0, parents=[14,32512], name= in assembly CKAN-GUI, Version=1.22.0.0, Culture=neutral, PublicKeyToken=null, ignoring
WARN: Duplicate Win32 resource with id=0, parents=[24,1], name= in assembly CKAN-GUI, Version=1.22.0.0, Culture=neutral, PublicKeyToken=null, ignoring
INFO: Processing references
INFO: Processing types
INFO: Merging <Module>
INFO: Merging <Module>
INFO: Renaming <>f__AnonymousType0`2 into <4806e92e-843f-4379-95a6-dbb6225ce8a7><>f__AnonymousType0`2
INFO: Merging <Module>
INFO: Renaming <PrivateImplementationDetails> into <2b2ef58d-79ea-40d8-958e-401530b32794><PrivateImplementationDetails>
INFO: Merging <Module>
INFO: Merging <Module>
INFO: Merging <Module>
INFO: Merging <Module>
INFO: Merging <Module>
INFO: Merging <Module>
INFO: Renaming <PrivateImplementationDetails> into <daf1b46e-f1b3-47cf-8b97-a9c9e63b61cd><PrivateImplementationDetails>
INFO: Merging <Module>
INFO: Merging <Module>
INFO: Processing types
INFO: Processing resources
WARN: [System.Runtime.CompilerServices.CompilationRelaxationsAttribute] attribute wasn't merged because of inconsistency across merged assemblies
INFO: Fixing references
System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/tmp/tmp7cc9377d.tmp', CommandLine='-r -p:/mnt/raid/Repositories/monodevelop/CKAN/_build/out/CmdLine/Debug/bin/CmdLine.pdb -s:srcsrv', CurrentDirectory='', Native error= Access denied
  at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <76fe267e1bf64ad1a7865d07a5edd3f0>:0 
  at System.Diagnostics.Process.Start () [0x0003a] in <76fe267e1bf64ad1a7865d07a5edd3f0>:0 
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
  at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x0001b] in <76fe267e1bf64ad1a7865d07a5edd3f0>:0 
  at ILRepacking.Steps.SourceServerData.PdbStr.Execute (System.String arguments) [0x0002d] in <b2eacf7d68f042b0849ffe35ef7f670c>:0 
  at ILRepacking.Steps.SourceServerData.PdbStr.Read (System.String pdb) [0x0000c] in <b2eacf7d68f042b0849ffe35ef7f670c>:0 
  at System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].ToArray () [0x0002b] in <c716d84e34fc4c408a98d9a0c1024723>:0 
  at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <c716d84e34fc4c408a98d9a0c1024723>:0 
  at ILRepacking.Steps.SourceServerData.SourceServerDataRepackStep.Perform () [0x0003e] in <b2eacf7d68f042b0849ffe35ef7f670c>:0 
  at ILRepacking.ILRepack.Repack () [0x002dd] in <b2eacf7d68f042b0849ffe35ef7f670c>:0 
  at ILRepacking.Application.Main (System.String[] args) [0x0004a] in <b2eacf7d68f042b0849ffe35ef7f670c>:0 
An error occurred when executing task 'Repack-Ckan'.

Seriously hoping @dbent has some time to look at this.

@dbent
Copy link
Member

dbent commented May 15, 2017

xbuild being deprecated is just a warning since Mono 5 now ships with the open source msbuild which is the same tool used on Windows. Cake will have to update its DotNetBuild task to check if msbuild is available on Mono installations and use that in preference to xbuild, if an issue for that doesn't already exist I'll probably create one later today, but for now this is safe to ignore.

The second issue seems to be specific to ILRepack 2.0.12 on Mono 5 and is resolved for me locally by using ILRepack 2.0.13. I'll have a PR in a bit which bumps the version.

@dbent dbent mentioned this issue May 15, 2017
@dbent
Copy link
Member

dbent commented May 15, 2017

Fixed in #2049

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants