[#106355] [Ruby master Bug#18373] RBS build failure: '/include/x86_64-linux/ruby/config.h', needed by 'constants.o'. — "vo.x (Vit Ondruch)" <noreply@...>
Issue #18373 has been reported by vo.x (Vit Ondruch).
28 messages
2021/12/01
[ruby-core:106929] [Ruby master Bug#17836] JIT fails to create a precompiled header with Clang
From:
"usa (Usaku NAKAMURA)" <noreply@...>
Date:
2021-12-31 10:06:14 UTC
List:
ruby-core #106929
Issue #17836 has been updated by usa (Usaku NAKAMURA). Backport changed from 2.7: REQUIRED, 3.0: DONE to 2.7: DONE, 3.0: DONE ruby_2_7 57f8bbcf63f8e2ef5c2cea488ba21c3e7c34f862 merged revision(s) 9f8a50723f8a84b3e4755b418570148f422d1b28. ---------------------------------------- Bug #17836: JIT fails to create a precompiled header with Clang https://bugs.ruby-lang.org/issues/17836#change-95750 * 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.7: DONE, 3.0: DONE ---------------------------------------- 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: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>