Building SharpKit on linux does fail

43 views
Skip to first unread message

voisp...@gmail.com

unread,
Aug 14, 2015, 4:21:51 AM8/14/15
to SharpKit Support
Hi, I am trying to build SharpKit on linux, using the commands:

git clone https://github.com/SharpKit/SharpKit.git
cd SharpKit
chmod +x configure
./configure
make

And it does fail with:

Build started 8/14/2015 11:13:29 AM.
__________________________________________________
Project "/home/peeter/Install/SharpKit/external/SharpZipLib/src/ICSharpCode.SharpZLib.csproj" (default target(s)):
    Target PrepareForBuild:
        Configuration: Release Platform: AnyCPU
        Created directory "../bin/"
        Created directory "obj/Release/"
    Target GenerateSatelliteAssemblies:
    No input files were specified for target GenerateSatelliteAssemblies, skipping.
    Target CoreCompile:
        Tool /usr/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /debug- /optimize+ /out:obj/Release/ICSharpCode.SharpZipLib.dll Core/WindowsPathUtils.cs Encryption/ZipAESStream.cs Encryption/ZipAESTransform.cs Main.cs AssemblyInfo.cs Checksums/IChecksum.cs Checksums/Adler32.cs Checksums/Crc32.cs Zip/WindowsNameTransform.cs Zip/ZipEntry.cs Zip/ZipInputStream.cs Zip/ZipOutputStream.cs Zip/ZipConstants.cs Zip/ZipFile.cs GZip/GzipOutputStream.cs GZip/GzipInputStream.cs GZip/GZipConstants.cs Zip/ZipException.cs BZip2/BZip2InputStream.cs BZip2/BZip2OutputStream.cs BZip2/BZip2Constants.cs BZip2/BZip2.cs Checksums/StrangeCrc.cs Tar/TarEntry.cs Tar/TarHeader.cs Tar/TarBuffer.cs Tar/TarOutputStream.cs Tar/InvalidHeaderException.cs Tar/TarInputStream.cs Tar/TarArchive.cs Zip/Compression/PendingBuffer.cs Zip/Compression/InflaterDynHeader.cs Zip/Compression/InflaterHuffmanTree.cs Zip/Compression/DeflaterPending.cs Zip/Compression/DeflaterHuffman.cs Zip/Compression/DeflaterEngine.cs Zip/Compression/Inflater.cs Zip/Compression/DeflaterConstants.cs Zip/Compression/Deflater.cs Zip/Compression/Streams/DeflaterOutputStream.cs Zip/Compression/Streams/InflaterInputStream.cs Zip/Compression/Streams/StreamManipulator.cs Zip/Compression/Streams/OutputWindow.cs SharpZipBaseException.cs Tar/TarException.cs GZip/GZipException.cs BZip2/BZip2Exception.cs Core/NameFilter.cs Zip/FastZip.cs Core/FileSystemScanner.cs Core/PathFilter.cs Core/INameTransform.cs Zip/ZipNameTransform.cs Encryption/PkzipClassic.cs Core/IScanFilter.cs Zip/ZipHelperStream.cs Zip/ZipExtraData.cs Core/StreamUtils.cs Zip/ZipEntryFactory.cs Zip/IEntryFactory.cs obj/Release/.NETFramework,Version=v4.0.AssemblyAttribute.cs /target:library /warnaserror- /unsafe- /checked- /doc:../bin/ICSharpCode.SharpZipLib.xml /nostdlib /platform:AnyCPU /reference:/usr/lib/mono/4.0/System.dll /reference:/usr/lib/mono/4.0/System.Core.dll /reference:/usr/lib/mono/4.0/mscorlib.dll /warn:4
CSC: error CS2001: Source file `Checksums/Crc32.cs' could not be found
CSC: error CS2001: Source file `GZip/GZipConstants.cs' could not be found
CSC: error CS2001: Source file `Checksums/StrangeCrc.cs' could not be found
    Task "Csc" execution -- FAILED
    Done building target "CoreCompile" in project "/home/peeter/Install/SharpKit/external/SharpZipLib/src/ICSharpCode.SharpZLib.csproj".-- FAILED
Done building project "/home/peeter/Install/SharpKit/external/SharpZipLib/src/ICSharpCode.SharpZLib.csproj".-- FAILED

Build FAILED.
Errors:

/home/peeter/Install/SharpKit/external/SharpZipLib/src/ICSharpCode.SharpZLib.csproj (default targets) ->
/usr/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->

    CSC: error CS2001: Source file `Checksums/Crc32.cs' could not be found
    CSC: error CS2001: Source file `GZip/GZipConstants.cs' could not be found
    CSC: error CS2001: Source file `Checksums/StrangeCrc.cs' could not be found

     0 Warning(s)
     3 Error(s)

----

The installed mono version is:

  mono-core.x86_64 0:4.0.3.20-0.xamarin.4                                      
  ... and others.

I am not very familiar with the mono system, and see that it does not find the files that do exist under external/ tree.

Any ideas how to get the compilation running is welcome.

Peter Hultqvist

unread,
Aug 14, 2015, 4:42:45 AM8/14/15
to shar...@googlegroups.com, voisp...@gmail.com
Just a guess, have you also pulled submodules?

Either you can do this from start

    git clone --recursive https://github.com/SharpKit/SharpKit.git

or once cloned you can do

    git submodule update --init --recursive
> --
> You received this message because you are subscribed to the Google Groups "SharpKit Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sharpkit+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

voisp...@gmail.com

unread,
Aug 14, 2015, 4:48:12 AM8/14/15
to SharpKit Support, voisp...@gmail.com
Ok, these errors are because of some upper case letters are wrong of the file names:

[peeter@localhost SharpKit]$ cd ./external/SharpZipLib/src/Checksums/
[peeter@localhost Checksums]$ ls
Adler32.cs  CRC32.cs  IChecksum.cs  StrangeCRC.cs
[peeter@localhost Checksums]$ mv CRC32.cs Crc32.cs
[peeter@localhost Checksums]$ ls
Adler32.cs  Crc32.cs  IChecksum.cs  StrangeCRC.cs
[peeter@localhost Checksums]$ cd ../GZip/
[peeter@localhost GZip]$ ls
GZIPConstants.cs  GZipException.cs  GzipInputStream.cs  GzipOutputStream.cs
[peeter@localhost GZip]$ mv GZIPConstants.cs GZipConstants.cs
[peeter@localhost GZip]$ cd ../Checksums/
[peeter@localhost Checksums]$ ls
Adler32.cs  Crc32.cs  IChecksum.cs  StrangeCRC.cs
[peeter@localhost Checksums]$ mv StrangeCRC.cs StrangeCrc.cs

Peeter Vois

unread,
Sep 8, 2015, 2:30:37 AM9/8/15
to Peter Hultqvist, shar...@googlegroups.com, voisp...@gmail.com
Hi,

thanks for the feedback. I tried a seconds ago with new clone --recursive, then configure and make. Still fails and I've got the point now: the Unix system does handle ohnestly big and small letters and windows is making backwards compatibility tricks.The files do exist but are searched with different capital letters:

[peeter@localhost SharpKit]$ find . -iname "crc32.cs"
./external/SharpZipLib/src/Checksums/CRC32.cs

On windows "CRC32.cs" == "Crc32.cs" on Linux it does not. Windows treats these file names equal because in Crc32.cs the first letter is capital letter.

And the compiler error:


    Target CoreCompile:
        Tool /usr/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /debug- /optimize+ /out:obj/Release/ICSharpCode.SharpZipLib.dll Core/WindowsPathUtils.cs
... snip ..
 Zip/IEntryFactory.cs /target:library /warnaserror- /unsafe- /checked- /doc:../bin/ICSharpCode.SharpZipLib.xml /nostdlib /platform:AnyCPU /reference:/usr/lib/mono/4.0/System.dll /reference:/usr/lib/mono/4.0/System.Core.dll /reference:/usr/lib/mono/4.0/mscorlib.dll /warn:4

CSC: error CS2001: Source file `Checksums/Crc32.cs' could not be found
CSC: error CS2001: Source file `GZip/GZipConstants.cs' could not be found
CSC: error CS2001: Source file `Checksums/StrangeCrc.cs' could not be found
    Task "Csc" execution -- FAILED
    Done building target "CoreCompile" in project "/home/peeter/Projektid/sharpkit/SharpKit/external/SharpZipLib/src/ICSharpCode.SharpZLib.csproj".-- FAILED
Done building project "/home/peeter/Projektid/sharpkit/SharpKit/external/SharpZipLib/src/ICSharpCode.SharpZLib.csproj".-- FAILED

Build FAILED.
Errors:

/home/peeter/Projektid/sharpkit/SharpKit/external/SharpZipLib/src/ICSharpCode.SharpZLib.csproj (default targets) ->

/usr/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->

    CSC: error CS2001: Source file `Checksums/Crc32.cs' could not be found
    CSC: error CS2001: Source file `GZip/GZipConstants.cs' could not be found
    CSC: error CS2001: Source file `Checksums/StrangeCrc.cs' could not be found

     0 Warning(s)
     3 Error(s)


Lugupidamisega >> Best regards >> Mit freundlichen Grüßen >> Saludos
  /\  Peeter Vois <tau...@tauria.ee>
 /  \ tel: +372 55611689
 \||\ Tauria OÜ   <http://www.tauria.ee>
 \||\ juhatuse liige / board member
  ||  http://lnkd.in/bVwZg_J

eric....@gmail.com

unread,
Jan 26, 2016, 12:58:44 AM1/26/16
to SharpKit Support, hult...@silentorbit.com, voisp...@gmail.com, pee...@tauria.ee
I'm still getting similar issues having checked out a few minutes ago.
I did the recursive checkout as specified here, followed the instructions on the main github page, and am getting the following error:
 Error executing tool '/usr/bin/dmcs': ApplicationName='/usr/bin/dmcs', CommandLine='/noconfig @/tmp/tmpc2e50ad.tmp', CurrentDirectory='/home/syco/SharpKit/external/NRefactory/ICSharpCode.NRefactory'
                        Task "Csc" execution -- FAILED

Lugupidamisega >> Best regards >> Mit freundlichen Grüßen >> Saludos
  /\  Peeter Vois <ta...@tauria.ee>
make.txt
Reply all
Reply to author
Forward
0 new messages