Skip to content

Instantly share code, notes, and snippets.

@krainboltgreene
Created November 29, 2012 22:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krainboltgreene/4172330 to your computer and use it in GitHub Desktop.
Save krainboltgreene/4172330 to your computer and use it in GitHub Desktop.
$ 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
@funny-falcon
Copy link

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.

@eljojo
Copy link

eljojo commented Dec 2, 2012

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

@beardedninja
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment