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

----------------------------------------
Bug #6789: parse.y compilation error due not updated id.h
https://bugs.ruby-lang.org/issues/6789

Author: luislavena (Luis Lavena)
Status: Open
Priority: Normal
Assignee: tenderlovemaking (Aaron Patterson)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-07-25 trunk 36527) [x64-mingw32]


=begin
Hello,

After r36524, compilation with existing build tree will fail due id.h not being regenerated:

 compiling ../dmyversion.c
 generating parse.c
 parse.h updated
 compiling ../array.c
 ...
 compiling parse.c
 In file included from ../parse.y:27:0:
 id.h:165:1: error: size of array 'checking_for_idNULL' is negative
 id.h:166:1: error: size of array 'checking_for_idRespond_to' is negative
 id.h:167:1: error: size of array 'checking_for_idIFUNC' is negative
 id.h:168:1: error: size of array 'checking_for_idCFUNC' is negative
 id.h:169:1: error: size of array 'checking_for_id_core_set_method_alias' is negative
 id.h:170:1: error: size of array 'checking_for_id_core_set_variable_alias' is negative
 id.h:171:1: error: size of array 'checking_for_id_core_undef_method' is negative
 id.h:172:1: error: size of array 'checking_for_id_core_define_method' is negative
 id.h:173:1: error: size of array 'checking_for_id_core_define_singleton_method' is negative
 id.h:174:1: error: size of array 'checking_for_id_core_set_postexe' is negative
 id.h:175:1: error: size of array 'checking_for_id_core_hash_from_ary' is negative
 id.h:176:1: error: size of array 'checking_for_id_core_hash_merge_ary' is negative
 id.h:177:1: error: size of array 'checking_for_id_core_hash_merge_ptr' is negative
 id.h:178:1: error: size of array 'checking_for_id_core_hash_merge_kwd' is negative
 id.h:179:1: error: size of array 'checking_for_tLAST_TOKEN' is negative
 make: *** [parse.o] Error 1

It required a forced removal of id.h to properly compile after.

This caused a build failure when building RubyInstaller from existing compilation:

http://ci.rubyinstaller.org/job/ruby-trunk-x64/44/console
http://ci.rubyinstaller.org/job/ruby-trunk-x86/45/console

Perhaps id.h generation needs to be marked as dependency of parse.c itself?

=end


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