[Bug 279576] WITHOUT_CLANG build option fails, possibly a race condition

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 07 Jun 2024 19:15:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279576

            Bug ID: 279576
           Summary: WITHOUT_CLANG build option fails, possibly a race
                    condition
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: editor@callfortesting.org

Seen for months, specifically tested on:
FreeBSD freebsd 15.0-CURRENT FreeBSD 15.0-CURRENT #0 main-n270474-d2f1f71ec8c6:
Thu May 30 03:12:57 UTC 2024    
root@releng3.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd6

The WITHOUT_CLANG build option enable these build options:

WITHOUT_CLANG_FULL    
WITHOUT_LLVM_COV
WITHOUT_LLVM_TARGET_AARCH64
WITHOUT_LLVM_TARGET_ALL 
WITHOUT_LLVM_TARGET_ARM
WITHOUT_LLVM_TARGET_POWERPC
WITHOUT_LLVM_TARGET_RISCV

On 16 thread and 48 thread builds on different systems, two cleanups (bw/iw and
w/iw in build_option_survey terms)fail on their removals without an error
message:

rm -f
/usr/obj//usr/src/tools/tools/build_option_survey/_.mnt/usr/share/man/man3/cap_rights_contains.3
/usr/obj//usr/src/tools/tools/build_option_survey/_.mnt/usr/share/man/man3/cap_rights_contains.3.gz;
 install -l h -o root -g wheel -m 444 
/usr/obj//usr/src/tools/tools/build_option_survey/_.mnt/usr/share/man/man3/cap_rights_init.3.gz
/usr/obj//usr/src/tools/tools/build_option_survey/_.mnt/usr/share/man/man3/cap_rights_contains.3.gz

make[4]: stopped in /usr/src/lib

In previous cases rm failures were caused by a different thread cleaning up a
parent directory.

I will post the results of a single-threaded build as soon as it completes. My
theory is that it will not exhibit the failure.

-- 
You are receiving this mail because:
You are the assignee for the bug.