Skip to content

Instantly share code, notes, and snippets.

@jwang
Created November 6, 2011 21:28
Show Gist options
  • Save jwang/1343522 to your computer and use it in GitHub Desktop.
Save jwang/1343522 to your computer and use it in GitHub Desktop.
CC=/usr/bin/gcc-4.2 rvm install ruby-1.8.7 --force
[2011-11-06 11:22:04] make
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c array.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c bignum.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c class.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c compar.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c dir.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c dln.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c enum.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c enumerator.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c error.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c eval.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
eval.c:1744:5: warning: assigning to 'struct FRAME *' from 'volatile struct FRAME *' discards qualifiers
PUSH_FRAME();
^~~~~~~~~~~~
eval.c:782:16: note: instantiated from:
ruby_frame = &_frame
^ ~~~~~~~
eval.c:1885:5: warning: assigning to 'struct FRAME *' from 'volatile struct FRAME *' discards qualifiers
PUSH_FRAME();
^~~~~~~~~~~~
eval.c:782:16: note: instantiated from:
ruby_frame = &_frame
^ ~~~~~~~
eval.c:2736:5: warning: assigning to 'struct FRAME *' from 'volatile struct FRAME *' discards qualifiers
PUSH_FRAME();
^~~~~~~~~~~~
eval.c:782:16: note: instantiated from:
ruby_frame = &_frame
^ ~~~~~~~
eval.c:4456:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
eval.c:4770:2: warning: assigning to 'struct FRAME *' from 'volatile struct FRAME *' discards qualifiers
PUSH_FRAME(); /* fake frame */
^~~~~~~~~~~~
eval.c:782:16: note: instantiated from:
ruby_frame = &_frame
^ ~~~~~~~
eval.c:5301:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
eval.c:5736:2: warning: assigning to 'struct FRAME *' from 'volatile struct FRAME *' discards qualifiers
PUSH_FRAME();
^~~~~~~~~~~~
eval.c:782:16: note: instantiated from:
ruby_frame = &_frame
^ ~~~~~~~
eval.c:5737:26: warning: passing 'const VALUE *' (aka 'const unsigned long *') to parameter of type 'VALUE *' (aka 'unsigned long *') discards qualifiers
rb_method_missing(argc, argv, obj);
^~~~
eval.c:5894:5: warning: assigning to 'struct FRAME *' from 'volatile struct FRAME *' discards qualifiers
PUSH_FRAME();
^~~~~~~~~~~~
eval.c:782:16: note: instantiated from:
ruby_frame = &_frame
^ ~~~~~~~
eval.c:6176:49: warning: passing 'const VALUE *' (aka 'const unsigned long *') to parameter of type 'VALUE *' (aka 'unsigned long *') discards qualifiers
return rb_call0(klass, recv, mid, id, argc, argv, body, noex);
^~~~
eval.c:6696:2: warning: assigning to 'struct FRAME *' from 'volatile struct FRAME *' discards qualifiers
PUSH_FRAME();
^~~~~~~~~~~~
eval.c:782:16: note: instantiated from:
ruby_frame = &_frame
^ ~~~~~~~
eval.c:6720:5: warning: assigning to 'struct FRAME *' from 'volatile struct FRAME *' discards qualifiers
PUSH_FRAME();
^~~~~~~~~~~~
eval.c:782:16: note: instantiated from:
ruby_frame = &_frame
^ ~~~~~~~
eval.c:6802:45: warning: incompatible integer to pointer conversion passing 'VALUE' (aka 'unsigned long') to parameter of type 'void *'
return exec_under(yield_under_i, under, 0, self);
^~~~
eval.c:6807:50: warning: incompatible integer to pointer conversion passing 'VALUE' (aka 'unsigned long') to parameter of type 'void *'
return exec_under(yield_args_under_i, under, 0, (VALUE)info);
^~~~~~~~~~~
eval.c:7036:5: warning: assigning to 'struct FRAME *' from 'volatile struct FRAME *' discards qualifiers
PUSH_FRAME();
^~~~~~~~~~~~
eval.c:782:16: note: instantiated from:
ruby_frame = &_frame
^ ~~~~~~~
eval.c:7278:2: warning: implicit declaration of function 'rb_thread_join' is invalid in C99 [-Wimplicit-function-declaration]
rb_thread_join(owner->thread, -1.0);
^
eval.c:8071:5: warning: assigning to 'struct FRAME *' from 'volatile struct FRAME *' discards qualifiers
PUSH_FRAME();
^~~~~~~~~~~~
eval.c:782:16: note: instantiated from:
ruby_frame = &_frame
^ ~~~~~~~
eval.c:8084:5: warning: assigning to 'struct FRAME *' from 'volatile struct FRAME *' discards qualifiers
PUSH_FRAME();
^~~~~~~~~~~~
eval.c:782:16: note: instantiated from:
ruby_frame = &_frame
^ ~~~~~~~
eval.c:9792:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
eval.c:9860:5: warning: assigning to 'struct FRAME *' from 'volatile struct FRAME *' discards qualifiers
PUSH_FRAME();
^~~~~~~~~~~~
eval.c:782:16: note: instantiated from:
ruby_frame = &_frame
^ ~~~~~~~
eval.c:12630:47: warning: incompatible integer to pointer conversion passing 'VALUE' (aka 'unsigned long') to parameter of type 'void *'
return rb_thread_start_0(rb_thread_yield, args, th);
^~~~
eval.c:12651:47: warning: incompatible integer to pointer conversion passing 'VALUE' (aka 'unsigned long') to parameter of type 'void *'
return rb_thread_start_0(rb_thread_yield, args, rb_thread_alloc(klass));
^~~~
22 warnings generated.
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c file.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c gc.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c hash.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c inits.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c io.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
io.c:1381:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
io.c:1417:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
io.c:3061:57: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers
return rb_file_sysopen_internal(io_alloc(rb_cFile), fname, flags, mode);
^~~~~
io.c:3340:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
io.c:3449:31: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers
rb_file_sysopen_internal(io, path, flags, fmode);
^~~~
5 warnings generated.
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c marshal.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
marshal.c:964:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
1 warning generated.
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c math.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c numeric.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
numeric.c:1985:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
numeric.c:2008:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
2 warnings generated.
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c object.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
object.c:2476:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
1 warning generated.
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c pack.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
pack.c:2154:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
1 warning generated.
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c parse.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
parse.y:2763:22: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers
return yycompile(f, line);
^
parse.y:2785:22: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers
return yycompile(f, start);
^
parse.y:3243:42: warning: incompatible pointer types passing 'ID *' (aka 'unsigned long *') to parameter of type 'int *' [-Wincompatible-pointer-types]
if (tokadd_string(func, term, paren, &quote->nd_nest) == -1) {
^~~~~~~~~~~~~~~
3 warnings generated.
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c process.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
process.c:3397:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
process.c:3507:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
2 warnings generated.
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c prec.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c random.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c range.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
range.c:393:29: warning: incompatible pointer types passing 'VALUE ()' to parameter of type 'void (*)(VALUE, void *)' [-Wincompatible-pointer-types]
range_each_func(range, step_i, b, e, args);
^~~~~~
1 warning generated.
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c re.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
re.c:1306:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
re.c:1942:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
2 warnings generated.
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c regex.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
regex.c:1368:61: warning: conversion specifies type 'int' but the argument has type 'long' [-Wformat]
snprintf(error_msg, ERROR_MSG_MAX_SIZE,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
regex.c:1368:105: note: instantiated from:
"invalid regular expression; there's no previous pattern, to which '%c' would define cardinality at %d",
~^
regex.c:1532:40: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
set_list_bits(0x80, 0xffffffff, b);
^
regex.c:1562:40: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
set_list_bits(0x80, 0xffffffff, b);
^
regex.c:1579:40: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
set_list_bits(0x80, 0xffffffff, b);
^
regex.c:1716:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
set_list_bits(last, c, b);
^
regex.c:1736:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
set_list_bits(c, c, b);
^
regex.c:2032:60: warning: conversion specifies type 'int' but the argument has type 'long' [-Wformat]
snprintf(error_msg, ERROR_MSG_MAX_SIZE,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
regex.c:2032:104: note: instantiated from:
"invalid regular expression; there's no previous pattern, to which '{' would define cardinality at %d",
~^
7 warnings generated.
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c ruby.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c signal.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c sprintf.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c st.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c string.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
string.c:4790:30: warning: too few arguments in call to 'get_arg_pat'
sep = get_arg_pat(tmp);
~~~~~~~~~~~ ^
string.c:4833:30: warning: too few arguments in call to 'get_arg_pat'
sep = get_arg_pat(tmp);
~~~~~~~~~~~ ^
string.c:4866:33: warning: too few arguments in call to 'get_arg_pat'
pat = get_arg_pat(prefix);
~~~~~~~~~~~ ^
string.c:4894:33: warning: too few arguments in call to 'get_arg_pat'
pat = get_arg_pat(suffix);
~~~~~~~~~~~ ^
4 warnings generated.
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c struct.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
struct.c:649:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
1 warning generated.
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c time.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c util.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c variable.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c version.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c dmyext.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
ar rcu libruby-static.a array.o bignum.o class.o compar.o dir.o dln.o enum.o enumerator.o error.o eval.o file.o gc.o hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o prec.o random.o range.o re.o regex.o ruby.o signal.o sprintf.o st.o string.o struct.o time.o util.o variable.o version.o dmyext.o
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c main.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
main.c:29:41: warning: implicit declaration of function 'objc_msgSend' is invalid in C99 [-Wimplicit-function-declaration]
static void objcdummyfunction( void ) { objc_msgSend(); }
^
1 warning generated.
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c dmydln.c
clang: warning: argument unused during compilation: '-no-cpp-precomp'
clang -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -L. -arch x86_64 -bind_at_load main.o dmydln.o libruby-static.a -ldl -lobjc -o miniruby
clang: warning: argument unused during compilation: '-no-cpp-precomp'
./lib/fileutils.rb:1428: [BUG] unexpected local variable
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-darwin11.2.0]
make: *** [.rbconfig.time] Abort trap: 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment