From: duerst@... Date: 2016-07-03T09:30:26+00:00 Subject: [ruby-core:76246] [Ruby trunk Bug#12526][Closed] Error trying to compile enc/euc_jp.c Issue #12526 has been updated by Martin D��rst. Status changed from Open to Closed This problem was fixed by 'svn up'. I have no idea why the files in question (enc/jis/props.h) was empty. ---------------------------------------- Bug #12526: Error trying to compile enc/euc_jp.c https://bugs.ruby-lang.org/issues/12526#change-59485 * Author: Martin D��rst * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 2.2.5p319 (2016-04-26 revision 54774) [x86_64-cygwin] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- On a fresh checkout of ruby trunk on a fresh installation of cygwin, I get the error below. gperf (3.0.4) is available, but it may not always have been available during the build process. For commands such as `make enc/jis/props.h`, I get a reply of `make: 'enc/jis/props.h' is up to date.`, but the actual enc/jis/props.h is empty, which is shouldn't be. What's the best way to re-start the generation process for enc/jis/props.h (and everything else necessary) without having to start from a new checkout? Also, if possible, please fix this so that it doesn't claim it's done when there's just an empty file. ``` compiling ./enc/euc_jp.c ./enc/euc_jp.c: In function ���property_name_to_ctype���: ./enc/euc_jp.c:510:5: warning: implicit declaration of function ���onig_jis_property��� [-Wimplicit-function-declaration] onig_jis_property((const char* )s, (unsigned int )(e - s)); ^ ./enc/euc_jp.c:510:5: warning: initialization makes pointer from integer without a cast [-Wint-conversion] ./enc/euc_jp.c:516:20: error: dereferencing pointer to incomplete type ���const struct enc_property��� return (int )prop->ctype; ^ ./enc/euc_jp.c: In function ���is_code_ctype���: ./enc/euc_jp.c:533:33: error: ���PropertyListNum��� undeclared (first use in this function) if (ctype >= (unsigned int )PropertyListNum) ^ ./enc/euc_jp.c:533:33: note: each undeclared identifier is reported only once for each function it appears in ./enc/euc_jp.c:536:43: error: ���PropertyList��� undeclared (first use in this function) return onig_is_in_code_range((UChar* )PropertyList[ctype], code); ^ ./enc/euc_jp.c: In function ���get_ctype_code_range���: ./enc/euc_jp.c:553:30: error: ���PropertyListNum��� undeclared (first use in this function) if (ctype >= (OnigCtype )PropertyListNum) ^ ./enc/euc_jp.c:556:15: error: ���PropertyList��� undeclared (first use in this function) *ranges = PropertyList[ctype]; ^ ./enc/euc_jp.c: In function ���property_name_to_ctype���: ./enc/euc_jp.c:517:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ./enc/euc_jp.c: At top level: cc1: warning: unrecognized command line option ���-Wno-self-assign��� cc1: warning: unrecognized command line option ���-Wno-constant-logical-operand��� cc1: warning: unrecognized command line option ���-Wno-parentheses-equality��� cc1: warning: unrecognized command line option ���-Wno-tautological-compare��� make[1]: *** [enc.mk:597: enc/euc_jp.o] Error 1 make[1]: Leaving directory '/cygdrive/c/Data/myruby' make: *** [uncommon.mk:650: enc] Error 2 rm cygruby240.rc ``` -- https://bugs.ruby-lang.org/ Unsubscribe: