Bug 279676

Summary: devel/libdispatch: fails to build (with llvm-18?)
Product: Ports & Packages Reporter: Anton Saietskii <vsasjason>
Component: Individual Port(s)Assignee: Dima Panov <fluffy>
Status: Closed DUPLICATE    
Severity: Affects Only Me CC: agh
Priority: --- Flags: bugzilla: maintainer-feedback? (fluffy)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
poudriere build failure log none

Description Anton Saietskii 2024-06-11 13:03:10 UTC
Created attachment 251392 [details]
poudriere build failure 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.)
Comment 1 Anton Saietskii 2024-06-16 10:39:26 UTC

*** This bug has been marked as a duplicate of bug 276833 ***