Skip to content

Instantly share code, notes, and snippets.

@9jaswag
Created March 7, 2019 13:11
Show Gist options
  • Save 9jaswag/4ef66b40ca6cb374f3373350c6ba281e to your computer and use it in GitHub Desktop.
Save 9jaswag/4ef66b40ca6cb374f3373350c6ba281e to your computer and use it in GitHub Desktop.
+__rvm_make:0> make -j12
CC = gcc
LD = ld
LDSHARED = gcc -dynamiclib
CFLAGS = -O3 -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -fno-common -pipe
XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I/usr/local/Cellar/libyaml/0.2.1/include -I/usr/local/Cellar/libksba/1.3.5/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/[email protected]/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I. -I.ext/include/x86_64-darwin18 -I./include -I. -I./enc/unicode/10.0.0
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/Cellar/libyaml/0.2.1/lib -L/usr/local/Cellar/libksba/1.3.5/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/[email protected]/lib -install_name /Users/andeladeveloper/.rvm/rubies/ruby-2.5.1/lib/libruby.2.5.dylib -compatibility_version 2.5 -current_version 2.5.1 -fstack-protector -framework Foundation -fstack-protector -framework Foundation
SOLIBS = -lpthread -lgmp -ldl -lobjc
LANG =
LC_ALL =
LC_CTYPE = en_US.UTF-8
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
compiling ./main.c
compiling dmydln.c
compiling miniinit.c
compiling dmyext.c
compiling miniprelude.c
translating probes probes.d
compiling bignum.c
compiling class.c
compiling compar.c
compiling compile.c
compiling complex.c
compiling cont.c
compiling debug.c
compiling debug_counter.c
compiling dir.c
. ./vm_opts.h
compiling dln_find.c
compiling encoding.c
bignum.c:657:13: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration]
MEMZERO(words, unsigned char, numwords * wordsize);
^
./include/ruby/ruby.h:1666:27: note: expanded from macro 'MEMZERO'
#define MEMZERO(p,type,n) memset((p), 0, sizeof(type)*(size_t)(n))
^
bignum.c:657:13: note: include the header <string.h> or explicitly provide a declaration for 'memset'
./include/ruby/ruby.h:1666:27: note: expanded from macro 'MEMZERO'
#define MEMZERO(p,type,n) memset((p), 0, sizeof(type)*(size_t)(n))
^
compiling enum.c
bignum.c:740:17: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration]
MEMCPY(words, dp, char, src_size);
^
./include/ruby/ruby.h:1667:30: note: expanded from macro 'MEMCPY'
#define MEMCPY(p1,p2,type,n) memcpy((p1), (p2), sizeof(type)*(size_t)(n))
^
bignum.c:740:17: note: include the header <string.h> or explicitly provide a declaration for 'memcpy'
./include/ruby/ruby.h:1667:30: note: expanded from macro 'MEMCPY'
#define MEMCPY(p1,p2,type,n) memcpy((p1), (p2), sizeof(type)*(size_t)(n))
^
compiling enumerator.c
class.c:284:5: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration]
MEMCPY(nce, ce, rb_const_entry_t, 1);
^
./include/ruby/ruby.h:1667:30: note: expanded from macro 'MEMCPY'
#define MEMCPY(p1,p2,type,n) memcpy((p1), (p2), sizeof(type)*(size_t)(n))
^
class.c:284:5: note: include the header <string.h> or explicitly provide a declaration for 'memcpy'
./include/ruby/ruby.h:1667:30: note: expanded from macro 'MEMCPY'
#define MEMCPY(p1,p2,type,n) memcpy((p1), (p2), sizeof(type)*(size_t)(n))
^
class.c:339:2: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
CONST_ID(id, "__tmp_classpath__");
^
./include/ruby/ruby.h:1749:28: note: expanded from macro 'CONST_ID'
#define CONST_ID(var, str) RUBY_CONST_ID(var, str)
^
./include/ruby/ruby.h:1747:8: note: expanded from macro 'RUBY_CONST_ID'
do RUBY_CONST_ID_CACHE((var) =, (str)) while (0)
^
./include/ruby/ruby.h:1743:51: note: expanded from macro 'RUBY_CONST_ID_CACHE'
rb_intern_id_cache = rb_intern2((str), (long)strlen(str)); \
^
class.c:339:2: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
./include/ruby/ruby.h:1749:28: note: expanded from macro 'CONST_ID'
#define CONST_ID(var, str) RUBY_CONST_ID(var, str)
^
./include/ruby/ruby.h:1747:8: note: expanded from macro 'RUBY_CONST_ID'
do RUBY_CONST_ID_CACHE((var) =, (str)) while (0)
^
./include/ruby/ruby.h:1743:51: note: expanded from macro 'RUBY_CONST_ID_CACHE'
rb_intern_id_cache = rb_intern2((str), (long)strlen(str)); \
^
compiling error.c
In file included from cont.c:15:
./eval_intern.h:48:7: warning: incompatible redeclaration of library function 'strrchr' [-Wincompatible-library-redeclaration]
bignum.c:2687:9: warning: implicitly declaring library function 'memmove' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration]
char *strrchr(const char *, const char);
MEMMOVE(qds, zds+yn, BDIGIT, j);
^
^
./include/ruby/ruby.h:1668:31: note: expanded from macro 'MEMMOVE'
./eval_intern.h:48:7: note: 'strrchr' is a builtin with type 'char *(const char *, int)'
#define MEMMOVE(p1,p2,type,n) memmove((p1), (p2), sizeof(type)*(size_t)(n))
^
bignum.c:2687:9: note: include the header <string.h> or explicitly provide a declaration for 'memmove'
./include/ruby/ruby.h:1668:31: note: expanded from macro 'MEMMOVE'
#define MEMMOVE(p1,p2,type,n) memmove((p1), (p2), sizeof(type)*(size_t)(n))
^
cont.c:498:5: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration]
MEMCPY(cont->machine.stack, cont->machine.stack_src, VALUE, size);
^
./include/ruby/ruby.h:1667:30: note: expanded from macro 'MEMCPY'
#define MEMCPY(p1,p2,type,n) memcpy((p1), (p2), sizeof(type)*(size_t)(n))
^
cont.c:498:5: note: include the header <string.h> or explicitly provide a declaration for 'memcpy'
./include/ruby/ruby.h:1667:30: note: expanded from macro 'MEMCPY'
#define MEMCPY(p1,p2,type,n) memcpy((p1), (p2), sizeof(type)*(size_t)(n))
^
cont.c:1479:5: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration]
MEMZERO(fib, rb_fiber_t, 1);
^
./include/ruby/ruby.h:1666:27: note: expanded from macro 'MEMZERO'
#define MEMZERO(p,type,n) memset((p), 0, sizeof(type)*(size_t)(n))
^
cont.c:1479:5: note: include the header <string.h> or explicitly provide a declaration for 'memset'
./include/ruby/ruby.h:1666:27: note: expanded from macro 'MEMZERO'
#define MEMZERO(p,type,n) memset((p), 0, sizeof(type)*(size_t)(n))
^
cont.c:1651:10: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
value = rb_exc_new2(rb_eFiberError, "dead fiber called");
^
./include/ruby/intern.h:243:21: note: expanded from macro 'rb_exc_new2'
#define rb_exc_new2 rb_exc_new_cstr
^
./include/ruby/intern.h:831:35: note: expanded from macro 'rb_exc_new_cstr'
rb_exc_new((klass), (ptr), (long)strlen(ptr)) : \
^
cont.c:1651:10: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
./include/ruby/intern.h:243:21: note: expanded from macro 'rb_exc_new2'
#define rb_exc_new2 rb_exc_new_cstr
^
./include/ruby/intern.h:831:35: note: expanded from macro 'rb_exc_new_cstr'
rb_exc_new((klass), (ptr), (long)strlen(ptr)) : \
^
cont.c:1915:2: warning: implicitly declaring library function 'strlcat' with type 'unsigned long (char *, const char *, unsigned long)' [-Wimplicit-function-declaration]
strlcat(status_info, ">", sizeof(status_info));
^
cont.c:1915:2: note: include the header <string.h> or explicitly provide a declaration for 'strlcat'
complex.c:1298:5: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
rb_str_cat2(s, !impos ? "-" : "+");
^
./include/ruby/intern.h:844:21: note: expanded from macro 'rb_str_cat2'
#define rb_str_cat2 rb_str_cat_cstr
^
./include/ruby/intern.h:826:33: note: expanded from macro 'rb_str_cat_cstr'
rb_str_cat((str), (ptr), (long)strlen(ptr)) : \
^
complex.c:1298:5: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
./include/ruby/intern.h:844:21: note: expanded from macro 'rb_str_cat2'
#define rb_str_cat2 rb_str_cat_cstr
^
./include/ruby/intern.h:826:33: note: expanded from macro 'rb_str_cat_cstr'
rb_str_cat((str), (ptr), (long)strlen(ptr)) : \
^
compile.c:449:5: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration]
RBASIC_CLEAR_CLASS(obj);
^
./internal.h:1536:40: note: expanded from macro 'RBASIC_CLEAR_CLASS'
#define RBASIC_CLEAR_CLASS(obj) memset(&(((struct RBasicRaw *)((VALUE)(obj)))->klass), 0, sizeof(VALUE))
^
compile.c:449:5: note: include the header <string.h> or explicitly provide a declaration for 'memset'
./internal.h:1536:40: note: expanded from macro 'RBASIC_CLEAR_CLASS'
#define RBASIC_CLEAR_CLASS(obj) memset(&(((struct RBasicRaw *)((VALUE)(obj)))->klass), 0, sizeof(VALUE))
^
complex.c:1755:9: warning: implicitly declaring library function 'strchr' with type 'char *(const char *, int)' [-Wimplicit-function-declaration]
if (strchr(s, '/'))
^
complex.c:1755:9: note: include the header <string.h> or explicitly provide a declaration for 'strchr'
complex.c:1757:9: warning: implicitly declaring library function 'strpbrk' with type 'char *(const char *, const char *)' [-Wimplicit-function-declaration]
if (strpbrk(s, ".eE"))
^
complex.c:1757:9: note: include the header <string.h> or explicitly provide a declaration for 'strpbrk'
complex.c:1888:15: warning: implicitly declaring library function 'memchr' with type 'void *(const void *, int, unsigned long)' [-Wimplicit-function-declaration]
if (!s || memchr(s, '\0', RSTRING_LEN(self)))
^
complex.c:1888:15: note: include the header <string.h> or explicitly provide a declaration for 'memchr'
compile.c:770:5: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration]
MEMCPY(original_code, iseq->body->iseq_encoded, VALUE, iseq->body->iseq_size);
^
./include/ruby/ruby.h:1667:30: note: expanded from macro 'MEMCPY'
#define MEMCPY(p1,p2,type,n) memcpy((p1), (p2), sizeof(type)*(size_t)(n))
^
compile.c:770:5: note: include the header <string.h> or explicitly provide a declaration for 'memcpy'
./include/ruby/ruby.h:1667:30: note: expanded from macro 'MEMCPY'
#define MEMCPY(p1,p2,type,n) memcpy((p1), (p2), sizeof(type)*(size_t)(n))
^
compile.c:1292:5: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
CONST_ID(id_dollar_bang, "#$!");
^
./include/ruby/ruby.h:1749:28: note: expanded from macro 'CONST_ID'
#define CONST_ID(var, str) RUBY_CONST_ID(var, str)
^
./include/ruby/ruby.h:1747:8: note: expanded from macro 'RUBY_CONST_ID'
do RUBY_CONST_ID_CACHE((var) =, (str)) while (0)
^
./include/ruby/ruby.h:1743:51: note: expanded from macro 'RUBY_CONST_ID_CACHE'
rb_intern_id_cache = rb_intern2((str), (long)strlen(str)); \
^
compile.c:1292:5: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
./include/ruby/ruby.h:1749:28: note: expanded from macro 'CONST_ID'
#define CONST_ID(var, str) RUBY_CONST_ID(var, str)
^
./include/ruby/ruby.h:1747:8: note: expanded from macro 'RUBY_CONST_ID'
do RUBY_CONST_ID_CACHE((var) =, (str)) while (0)
^
./include/ruby/ruby.h:1743:51: note: expanded from macro 'RUBY_CONST_ID_CACHE'
rb_intern_id_cache = rb_intern2((str), (long)strlen(str)); \
^
In file included from debug.c:16:
./eval_intern.h:48:7: warning: incompatible redeclaration of library function 'strrchr' [-Wincompatible-library-redeclaration]
bignum.cchar *strrchr(const char *, const char);
^
:4863:24: warning./eval_intern.h:48:7: note: 'strrchr' is a builtin with type 'char *(const char *, int)'
: implicit declaration of function 'ffs' is invalid in C99 [-Wimplicit-function-declaration]
int word_numbits = ffs(base) - 1;
^
bignum.c:4911:9: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
return rb_usascii_str_new2("0");
^
./include/ruby/intern.h:841:29: note: expanded from macro 'rb_usascii_str_new2'
#define rb_usascii_str_new2 rb_usascii_str_new_cstr
^
./include/ruby/intern.h:800:41: note: expanded from macro 'rb_usascii_str_new_cstr'
rb_usascii_str_new_static((str), (long)strlen(str)) : \
^
bignum.c:4911:9: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
./include/ruby/intern.h:841:29: note: expanded from macro 'rb_usascii_str_new2'
#define rb_usascii_str_new2 rb_usascii_str_new_cstr
^
./include/ruby/intern.h:800:41: note: expanded from macro 'rb_usascii_str_new_cstr'
rb_usascii_str_new_static((str), (long)strlen(str)) : \
^
debug.c:192:5: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Wimplicit-function-declaration]
SET_WHEN("gc_stress", *ruby_initial_gc_stress_ptr, Qtrue);
^
debug.c:158:6: note: expanded from macro 'SET_WHEN'
strncmp(str, (name), len) == 0) { \
^
debug.c:192:5: note: include the header <string.h> or explicitly provide a declaration for 'strncmp'
debug.c:158:6: note: expanded from macro 'SET_WHEN'
strncmp(str, (name), len) == 0) { \
^
bignum.c:5487:9: warning: implicitly declaring library function 'memcmp' with type 'int (const void *, const void *, unsigned long)' [-Wimplicit-function-declaration]
if (MEMCMP(BDIGITS(x),BDIGITS(y),BDIGIT,BIGNUM_LEN(y)) != 0) return Qfalse;
^
./include/ruby/ruby.h:1669:30: note: expanded from macro 'MEMCMP'
#define MEMCMP(p1,p2,type,n) memcmp((p1), (p2), sizeof(type)*(size_t)(n))
^
bignum.c:5487:9: note: include the header <string.h> or explicitly provide a declaration for 'memcmp'
./include/ruby/ruby.h:1669:30: note: expanded from macro 'MEMCMP'
#define MEMCMP(p1,p2,type,n) memcmp((p1), (p2), sizeof(type)*(size_t)(n))
^
In file included from dln_find.c:37:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/strings.h:92:
/usr/local/include/string.h:25:10: fatal error: 'plist/Node.h' file not found
#include <plist/Node.h>
^~~~~~~~~~~~~~
1 error generated.
make: *** [dln_find.o] Error 1
make: *** Waiting for unfinished jobs....
dir.c:72:7: warning: incompatible redeclaration of library function 'strchr' [-Wincompatible-library-redeclaration]
char *strchr(char*,char);
^
dir.c:72:7: note: 'strchr' is a builtin with type 'char *(const char *, int)'
dir.c:253:28: warning: implicitly declaring library function 'memcmp' with type 'int (const void *, const void *, unsigned long)' [-Wimplicit-function-declaration]
if ((r <= (send-s) && memcmp(t1, s, r) == 0) ||
^
dir.c:253:28: note: include the header <string.h> or explicitly provide a declaration for 'memcmp'
dir.c:309:28: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
const char *pend = p + strlen(p);
^
dir.c:309:28: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
2 warnings generated.
encoding.c:277:5: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration]
memset(ent + enc_table.size, 0, sizeof(*ent)*(newsize - enc_table.size));
^
encoding.c:277:5: note: include the header <string.h> or explicitly provide a declaration for 'memset'
encoding.c:290:10: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
if (!valid_encoding_name_p(name)) return -1;
^
encoding.c:74:48: note: expanded from macro 'valid_encoding_name_p'
#define valid_encoding_name_p(name) ((name) && strlen(name) <= ENCODING_NAMELEN_MAX)
^
encoding.c:290:10: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
encoding.c:74:48: note: expanded from macro 'valid_encoding_name_p'
#define valid_encoding_name_p(name) ((name) && strlen(name) <= ENCODING_NAMELEN_MAX)
^
enumerator.c:677:19: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
e->stop_exc = rb_exc_new2(rb_eStopIteration, "iteration reached an end");
^
./include/ruby/intern.h:243:21: note: expanded from macro 'rb_exc_new2'
#define rb_exc_new2 rb_exc_new_cstr
^
./include/ruby/intern.h:831:35: note: expanded from macro 'rb_exc_new_cstr'
rb_exc_new((klass), (ptr), (long)strlen(ptr)) : \
^
enumerator.c:677:19: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
./include/ruby/intern.h:243:21: note: expanded from macro 'rb_exc_new2'
#define rb_exc_new2 rb_exc_new_cstr
^
./include/ruby/intern.h:831:35: note: expanded from macro 'rb_exc_new_cstr'
rb_exc_new((klass), (ptr), (long)strlen(ptr)) : \
^
encoding.c:733:5: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration]
memcpy(buf, name, len);
^
encoding.c:733:5: note: include the header <string.h> or explicitly provide a declaration for 'memcpy'
enumerator.c:1427:6: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration]
MEMCPY(nargv + 1, argv, VALUE, argc);
^
./include/ruby/ruby.h:1667:30: note: expanded from macro 'MEMCPY'
#define MEMCPY(p1,p2,type,n) memcpy((p1), (p2), sizeof(type)*(size_t)(n))
^
enumerator.c:1427:6: note: include the header <string.h> or explicitly provide a declaration for 'memcpy'
./include/ruby/ruby.h:1667:30: note: expanded from macro 'MEMCPY'
#define MEMCPY(p1,p2,type,n) memcpy((p1), (p2), sizeof(type)*(size_t)(n))
^
dir.c:1606:3: warning: implicitly declaring library function 'memmove' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration]
memmove(t, s, p - s);
^
dir.c:1606:3: note: include the header <string.h> or explicitly provide a declaration for 'memmove'
enum.c:1119:5: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration]
dir.c:1666:6 RBASIC_CLEAR_CLASS(ary);
^
: warning: ./internal.h:1536:40: note: expanded from macro 'RBASIC_CLEAR_CLASS'
implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration]
memcpy(buf, p, m-p);
^
#define RBASIC_CLEAR_CLASS(obj) memset(&(((struct RBasicRaw *)((VALUE)(obj)))->klass), 0, sizeof(VALUE))
^
dir.c:1666:6: note: include the header <string.h> or explicitly provide a declaration for 'memcpy'
enum.c:1119:5: note: include the header <string.h> or explicitly provide a declaration for 'memset'
./internal.h:1536:40: note: expanded from macro 'RBASIC_CLEAR_CLASS'
#define RBASIC_CLEAR_CLASS(obj) memset(&(((struct RBasicRaw *)((VALUE)(obj)))->klass), 0, sizeof(VALUE))
^
enum.c:1147:5: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration]
RBASIC_SET_CLASS_RAW(ary, rb_cArray);
^
./internal.h:1537:40: note: expanded from macro 'RBASIC_SET_CLASS_RAW'
#define RBASIC_SET_CLASS_RAW(obj, cls) memcpy(&((struct RBasicRaw *)((VALUE)(obj)))->klass, &(cls), sizeof(VALUE))
^
enum.c:1147:5: note: include the header <string.h> or explicitly provide a declaration for 'memcpy'
./internal.h:1537:40: note: expanded from macro 'RBASIC_SET_CLASS_RAW'
#define RBASIC_SET_CLASS_RAW(obj, cls) memcpy(&((struct RBasicRaw *)((VALUE)(obj)))->klass, &(cls), sizeof(VALUE))
^
dir.c:2427:6: warning: implicitly declaring library function 'strlcpy' with type 'unsigned long (char *, const char *, unsigned long)' [-Wimplicit-function-declaration]
strlcpy(buf+shift+(p-t), rbrace+1, len-(shift+(p-t)));
^
dir.c:2427:6: note: include the header <string.h> or explicitly provide a declaration for 'strlcpy'
error.c:101:2: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
rb_str_cat2(str, file);
^
./include/ruby/intern.h:844:21: note: expanded from macro 'rb_str_cat2'
#define rb_str_cat2 rb_str_cat_cstr
^
./include/ruby/intern.h:826:33: note: expanded from macro 'rb_str_cat_cstr'
rb_str_cat((str), (ptr), (long)strlen(ptr)) : \
^
error.c:101:2: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
./include/ruby/intern.h:844:21: note: expanded from macro 'rb_str_cat2'
#define rb_str_cat2 rb_str_cat_cstr
^
./include/ruby/intern.h:826:33: note: expanded from macro 'rb_str_cat_cstr'
rb_str_cat((str), (ptr), (long)strlen(ptr)) : \
^
compile.c:9450:9: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Wimplicit-function-declaration]
if (strncmp(load->header->magic, "YARB", 4) != 0) {
^
compile.c:9450:9: note: include the header <string.h> or explicitly provide a declaration for 'strncmp'
compile.c:9458:9: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration]
if (strcmp(load->buff + sizeof(struct ibf_header), RUBY_PLATFORM) != 0) {
^
compile.c:9458:9: note: include the header <string.h> or explicitly provide a declaration for 'strcmp'
error.c:430:18: warning: implicitly declaring library function 'strchr' with type 'char *(const char *, int)' [-Wimplicit-function-declaration]
const char *e = strchr(p, '\n');
^
error.c:430:18: note: include the header <string.h> or explicitly provide a declaration for 'strchr'
error.c:594:41: warning: implicitly declaring library function 'strerror' with type 'char *(int)' [-Wimplicit-function-declaration]
rb_bug("%s: %s (%s)", mesg, strerror(errno_arg), errno_str);
^
error.c:594:41: note: include the header <string.h> or explicitly provide a declaration for 'strerror'
enum.c:2683:2: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
CONST_ID(conv, "to_enum");
^
./include/ruby/ruby.h:1749:28: note: expanded from macro 'CONST_ID'
#define CONST_ID(var, str) RUBY_CONST_ID(var, str)
^
./include/ruby/ruby.h:1747:8: note: expanded from macro 'RUBY_CONST_ID'
do RUBY_CONST_ID_CACHE((var) =, (str)) while (0)
^
./include/ruby/ruby.h:1743:51: note: expanded from macro 'RUBY_CONST_ID_CACHE'
rb_intern_id_cache = rb_intern2((str), (long)strlen(str)); \
^
enum.c:2683:2: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
./include/ruby/ruby.h:1749:28: note: expanded from macro 'CONST_ID'
#define CONST_ID(var, str) RUBY_CONST_ID(var, str)
^
./include/ruby/ruby.h:1747:8: note: expanded from macro 'RUBY_CONST_ID'
do RUBY_CONST_ID_CACHE((var) =, (str)) while (0)
^
./include/ruby/ruby.h:1743:51: note: expanded from macro 'RUBY_CONST_ID_CACHE'
rb_intern_id_cache = rb_intern2((str), (long)strlen(str)); \
^
5 warnings generated.
2 warnings generated.
3 warnings generated.
2 warnings generated.
6 warnings generated.
4 warnings generated.
3 warnings generated.
3 warnings generated.
6 warnings generated.
5 warnings generated.
+__rvm_make:0> return 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment