Replies: 1 comment 1 reply
-
Nior sucks. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Comments
@Saroj7377
Saroj7377 commented yesterday
A clear and concise description of what the bug is.
$ gem install nio4r -v 2.5.8 Building native extensions. This could take a while... ERROR: Error installing nio4r: ERROR: Failed to build gem native extension.
current directory: /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/nio4r-2.5.8/ext/nio4r /data/data/com.termux/files/usr/bin/ruby -I /data/data/com.termux/files/usr/lib/ruby/3.2.0 extconf.rb checking for unistd.h... yes checking for linux/aio_abi.h... yes checking for linux/io_uring.h... yes checking for sys/select.h... yes checking for port_event_t in poll.h... no checking for sys/epoll.h... yes checking for sys/event.h... no checking for port_event_t in port.h... no checking for sys/resource.h... yes creating Makefile
current directory: /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/nio4r-2.5.8/ext/nio4r make DESTDIR= sitearchdir=./.gem.20230330-13996-ckvrt4 sitelibdir=./.gem.20230330-13996-ckvrt4 clean
current directory: /data/data/com.termux/files/usr/lib/ruby/gems/3.2.0/gems/nio4r-2.5.8/ext/nio4r make DESTDIR= sitearchdir=./.gem.20230330-13996-ckvrt4 sitelibdir=./.gem.20230330-13996-ckvrt4 compiling bytebuffer.c bytebuffer.c:308:20: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] return INT2NUM(bytes_read); ~~~~~~~ ^~~~~~~~~~ bytebuffer.c:338:20: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] return INT2NUM(bytes_written); ~~~~~~~ ^~~~~~~~~~~~~ 2 warnings generated. compiling monitor.c monitor.c:185:40: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] NIO_Monitor_update_interests(self, interest); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ monitor.c:196:40: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] NIO_Monitor_update_interests(self, interest); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ 2 warnings generated. compiling nio4r_ext.c In file included from nio4r_ext.c:6: ./../libev/ev.c:234:5: warning: 'EV_NO_THREADS' is not defined, evaluates to 0 [-Wundef] #if EV_NO_THREADS ^ ./../libev/ev.c:240:5: warning: 'EV_NO_SMP' is not defined, evaluates to 0 [-Wundef] #if EV_NO_SMP ^ ./../libev/ev.c:292:17: warning: 'GLIBC' is not defined, evaluates to 0 [-Wundef] # if __linux && GLIBC == 2 && GLIBC_MINOR < 17 ^ ./../libev/ev.c:321:6: warning: '_POSIX_C_SOURCE' is not defined, evaluates to 0 [-Wundef] # if _POSIX_C_SOURCE >= 199309L ^ ./../libev/ev.c:365:18: warning: 'GLIBC' is not defined, evaluates to 0 [-Wundef] # if __linux && (GLIBC > 2 || (GLIBC == 2 && GLIBC_MINOR >= 4)) ^ ./../libev/ev.c:365:36: warning: 'GLIBC' is not defined, evaluates to 0 [-Wundef] # if __linux && (GLIBC > 2 || (GLIBC == 2 && GLIBC_MINOR >= 4))
^ ./../libev/ev.c:381:18: warning: 'GLIBC' is not defined, evaluates to 0 [-Wundef] # if __linux && (GLIBC > 2 || (GLIBC == 2 && GLIBC_MINOR >= 7)) ^ ./../libev/ev.c:381:36: warning: 'GLIBC' is not defined, evaluates to 0 [-Wundef] # if __linux && (GLIBC > 2 || (GLIBC == 2 && GLIBC_MINOR >= 7))
^ ./../libev/ev.c:389:18: warning: 'GLIBC' is not defined, evaluates to 0 [-Wundef] # if __linux && (GLIBC > 2 || (GLIBC == 2 && GLIBC_MINOR >= 7)) ^ ./../libev/ev.c:389:36: warning: 'GLIBC' is not defined, evaluates to 0 [-Wundef] # if __linux && (GLIBC > 2 || (GLIBC == 2 && GLIBC_MINOR >= 7)) ^ ./../libev/ev.c:397:18: warning: 'GLIBC' is not defined, evaluates to 0 [-Wundef] # if __linux && (GLIBC > 2 || (GLIBC == 2 && GLIBC_MINOR >= 8)) ^ ./../libev/ev.c:397:36: warning: 'GLIBC' is not defined, evaluates to 0 [-Wundef] # if __linux && (GLIBC > 2 || (GLIBC == 2 && GLIBC_MINOR >= 8)) ^ ./../libev/ev.c:573:48: warning: '/' within block comment [-Wcomment] /#define MIN_INTERVAL 0.00000095367431640625 /* 1/2**20, good till 2200 */ ^./../libev/ev.c:691:7: warning: 'OPTIMIZE_SIZE' is not defined, evaluates to 0 [-Wundef] #if OPTIMIZE_SIZE ^ ./../libev/ev.c:699:5: warning: '__amd64' is not defined, evaluates to 0 [-Wundef] #if ECB_GCC_AMD64 || ECB_MSVC_AMD64 ^ ./../libev/ev.c:687:24: note: expanded from macro 'ECB_GCC_AMD64' #define ECB_GCC_AMD64 (__amd64 || amd64 || __x86_64 || x86_64) ^ ./../libev/ev.c:699:5: warning: 'amd64' is not defined, evaluates to 0 [-Wundef] ./../libev/ev.c:687:35: note: expanded from macro 'ECB_GCC_AMD64' #define ECB_GCC_AMD64 (__amd64 || amd64 || __x86_64 || x86_64) ^ ./../libev/ev.c:699:5: warning: '__x86_64' is not defined, evaluates to 0 [-Wundef] ./../libev/ev.c:687:48: note: expanded from macro 'ECB_GCC_AMD64' #define ECB_GCC_AMD64 (__amd64 || amd64 || __x86_64 || x86_64)
^./../libev/ev.c:699:5: warning: 'x86_64' is not defined, evaluates to 0 [-Wundef] ./../libev/ev.c:687:60: note: expanded from macro 'ECB_GCC_AMD64' #define ECB_GCC_AMD64 (__amd64 || amd64 || __x86_64 || x86_64)
^ ./../libev/ev.c:699:22: warning: '_M_AMD64' is not defined, evaluates to 0 [-Wundef] #if ECB_GCC_AMD64 || ECB_MSVC_AMD64 ^ ./../libev/ev.c:688:25: note: expanded from macro 'ECB_MSVC_AMD64' #define ECB_MSVC_AMD64 (_M_AMD64 || _M_X64) ^ ./../libev/ev.c:699:22: warning: '_M_X64' is not defined, evaluates to 0 [-Wundef] ./../libev/ev.c:688:37: note: expanded from macro 'ECB_MSVC_AMD64' #define ECB_MSVC_AMD64 (_M_AMD64 || _M_X64) ^ ./../libev/ev.c:739:5: warning: '__cplusplus' is not defined, evaluates to 0 [-Wundef] #if ECB_CPP ^ ./../libev/ev.c:734:20: note: expanded from macro 'ECB_CPP' #define ECB_CPP (__cplusplus+0) ^ ./../libev/ev.c:751:5: warning: '__cplusplus' is not defined, evaluates to 0 [-Wundef] #if ECB_CPP ^ ./../libev/ev.c:734:20: note: expanded from macro 'ECB_CPP' #define ECB_CPP (__cplusplus+0) ^ ./../libev/ev.c:766:5: warning: 'ECB_NO_THREADS' is not defined, evaluates to 0 [-Wundef] #if ECB_NO_THREADS ^ ./../libev/ev.c:770:5: warning: 'ECB_NO_SMP' is not defined, evaluates to 0 [-Wundef] #if ECB_NO_SMP ^ ./../libev/ev.c:775:5: warning: 'xlC' is not defined, evaluates to 0 [-Wundef] #if xlC && ECB_CPP ^ ./../libev/ev.c:779:13: warning: '_MSC_VER' is not defined, evaluates to 0 [-Wundef] #if 1400 <= _MSC_VER ^ ./../libev/ev.c:786:9: warning: '__i386' is not defined, evaluates to 0 [-Wundef] #if __i386 || i386 ^ ./../libev/ev.c:786:19: warning: 'i386' is not defined, evaluates to 0 [-Wundef] #if __i386 || i386 ^ ./../libev/ev.c:790:11: warning: '__amd64' is not defined, evaluates to 0 [-Wundef] #elif ECB_GCC_AMD64 ^ ./../libev/ev.c:687:24: note: expanded from macro 'ECB_GCC_AMD64' #define ECB_GCC_AMD64 (__amd64 || amd64 || __x86_64 || x86_64) ^ ./../libev/ev.c:790:11: warning: 'amd64' is not defined, evaluates to 0 [-Wundef] ./../libev/ev.c:687:35: note: expanded from macro 'ECB_GCC_AMD64' #define ECB_GCC_AMD64 (__amd64 || amd64 || __x86_64 || x86_64)
^ ./../libev/ev.c:790:11: warning: '__x86_64' is not defined, evaluates to 0 [-Wundef] ./../libev/ev.c:687:48: note: expanded from macro 'ECB_GCC_AMD64' #define ECB_GCC_AMD64 (__amd64 || amd64 || __x86_64 || x86_64) ^./../libev/ev.c:790:11: warning: 'x86_64' is not defined, evaluates to 0 [-Wundef] ./../libev/ev.c:687:60: note: expanded from macro 'ECB_GCC_AMD64' #define ECB_GCC_AMD64 (__amd64 || amd64 || __x86_64 || x86_64)
^ ./../libev/ev.c:794:11: warning: 'powerpc' is not defined, evaluates to 0 [-Wundef] #elif powerpc || ppc || powerpc64 || ppc64 ^ ./../libev/ev.c:794:26: warning: 'ppc' is not defined, evaluates to 0 [-Wundef] #elif powerpc || ppc || powerpc64 || ppc64 ^ ./../libev/ev.c:794:37: warning: 'powerpc64' is not defined, evaluates to 0 [-Wundef] #elif powerpc || ppc || powerpc64 || ppc64
^ ./../libev/ev.c:794:54: warning: 'ppc64' is not defined, evaluates to 0 [-Wundef] #elif powerpc || ppc || powerpc64 || ppc64
^ ./../libev/ev.c:924:5: warning: '__cplusplus' is not defined, evaluates to 0 [-Wundef] #if ECB_CPP ^ ./../libev/ev.c:734:20: note: expanded from macro 'ECB_CPP' #define ECB_CPP (__cplusplus+0) ^ ./../libev/ev.c:981:5: warning: '__cplusplus' is not defined, evaluates to 0 [-Wundef] #if ECB_CPP11 ^ ./../libev/ev.c:735:20: note: expanded from macro 'ECB_CPP11' #define ECB_CPP11 (__cplusplus >= 201103L) ^ ./../libev/ev.c:989:5: warning: '_MSC_VER' is not defined, evaluates to 0 [-Wundef] #if _MSC_VER >= 1300 ^ ./../libev/ev.c:995:5: warning: '_MSC_VER' is not defined, evaluates to 0 [-Wundef] #if _MSC_VER >= 1500 ^ ./../libev/ev.c:1003:5: warning: '_MSC_VER' is not defined, evaluates to 0 [-Wundef] #if _MSC_VER >= 1400 ^ ./../libev/ev.c:1192:26: warning: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] return ecb_popcount32 (x) + ecb_popcount32 (x >> 32); ~~~~~~~~~~~~~~~~^~ ./../libev/ev.c:1054:49: note: expanded from macro 'ecb_popcount32' #define ecb_popcount32(x) __builtin_popcount (x) ~~~~~~~~~~~~~~~~~~ ^ ./../libev/ev.c:1213:5: warning: '__cplusplus' is not defined, evaluates to 0 [-Wundef] #if ECB_CPP ^ ./../libev/ev.c:734:20: note: expanded from macro 'ECB_CPP' #define ECB_CPP (__cplusplus+0) ^ ./../libev/ev.c:1335:108: warning: implicit conversion loses integer precision: 'uint_fast32_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] ecb_inline uint_fast32_t ecb_be_u32_to_host (uint_fast32_t v) { return ecb_little_endian () ? ecb_bswap32 (v) : v; }
Beta Was this translation helpful? Give feedback.
All reactions