From: duerst Date: 2022-03-28T05:28:07+00:00 Subject: [ruby-core:108095] [Ruby master Bug#18666] No rule to make target 'yaml/yaml.h', needed by 'api.o' Issue #18666 has been updated by duerst (Martin D��rst). File mkmf.log added hsbt (Hiroshi SHIBATA) wrote in #note-1: > Can you install `libyaml-dev` package via apt? Many thanks for your advice! I did this. Unfortunately, it didn't help, the error is still the same. I also tried `./configure --enable-load-relative --disable-install-doc`, but even this didn't help. The output does not include the word `yaml` anywhere. Maybe some additional configuration is necessary? I found a file at `/usr/include/yaml.h`. I'm not sure this is the right one. But it definitely cannot be found by `yaml/yaml.h`. I have attached the file `mkmf.log` from `ext/psych`, maybe this helps. ---------------------------------------- Bug #18666: No rule to make target 'yaml/yaml.h', needed by 'api.o' https://bugs.ruby-lang.org/issues/18666#change-97057 * Author: duerst (Martin D��rst) * Status: Open * Priority: Normal * Assignee: hsbt (Hiroshi SHIBATA) * ruby -v: ruby 3.1.0dev (2021-06-03T06:59:33Z master 7e14762159) [x86_64-linux] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- When updating my Ruby compilation with `make up; make`, I hit the following error: ``` make[2]: Entering directory '/home/duerst/14ruby/ext/psych' make[2]: *** No rule to make target 'yaml/yaml.h', needed by 'api.o'. Stop. make[2]: Leaving directory '/home/duerst/14ruby/ext/psych' make[1]: *** [exts.mk:262: ext/psych/all] Error 2 make[1]: Leaving directory '/home/duerst/14ruby' make: *** [uncommon.mk:307: build-ext] Error 2 ``` `./ruby -v` is `ruby 3.2.0dev (2022-03-22T19:51:05Z master 0140e6c41e) [x86_64-linux]` All of this is on Ubuntu 20.04 on WSL2 on Windows 10. My guess is that this bug is related to recent changes in psych/yaml/... ---Files-------------------------------- mkmf.log (14.8 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: