masa16 / narray

This repository contains OLD version of NArray. Please visit NEW version =>
https://github.com/ruby-numo/numo-narray
168 stars 28 forks source link

Ruby 2.0 compatibility? #33

Closed dicom closed 11 years ago

dicom commented 11 years ago

Hello

I just tried to install NArray on the newly released Ruby 2.0.0 on Windows (using the DevKit). There seems to be some warnings related to encoding, which I guess is because Ruby 2.0 has switched from ASCII-8BIT to UTF-8 as its default encoding. Note that in spite of the warnings given during install, NArray still seems to work fine after the install. However, for our peace of mind, I guess it would be best to get rid of these warnings. Here is the log:

C:\Ruby200\bin>gem install narray --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed narray-0.6.0.7
Parsing documentation for narray-0.6.0.7
unable to convert "\x90" from ASCII-8BIT to UTF-8 for narray.so, skipping
unable to convert "\xC6" from ASCII-8BIT to UTF-8 for src/libnarray.a, skipping
unable to convert "\x98" from ASCII-8BIT to UTF-8 for src/na_array.o, skipping
unable to convert "\xDE" from ASCII-8BIT to UTF-8 for src/na_func.o, skipping
unable to convert "\x90" from ASCII-8BIT to UTF-8 for src/na_index.o, skipping
unable to convert "\xBC" from ASCII-8BIT to UTF-8 for src/na_linalg.o, skipping
unable to convert "\xE6" from ASCII-8BIT to UTF-8 for src/na_math.o, skipping
unable to convert "\xBA" from ASCII-8BIT to UTF-8 for src/na_op.o, skipping
unable to convert "\xEE" from ASCII-8BIT to UTF-8 for src/na_random.o, skipping
unable to convert "\xB0" from ASCII-8BIT to UTF-8 for src/narray.o, skipping
unable to convert "\x90" from ASCII-8BIT to UTF-8 for src/narray.so, skipping
Installing ri documentation for narray-0.6.0.7
Done installing documentation for narray (2 sec).
1 gem installed
masa16 commented 11 years ago

This warning is caused by the gem system which is trying to parse binary files (*.o etc) for creating RDoc. I do not know how to avoid this.

dicom commented 11 years ago

Turns out this is actually an rdoc 4.0 issue, and it's actually not related to Ruby 2.0, as it will reproduce also on 1.9.3 (with rdoc 4.0).

Sorry for mistaking it for an NArray issue.

masa16 commented 11 years ago

Thank you for report. It was fixed using --exclude option.

dicom commented 11 years ago

I can confirm that installing the new narray 0.6.0.8 gem version no longer produces these warnings on my system (Win XP, Ruby 2.0.0, rdoc 4.0.0). Thanks.