From 0e61f57458a1190bd9e0655ed965df8102daa963 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Mon, 22 Dec 2025 21:58:15 +0000 Subject: [PATCH] Print errno to help diagnose failure to spawn ABC --- passes/techmap/abc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passes/techmap/abc.cc b/passes/techmap/abc.cc index a25a79ae8..e25a6facd 100644 --- a/passes/techmap/abc.cc +++ b/passes/techmap/abc.cc @@ -253,7 +253,7 @@ std::optional spawn_abc(const char* abc_exe, DeferredLogs &logs) { char arg1[] = "-s"; char* argv[] = { strdup(abc_exe), arg1, nullptr }; if (0 != posix_spawnp(&result.pid, abc_exe, &file_actions, nullptr, argv, environ)) { - logs.log_error("posix_spawnp %s failed", abc_exe); + logs.log_error("posix_spawnp %s failed (errno=%s)", abc_exe, strerrorname_np(errno)); return std::nullopt; } free(argv[0]);