From: takashikkbn@... Date: 2021-04-28T18:52:59+00:00 Subject: [ruby-core:103644] [Ruby master Bug#17836] JIT fails to create a precompiled header with Clang Issue #17836 has been updated by k0kubun (Takashi Kokubun). Sorry, I forgot adding `Co-authored-by` in the commit message (please consider using GitHub if you care), but I merged your patch. Thanks. ---------------------------------------- Bug #17836: JIT fails to create a precompiled header with Clang https://bugs.ruby-lang.org/issues/17836#change-91740 * Author: xtkoba (Tee KOBAYASHI) * Status: Closed * Priority: Normal * Assignee: k0kubun (Takashi Kokubun) * ruby -v: ruby 3.1.0dev (2021-04-24T02:17:20Z master dee58d7ae7) [x86_64-linux] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- A log message: ``` Creating precompiled header Starting process: /usr/lib/llvm/12/bin/clang /usr/lib/llvm/12/bin/clang --target=x86_64-pc-linux-gnu -w -funwind-tables -fdeclspec -Wfatal-errors -fPIC -shared -w -pipe -Oz -fno-fast-math -emit-pch -o /tmp/_ruby_mjit_hp16974u0.h.gch /var/tmp/ruby/xxx/include/ruby-3.1.0/x86_64-linux/rb_mjit_min_header-3.1.0.h clang-12: fatal error: cannot specify -o when generating multiple output files ``` According to https://lists.boost.org/boost-users/2017/01/87080.php, the `-c` option is (sometimes) needed to emit PCH with Clang. A patch is attached for that. ---Files-------------------------------- ruby-mjit-clang.patch (387 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: