Summary: | [build] cannot build 'sort' using WITH_SORT_THREADS=yes | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Anthony Cornehl <accornehl> | ||||
Component: | bin | Assignee: | Mark Johnston <markj> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | driesm, gcooper, markj, zakharov.vv | ||||
Priority: | --- | Keywords: | patch | ||||
Version: | CURRENT | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Anthony Cornehl
2015-07-17 22:33:56 UTC
Created attachment 167612 [details]
Fix building 'sort' with threads support
It seems to be ThreadSafetyAnasysis false positive [1]. Attached patch removes "-Werror" when sort is being built with threading support. Another way around is to lock/unlock mutex unconditionally. 1: http://clang.llvm.org/docs/ThreadSafetyAnalysis.html#conditional-locks This is still an issue in 11.1-RELEASE. A commit references this bug: Author: markj Date: Wed Feb 7 20:36:38 UTC 2018 New revision: 328995 URL: https://svnweb.freebsd.org/changeset/base/328995 Log: Fix the WITH_SORT_THREADS build. PR: 201664 MFC after: 1 week Changes: head/usr.bin/sort/radixsort.c A commit references this bug: Author: markj Date: Wed Feb 14 00:32:20 UTC 2018 New revision: 329255 URL: https://svnweb.freebsd.org/changeset/base/329255 Log: MFC r328995: Fix the WITH_SORT_THREADS build. PR: 201664 Changes: _U stable/11/ stable/11/usr.bin/sort/radixsort.c |