https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70416

            Bug ID: 70416
           Summary: [SH]: error: 'asm' operand requires impossible reload
                    when building ruby2.3
           Product: gcc
           Version: 5.3.1
               URL: https://buildd.debian.org/status/fetch.php?pkg=ruby2.3
                    &arch=sh4&ver=2.3.0-2&stamp=1455247013
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glaubitz at physik dot fu-berlin.de
                CC: bugdal at aerifal dot cx, kkojima at gcc dot gnu.org,
                    olegendo at gcc dot gnu.org
  Target Milestone: ---
            Target: sh*-*-*

Hi!

We're currently having issues building ruby2.3 on Debian sh4:

gcc -mieee -g -O2 -fstack-protector-strong -Wformat -Werror=format-security
-fPIC  -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow
-fvisibility=hidden -DRUBY_EXPORT -Wdate-time -D_FORTIFY_SOURCE=2   -I.
-I.ext/include/sh4-linux-gnu -I./include -I. -o vm.o -c vm.c
In file included from probes.h:10:0,
                 from vm.c:23:
vm_exec.c: In function 'vm_exec_core':
probes.h:21:1: error: 'asm' operand requires impossible reload
 DTRACE_PROBE4 (ruby, method__entry, arg1, arg2, arg3, arg4)
 ^
(...)
insns.def:825:13: note: in expansion of macro 'RUBY_DTRACE_CMETHOD_RETURN_HOOK'
             RUBY_DTRACE_CMETHOD_RETURN_HOOK(th, 0, 0);
             ^
Makefile:375: recipe for target 'vm.o' failed
make[2]: *** [vm.o] Error 1

I have initially suspected this to be a problem in ruby2.3 itself [1] as
ruby2.2 built without any problems. However, after doing some research, it
seems that the error message "'asm' operand requires impossible reload" usually
indicates a problem within gcc and I'm therefore opening a bug here.

I have created a tarball which contains the build root for ruby2.3 after the
build failed, so all the object files are still there [2].

Adrian

> [1] https://bugs.ruby-lang.org/issues/12120
> [2] https://people.debian.org/~glaubitz/ruby2.3-sh4-build.tgz

Reply via email to