From: "nobu (Nobuyoshi Nakada)" Date: 2022-05-23T00:24:01+00:00 Subject: [ruby-core:108651] [Ruby master Bug#12590] Error compiling parse.c on cygwin Issue #12590 has been updated by nobu (Nobuyoshi Nakada). Status changed from Open to Closed This error occurs when lex.c is broken (typically empty). ---------------------------------------- Bug #12590: Error compiling parse.c on cygwin https://bugs.ruby-lang.org/issues/12590#change-97695 * Author: duerst (Martin D��rst) * Status: Closed * Priority: Normal * Assignee: cruby-cygwin * ruby -v: ruby 2.2.5p319 (2016-04-26 revision 54774) [x86_64-cygwin] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- This error compiling parse.c doesn't happen to myself, but to a student of mine. We have tried `make clean` and `make distclear` and then starting again with `.\configure`, and this has fixed other errors, but not this one. Even just some information on where the missing definitions (`struct kwtable`, `MAX_WORD_LENGTH`, `reserved_word`) are supposed to be defined, and how they are (supposed to be) included into parse.c, would help. ``` compiling parse.c parse.y: ������ ���parse_ident��� ���: parse.y:8044:22: ���������: dereferencing pointer to incomplete type ���const struct kwtable��� SET_LEX_STATE(kw->state); ^ parse.y:106:57: ������: in definition of macro ���SET_LEX_STATE��� (lex_state = (yydebug ? trace_lex_state(lex_state, (ls), __LINE__) : \ ^ parse.y: ������ ���reg_named_capture_assign_iter��� ���: parse.y:10614:9: ���������: ���MAX_WORD_LENGTH��� ������������������������������ (������������������������������������) (len < MAX_WORD_LENGTH && rb_reserved_word(s, (int)len)) || ^ parse.y:10614:9: ������: ��������������������������������������������������������������������������������� parse.y: ������ ���rb_reserved_word��� ���: parse.y:10882:12: ���������: ������ ���reserved_word��� ��������������������������� [-Werror=implicit-function-declaration] return reserved_word(str, len); ^ parse.y:10882:12: ������: ������������������������������������������������������������������������������ [-Wint-conversion] parse.y: ������������������: cc1: ������: ������������������������������������������������������ ���-Wno-self-assign��� ������ cc1: ������: ������������������������������������������������������ ���-Wno-constant-logical-operand��� ������ cc1: ������: ������������������������������������������������������ ���-Wno-parentheses-equality��� ������ cc1: ������: ������������������������������������������������������ ���-Wno-tautological-compare��� ������ cc1: some warnings being treated as errors make: *** [Makefile:365: parse.o] ��������� 1 ``` -- https://bugs.ruby-lang.org/ Unsubscribe: