From: duerst Date: 2022-03-29T11:17:31+00:00 Subject: [ruby-core:108106] [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). I hoped https://github.com/ruby/ruby/commit/8e2a2ba0f9 (Merge psych master; Added files: ext/psych/extlibs; Modified files: ext/psych/extconf.rb; by @hsbt) might help with this. It didn't. But after I tried `./configure --enable-load-relative --disable-install-doc`, I got the following in the output: ``` duerst@Kloentalersee:~/14ruby$ make up; make Already up to date. Current branch master is up to date. Latest commit hash = 8e2a2ba0f9 tool/config.guess already exists tool/config.sub already exists downloading for ext/fiddle/extlibs .downloaded-cache/libffi-3.2.1.tar.gz already exists checking md5 of .downloaded-cache/libffi-3.2.1.tar.gz ... OK checking sha512 of .downloaded-cache/libffi-3.2.1.tar.gz ... OK downloading for ext/psych/extlibs .downloaded-cache/yaml-0.2.5.tar.gz already exists checking rmd160 of .downloaded-cache/yaml-0.2.5.tar.gz ... OK checking sha256 of .downloaded-cache/yaml-0.2.5.tar.gz ... OK checking sha512 of .downloaded-cache/yaml-0.2.5.tar.gz ... OK make[1]: Entering directory '/home/duerst/14ruby' ``` I haven't seen this before (but it could be easy to miss, because the output passes by very quickly). I'm just pasting it here because it could help diagnose this bug. ---------------------------------------- Bug #18666: No rule to make target 'yaml/yaml.h', needed by 'api.o' https://bugs.ruby-lang.org/issues/18666#change-97070 * 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) mkmf.log (2.57 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: