Bug 279676 - devel/libdispatch: fails to build (with llvm-18?)
Summary: devel/libdispatch: fails to build (with llvm-18?)
Status: Closed DUPLICATE of bug 276833
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dima Panov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-11 13:03 UTC by Anton Saietskii
Modified: 2024-06-16 10:39 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (fluffy)


Attachments
poudriere build failure log (6.49 KB, application/x-xz)
2024-06-11 13:03 UTC, Anton Saietskii
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***