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

Ruby 2.0.0-rc1 Compilation Failure #4

Closed
conradwt opened this issue Jan 10, 2013 · 9 comments
Closed

Ruby 2.0.0-rc1 Compilation Failure #4

conradwt opened this issue Jan 10, 2013 · 9 comments

Comments

@conradwt
Copy link

I'm seeing the following compilation failure when attempting to install the unicode gem on Mac OS 10.8.2 with Xcode 4.5.2:


$ gem install unicode
Building native extensions.  This could take a while...
ERROR:  Error installing unicode:
    ERROR: Failed to build gem native extension.

    /Users/conradwt/.rbenv/versions/2.0.0-rc1/bin/ruby extconf.rb
creating Makefile

make
compiling unicode.c
unicode.c:646:50: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr1, RSTRING_PTR(str1), RSTRING_LEN(str1));
                                                 ^~~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:646:50: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr1, RSTRING_PTR(str1), RSTRING_LEN(str1));
                                                 ^~~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:647:50: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr2, RSTRING_PTR(str2), RSTRING_LEN(str2));
                                                 ^~~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:647:50: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr2, RSTRING_PTR(str2), RSTRING_LEN(str2));
                                                 ^~~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:688:50: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr1, RSTRING_PTR(str1), RSTRING_LEN(str1));
                                                 ^~~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:688:50: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr1, RSTRING_PTR(str1), RSTRING_LEN(str1));
                                                 ^~~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:689:50: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr2, RSTRING_PTR(str2), RSTRING_LEN(str2));
                                                 ^~~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:689:50: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr2, RSTRING_PTR(str2), RSTRING_LEN(str2));
                                                 ^~~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:725:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:725:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:751:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:751:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:777:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:777:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:803:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:803:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:830:49: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr1, RSTRING_PTR(str), RSTRING_LEN(str));
                                                ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:830:49: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr1, RSTRING_PTR(str), RSTRING_LEN(str));
                                                ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:860:49: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr1, RSTRING_PTR(str), RSTRING_LEN(str));
                                                ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:860:49: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr1, RSTRING_PTR(str), RSTRING_LEN(str));
                                                ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:890:49: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr1, RSTRING_PTR(str), RSTRING_LEN(str));
                                                ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:890:49: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr1, RSTRING_PTR(str), RSTRING_LEN(str));
                                                ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:919:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:919:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:945:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:945:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:976:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:976:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&ustr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:1037:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:1037:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:1055:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:1055:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:1079:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:1079:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
unicode.c:1225:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:860:6: note: expanded from macro 'RSTRING_LEN'
     RSTRING_EMBED_LEN(str) : \
     ^
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:856:6: note: expanded from macro 'RSTRING_EMBED_LEN'
     (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unicode.c:1225:48: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  WStr_allocWithUTF8L(&wstr, RSTRING_PTR(str), RSTRING_LEN(str));
                                               ^~~~~~~~~~~~~~~~
/Users/conradwt/.rbenv/versions/2.0.0-rc1/include/ruby-2.0.0/ruby/ruby.h:861:28: note: expanded from macro 'RSTRING_LEN'
     RSTRING(str)->as.heap.len)
                           ^
36 warnings generated.
compiling ustring.c
compiling wstring.c
linking shared-object unicode.bundle

make install
/opt/local/bin/ginstall -c -m 0755 unicode.bundle /Users/conradwt/.rbenv/versions/2.0.0-rc1/lib/ruby/gems/2.0.0/gems/unicode-0.4.3/.
/opt/local/bin/ginstall: ‘unicode.bundle’ and ‘/Users/conradwt/.rbenv/versions/2.0.0-rc1/lib/ruby/gems/2.0.0/gems/unicode-0.4.3/./unicode.bundle’ are the same file
make: *** [install-so] Error 1


Gem files will remain installed in /Users/conradwt/.rbenv/versions/2.0.0-rc1/lib/ruby/gems/2.0.0/gems/unicode-0.4.3 for inspection.
Results logged to /Users/conradwt/.rbenv/versions/2.0.0-rc1/lib/ruby/gems/2.0.0/gems/unicode-0.4.3/./gem_make.out
@blackwinter
Copy link
Owner

thanks for reporting this. aside from all the warnings, it's the same problem as discussed in rubygems/rubygems#411.

since this is supposed to be a mirror only, i don't know what the best strategy might be. but we already did something similar for the windows gem (see a4a9ac3). please stay tuned.

@blackwinter
Copy link
Owner

i've just pushed version 0.4.3.1.pre1. please let me know if that works for you.

@conradwt
Copy link
Author

@blackwinter I'm seeing the following message during the installation process:

unable to convert "\xCF" from ASCII-8BIT to UTF-8 for lib/unicode/unicode_native.bundle, skipping

However, the Rails 3 application which depends on the gem appears to be working as expected.

@blackwinter
Copy link
Owner

maybe this SO question has some hints for you.

EDIT: just to be clear, this warning only affects documentation; the gem should work fine.

@cpence
Copy link

cpence commented Feb 26, 2013

Actually, this doesn't quite close this issue. For some reason:

  • On Ruby 1.9.3-p392, the bundle file is built at ext/unicode_native.bundle as expected, and then copied to lib/unicode/unicode_native.bundle, also as expected
  • On Ruby 2.0.0-p0, the bundle file is built at the same place, but then copied to lib/unicode, the wrong location, which makes require 'unicode' fail.

Any idea why it would do this? If I go in and manually run

cd ~/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/unicode-0.4.4
cd lib
mv unicode unicode_native.bundle
mkdir unicode
mv unicode_native.bundle unicode

then everything works fine.

@blackwinter
Copy link
Owner

i'll reopen and see if Ruby-Bug #7698 is going to settle on a solution now.

@blackwinter blackwinter reopened this Mar 3, 2013
@mhenrixon
Copy link

Looks like gem update --system to rubygems 2.0.2 solves all problems or well these types of installation problems at least.

@cpence
Copy link

cpence commented Mar 8, 2013

I can confirm that, you're good to close here; it was a RubyGems bug.

@blackwinter
Copy link
Owner

well, that was to be expected, i just wasn't sure if the fix made it into the latest release. so i'll close the ticket, leaving 70ce3a2 in place for now.

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

4 participants