Uploaded image for project: 'Puppet Agent'
  1. Puppet Agent
  2. PA-2138

Use a newer GCC on 32-bit SLES 11 to allow for using -O2 while building ruby 2.5.1

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Needs Information
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Template:
    • Team:
      Platform OS
    • QA Risk Assessment:
      Needs Assessment

      Description

      While building ruby 2.5.1 for SLES 11 (32-bit only), pl-gcc 4.8.2 errors with the following:

      compiling enc/us_ascii.c
      compiling enc/unicode.c
      compiling enc/utf_8.c
      compiling enc/trans/newline.c
      vm_exec.c: In function ‘vm_exec_core’:
      vm_exec.c:123: error: unable to find a register to spill in class ‘SIREG’
      vm_exec.c:123: error: this is the insn:
      (insn 2039 2037 2040 266 /usr/include/bits/string3.h:52 (parallel [
                  (set (reg:SI 2 cx [1643])
                      (const_int 0 [0x0]))
                  (set (reg/f:SI 1640 [ dst ])
                      (plus:SI (ashift:SI (reg:SI 2 cx [1642])
                              (const_int 2 [0x2]))
                          (reg/f:SI 1640 [ dst ])))
                  (set (reg:SI 1 dx [1641])
                      (plus:SI (ashift:SI (reg:SI 2 cx [1642])
                              (const_int 2 [0x2]))
                          (reg:SI 1 dx [1641])))
                  (set (mem:BLK (reg/f:SI 1640 [ dst ]) [0 A8])
                      (mem:BLK (reg:SI 1 dx [1641]) [0 A32]))
                  (use (reg:SI 2 cx [1642]))
              ]) 586 {*rep_movsi} (expr_list:REG_DEAD (reg:SI 2 cx [1642])
              (expr_list:REG_UNUSED (reg:SI 2 cx [1643])
                  (nil))))
      vm_exec.c:123: confused by earlier errors, bailing out

      Compiling with -O0 instead of -O2 works (-O1 does not). This seems like a GCC bug; We should try upgrading the version of GCC used on sles 11 and see if we can get back to using -O2.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              casey.williams Casey Williams
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support