[Bug 279676] devel/libdispatch: fails to build (with llvm-18?)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 11 Jun 2024 13:03:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279676 Bug ID: 279676 Summary: devel/libdispatch: fails to build (with llvm-18?) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: fluffy@FreeBSD.org Reporter: vsasjason@gmail.com Assignee: fluffy@FreeBSD.org Flags: maintainer-feedback?(fluffy@FreeBSD.org) Created attachment 251392 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=251392&action=edit poudriere build log After upgrading system to 14.1-RELEASE which contains LLVM 18, a decision has been made to switch ports' LLVM to 18 as well. Unfortunately, libdispatch doesn't build with the following error: /wrkdirs/usr/ports/devel/libdispatch/work/swift-corelibs-libdispatch-swift-5.5-RELEASE/src/shims/lock.c:541:10: error: call to undeclared function '_dispatch_ulock_wait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 541 | return _dispatch_ulock_wait(address, value, 0, flags); | ^ /wrkdirs/usr/ports/devel/libdispatch/work/swift-corelibs-libdispatch-swift-5.5-RELEASE/src/shims/lock.c:541:10: note: did you mean 'dispatch_block_wait'? /wrkdirs/usr/ports/devel/libdispatch/work/swift-corelibs-libdispatch-swift-5.5-RELEASE/dispatch/block.h:327:1: note: 'dispatch_block_wait' declared here 327 | dispatch_block_wait(dispatch_block_t block, dispatch_time_t timeout); | ^ /wrkdirs/usr/ports/devel/libdispatch/work/swift-corelibs-libdispatch-swift-5.5-RELEASE/src/shims/lock.c:546:8: error: call to undeclared function '_dispatch_ulock_wait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 546 | rc = _dispatch_ulock_wait(address, value, (uint32_t)usecs, flags); | ^ /wrkdirs/usr/ports/devel/libdispatch/work/swift-corelibs-libdispatch-swift-5.5-RELEASE/src/shims/lock.c:723:27: warning: implicit conversion loses integer precision: 'uintptr_t' (aka 'unsigned long') to 'dispatch_lock' (aka 'unsigned int') [-Wshorten-64-to-32] 723 | _dispatch_thread_switch(new_v, 0, timeout++); | ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~ 1 warning and 2 errors generated. ninja: build stopped: subcommand failed. *** Error code 1 (Attaching full build log as well.) -- You are receiving this mail because: You are the assignee for the bug.