Project

General

Profile

Actions

Bug #17836

closed

JIT fails to create a precompiled header with Clang

Added by xtkoba (Tee KOBAYASHI) almost 3 years ago. Updated about 2 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 3.1.0dev (2021-04-24T02:17:20Z master dee58d7ae7) [x86_64-linux]
[ruby-core:103629]

Description

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) ruby-mjit-clang.patch xtkoba (Tee KOBAYASHI), 04/27/2021 11:30 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0