fslaborg / Deedle

Easy to use .NET library for data and time series manipulation and for scientific programming
http://fslab.org/Deedle/
BSD 2-Clause "Simplified" License
939 stars 197 forks source link

NuGet package not supported on Xamarin Android #274

Closed mz2 closed 9 years ago

mz2 commented 10 years ago

Getting this when attempting to use the current version of Deedle in a Xamarin Android project:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Warning: System.ArgumentOutOfRangeException: Non-negative number required.
Parameter name: srcOffset
  at System.Buffer.BlockCopy (System.Array src, Int32 srcOffset, System.Array dst, Int32 dstOffset, Int32 count) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.PE.Image.GetDebugHeader (System.Byte[]& header) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ModuleDefinition.GetDebugHeader (System.Byte[]& header) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ModuleDefinition.ProcessDebugHeader () [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ModuleDefinition.ReadSymbols (ISymbolReader reader) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ModuleReader.ReadSymbols (Mono.Cecil.ModuleDefinition module, Mono.Cecil.ReaderParameters parameters) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ModuleReader.CreateModuleFrom (Mono.Cecil.PE.Image image, Mono.Cecil.ReaderParameters parameters) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ModuleDefinition.ReadModule (System.IO.Stream stream, Mono.Cecil.ReaderParameters parameters) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.AssemblyDefinition.ReadAssembly (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00000] in <filename unknown>:0 
  at Xamarin.Android.Tuner.DirectoryAssemblyResolver.ReadAssembly (System.String file) [0x00000] in <filename unknown>:0  (TypingMagic)

Deedle appears to build and run happily on Android if built from source.

adamklein commented 10 years ago

Interesting.

@tpetricek Along these lines, I was at F# conference last week with my Macbook and finally tried to install / test Deedle on OS X (via ./build.sh AllCore), having just installed Xamarin Studio. But it failed on about 20 tests. Was there anything additional you did for Travis CI setup?

I see

$ export EnableNuGetPackageRestore=true
$ export MONO_VERSION="3.2.5"

Could it be that Xamarin is currently on a different, incompatible Mono version?

dsyme commented 10 years ago

I submitted a test pull request to update to Mono 3.8.0 (the version installed by Xamarin Studio). However I doubt that's the problem, since I've not seen any significant changes betwewen 3.5.0 and 3.8.0 that would affect something like Deedle.

https://travis-ci.org/BlueMountainCapital/Deedle/builds/37277053

tpetricek commented 9 years ago

I suspect that getting this to work on Xamarin Android project would require a portable version of Deedle, or am I missing something?

The failures on Mono 3.8.0 are certainly puzzling though.

tpetricek commented 9 years ago

I'm closing this: