From: michals Date: 2022-06-12T20:38:22+00:00 Subject: [ruby-core:108862] [Ruby master Bug#18808] Cannot compile ruby 3.1.2 on powerpc64le-linux without disabling the jit features Issue #18808 has been updated by michals (Michal Such��nek). diff --git a/tool/transform_mjit_header.rb b/tool/transform_mjit_header.rb index 8867c556f0..63a072573a 100644 --- a/tool/transform_mjit_header.rb +++ b/tool/transform_mjit_header.rb @@ -194,10 +194,10 @@ def self.conflicting_types?(code, cc, cflags) def self.with_code(code) # for `system_header` pragma which can't be in the main file. - Tempfile.open(['', '.h'], mode: File::BINARY) do |f| + File.open('/tmp/ruby-testheader.h', mode: File::BINARY|File::CREAT|File::RDWR|File::TRUNC) do |f| f.puts code f.close - Tempfile.open(['', '.c'], mode: File::BINARY) do |c| + File.open('/tmp/ruby-testprogram.c', mode: File::BINARY|File::CREAT|File::RDWR|File::TRUNC) do |c| c.puts <