public
Last active

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
$ cat /Users/krainboltgreene/.rvm/log/ruby-1.9.3-p327/make.log
[2012-11-29 14:11:18] make -j8
CC = gcc-4.7
LD = ld
LDSHARED = gcc-4.7 -dynamiclib
CFLAGS = -march=native -O2 -fno-common -pipe
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/Users/krainboltgreene/.rvm/usr/include -I. -I.ext/include/x86_64-darwin12.2.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -install_name /Users/krainboltgreene/.rvm/rubies/ruby-1.9.3-p327/lib/libruby.1.9.1.dylib -current_version 1.9.1 -compatibility_version 1.9.1 -Wl,-u,_objc_msgSend
SOLIBS =
compiling main.c
compiling dmydln.c
compiling dmyencoding.c
compiling version.c
compiling array.c
compiling miniprelude.c
compiling bignum.c
compiling class.c
In file included from ./include/ruby/intern.h:32:0,
from ./include/ruby/ruby.h:1383,
from encoding.c:12,
from dmyencoding.c:2:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
In file included from ./include/ruby/intern.h:32:0,
from ./include/ruby/ruby.h:1383,
from ./include/ruby.h:32,
from main.c:13:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
In file included from ./include/ruby/intern.h:32:0,
from ./include/ruby/ruby.h:1383,
from dmydln.c:1:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
In file included from ./include/ruby/intern.h:32:0,
from ./include/ruby/ruby.h:1383,
from version.c:12:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
make: *** [dmydln.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [main.o] Error 1
In file included from ./include/ruby/intern.h:32:0,
from ./include/ruby/ruby.h:1383,
from array.c:14:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
make: *** [version.o] Error 1
In file included from ./include/ruby/intern.h:32:0,
from ./include/ruby/ruby.h:1383,
from class.c:26:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
In file included from ./include/ruby/intern.h:32:0,
from ./include/ruby/ruby.h:1383,
from bignum.c:12:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
In file included from ./include/ruby/intern.h:32:0,
from ./include/ruby/ruby.h:1383,
from miniprelude.c:6:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.0/4.7.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
make: *** [miniprelude.o] Error 1
make: *** [dmyencoding.o] Error 1
make: *** [class.o] Error 1
make: *** [bignum.o] Error 1
make: *** [array.o] Error 1

You may explore why your ruby/config.h doesn't define HAVE_STDARG_PROTOTYPE

But it would be better to completely remove check for HAVE_STDARG_PROTOTYPE and always include stdarg.h, I think.

today I experienced the same problem, trying to compile ruby 1.9.3 with the falcon patch and gcc 4.7, same args. :(

Try adding -mno-avx ... if you have a sandybridge cpu.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.