HomeFreeBSD

shells/ksh*: Permanently fix LLVM15 build

Description

shells/ksh*: Permanently fix LLVM15 build

Fix aso atomics broken by LLVM:

/wrkdirs/usr/ports/shells/ksh/work/ksh-1.0.4/src/lib/libast/aso/aso.c
/wrkdirs/usr/ports/shells/ksh/work/ksh-1.0.4/src/lib/libast/aso/aso.c:839:10: error: incompatible integer to pointer conversion passing 'uint64_t' (aka 'unsigned long') to parameter of type 'void *' [-Wint-conversion]

return _aso_casptr((void**)p, o, n);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

./FEATURE/aso:19:66: note: expanded from macro '_aso_casptr'

^~~~~~~~~~~

/wrkdirs/usr/ports/shells/ksh/work/ksh-1.0.4/src/lib/libast/aso/aso.c:839:10: error: incompatible integer to pointer conversion passing 'uint64_t' (aka 'unsigned long') to parameter of type 'void *' [-Wint-conversion]

return _aso_casptr((void**)p, o, n);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

./FEATURE/aso:19:78: note: expanded from macro '_aso_casptr'

  ^~~~~~~~~~~

2 errors generated.
mamake [lib/libast]: * exit code 1 making aso.o
mamake:
* exit code 1 making lib/libast
mamake: *** exit code 1 making all
package: creating flat view
package: make failed at Fri Feb 10 06:00:01 UTC 2023 in /wrkdirs/usr/ports/shells/ksh/work/ksh-1.0.4/arch/freebsd14.amd64-64

  • Error code 1

Details

Provenance
cyAuthored on Feb 15 2023, 3:18 PM
Parents
R11:d74ee97ef91d: security/cops: Permanently fix LLVM15 errors
Branches
Unknown
Tags
Unknown