Issue #6837 has been reported by luislavena (Luis Lavena).

----------------------------------------
Bug #6837: MinGW: r36626 broke the build (x86 & x64)
https://bugs.ruby-lang.org/issues/6837

Author: luislavena (Luis Lavena)
Status: Assigned
Priority: High
Assignee: authorNari (Narihiro Nakamura)
Category: build
Target version: 2.0.0
ruby -v: trunk


=begin
Hello,

After r36626, gc.c compilation fails:

 compiling ../gc.c
 ../gc.c: In function 'rb_objspace_each_objects':
 ../gc.c:1114:5: error: implicit declaration of function 'rest_sweep' [-Werror=implicit-function-declaration]
 ../gc.c: At top level:
 ../gc.c:1974:1: warning: conflicting types for 'rest_sweep' [enabled by default]
 ../gc.c:1974:1: error: static declaration of 'rest_sweep' follows non-static declaration
 ../gc.c:1114:5: note: previous implicit declaration of 'rest_sweep' was here
 cc1.exe: some warnings being treated as errors
 
 make: *** [gc.o] Error 1
 
This happens on both x86 and x64 versions of GCC 4.6.1 (Windows)

See the build logs here:

http://ci.rubyinstaller.org/job/ruby-trunk-x86/98/console

http://ci.rubyinstaller.org/job/ruby-trunk-x64/98/console

=end


-- 
http://bugs.ruby-lang.org/