[Bug 255308] shells/ast-ksh: fix build on powerpc64*

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Apr 21 16:18:11 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255308

            Bug ID: 255308
           Summary: shells/ast-ksh: fix build on powerpc64*
           Product: Ports & Packages
           Version: Latest
          Hardware: powerpc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: pkubaj at FreeBSD.org
                CC: powerpc at FreeBSD.org, saper at saper.info
                CC: powerpc at FreeBSD.org, saper at saper.info
             Flags: maintainer-feedback?(saper at saper.info)

Created attachment 224334
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=224334&action=edit
patch

This patch brings back patches that were committed as part of
https://svnweb.freebsd.org/ports?view=revision&revision=346423.

This is necessary to build on powerpc64 and powerpc64le, due to the following
error:
+ cc -D_BLD_DLL -fPIC -D_BLD_ast -Wno-unused-value -Wno-parentheses
-Wno-logical-op-parentheses -O2 -pipe -fstack-protector-strong
-fno-strict-aliasing -I.
-I/wrkdirs/usr/ports/shells/ast-ksh/work/ast-ksh93v/src/lib/libast -Icomp
-I/wrkdirs/usr/ports/shells/ast-ksh/work/ast-ksh93v/src/lib/libast/comp -Ihash
-I/wrkdirs/usr/ports/shells/ast-ksh/work/ast-ksh93v/src/lib/libast/hash
-Iinclude
-I/wrkdirs/usr/ports/shells/ast-ksh/work/ast-ksh93v/src/lib/libast/include
-Istd -I/wrkdirs/usr/ports/shells/ast-ksh/work/ast-ksh93v/src/lib/libast/std
-D_PACKAGE_ast -c
/wrkdirs/usr/ports/shells/ast-ksh/work/ast-ksh93v/src/lib/libast/hash/hashalloc.c
/wrkdirs/usr/ports/shells/ast-ksh/work/ast-ksh93v/src/lib/libast/hash/hashalloc.c:162:4:
error: non-const lvalue reference to type '__builtin_va_list' cannot bind to a
temporary of type 'va_list' (aka 'char *')
                        va_copy(ap, va_listval(va_arg(ap, va_listarg)));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/_stdarg.h:49:32: note: expanded from macro 'va_copy'
    #define     va_copy(dest, src)      __va_copy(dest, src)
                                        ^~~~~~~~~~~~~~~~~~~~
/usr/include/sys/_stdarg.h:47:58: note: expanded from macro '__va_copy'
  #define       __va_copy(dest, src)    __builtin_va_copy((dest), (src))
                                                                  ^~~~~
1 error generated.
mamake [lib/libast]: *** exit code 1 making hashalloc.o

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ppc mailing list