Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-52996

openssh-portable fails while building from code in ppc64le with -fzero-call-used-regs=used

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-10.0.beta
    • gcc
    • None
    • No
    • None
    • rhel-sst-pt-gcc
    • ssg_platform_tools
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • ppc64le
    • None

      What were you trying to do that didn't work?

      We are trying to build openssh-portable from code. This action succeeds in any other arch and only fails in ppc64le. This looks like something is wrong with the compiler.

      $ make
      ...
      cc -g -O2 -pipe -Wno-error=format-truncation -Wall -Wextra -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-parameter -Wno-unused-result -Wimplicit-fallthrough -Wmisleading-indentation -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -fzero-call-used-regs=used -ftrivial-auto-var-init=zero -fno-builtin-memset -fstack-protector-strong -fPIE   -I. -I.  -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -DOPENSSL_API_COMPAT=0x10100000L -DSSHDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/local/libexec/ssh-keysign\" -D_PATH_SSHD_SESSION=\"/usr/local/libexec/sshd-session\" -D_PATH_SSH_PKCS11_HELPER=\"/usr/local/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_SK_HELPER=\"/usr/local/libexec/ssh-sk-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c cipher.c -o cipher.o
      cipher.c: In function 'cipher_init':
      cipher.c:258:32: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
        258 |         if ((cc = calloc(sizeof(*cc), 1)) == NULL)
            |                                ^
      cipher.c:258:32: note: earlier argument should specify number of elements, later size of each element
      cipher.c: In function 'compression_alg_list':
      cipher.c:151:1: sorry, unimplemented: argument 'used' is not supported for '-fzero-call-used-regs' on this target
        151 | }
            | ^
      make: *** [Makefile:203: cipher.o] Error 1

      Please provide the package NVR for which bug is seen:

      gcc-14.1.1-5.el10.ppc64le

      How reproducible:

      Always

      Steps to reproduce

      1.  provision a ppc64le machine
      2.  git clone https://github.com/openssh/openssh-portable
      3.  cd openssh-portable
      4.  autoreconf
      5.  ./configure -q
      6.  make

      Expected results

      Code would be build successfully

      Actual results

      Code building is failing with error:

      cipher.c: In function 'cipher_init':
      cipher.c:258:32: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
        258 |         if ((cc = calloc(sizeof(*cc), 1)) == NULL)
            |                                ^
      cipher.c:258:32: note: earlier argument should specify number of elements, later size of each element
      cipher.c: In function 'compression_alg_list':
      cipher.c:151:1: sorry, unimplemented: argument 'used' is not supported for '-fzero-call-used-regs' on this target
        151 | }
            | ^ 

              mpolacek@redhat.com Marek Polacek
              rh-ee-gpantela George Pantelakis
              Marek Polacek Marek Polacek
              Vaclav Kadlcik Vaclav Kadlcik
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: