[llvm] MC: Allocate initial fragment and define section symbol in changeSection (PR #150574)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 25 12:33:33 PDT 2025


zeroomega wrote:

We are seeing test failure on Clang :: InstallAPI/diagnostics-dsym.test on mac-arm64 builders, error message:

```
FAIL: Clang :: InstallAPI/diagnostics-dsym.test (13614 of 21953)
******************** TEST 'Clang :: InstallAPI/diagnostics-dsym.test' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
rm -rf /Volumes/Work/s/w/ir/x/w/llvm_build/tools/clang/test/InstallAPI/Output/diagnostics-dsym.test.tmp # RUN: at line 4
+ rm -rf /Volumes/Work/s/w/ir/x/w/llvm_build/tools/clang/test/InstallAPI/Output/diagnostics-dsym.test.tmp
split-file /Volumes/Work/s/w/ir/x/w/llvm-llvm-project/clang/test/InstallAPI/diagnostics-dsym.test /Volumes/Work/s/w/ir/x/w/llvm_build/tools/clang/test/InstallAPI/Output/diagnostics-dsym.test.tmp # RUN: at line 5
+ split-file /Volumes/Work/s/w/ir/x/w/llvm-llvm-project/clang/test/InstallAPI/diagnostics-dsym.test /Volumes/Work/s/w/ir/x/w/llvm_build/tools/clang/test/InstallAPI/Output/diagnostics-dsym.test.tmp
/Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang --target=arm64-apple-macos11 -g -dynamiclib /Volumes/Work/s/w/ir/x/w/llvm_build/tools/clang/test/InstallAPI/Output/diagnostics-dsym.test.tmp/foo.c  -current_version 1 -compatibility_version 1 -L/Volumes/Work/s/w/ir/x/w/llvm_build/tools/clang/test/InstallAPI/Output/diagnostics-dsym.test.tmp/usr/lib  -save-temps -dynamiclib  -o /Volumes/Work/s/w/ir/x/w/llvm_build/tools/clang/test/InstallAPI/Output/diagnostics-dsym.test.tmp/foo.dylib -install_name /Volumes/Work/s/w/ir/x/w/llvm_build/tools/clang/test/InstallAPI/Output/diagnostics-dsym.test.tmp/foo.dylib # RUN: at line 8
+ /Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang --target=arm64-apple-macos11 -g -dynamiclib /Volumes/Work/s/w/ir/x/w/llvm_build/tools/clang/test/InstallAPI/Output/diagnostics-dsym.test.tmp/foo.c -current_version 1 -compatibility_version 1 -L/Volumes/Work/s/w/ir/x/w/llvm_build/tools/clang/test/InstallAPI/Output/diagnostics-dsym.test.tmp/usr/lib -save-temps -dynamiclib -o /Volumes/Work/s/w/ir/x/w/llvm_build/tools/clang/test/InstallAPI/Output/diagnostics-dsym.test.tmp/foo.dylib -install_name /Volumes/Work/s/w/ir/x/w/llvm_build/tools/clang/test/InstallAPI/Output/diagnostics-dsym.test.tmp/foo.dylib
foo.s:252:1: error: assembler local symbol 'Lsection_line' not defined

^
foo.s:252:1: error: assembler local symbol 'Lnames_begin' not defined

^
foo.s:252:1: error: assembler local symbol 'Ltypes_begin' not defined

^
foo.s:252:1: error: assembler local symbol 'Lsection_abbrev' not defined

^

--

********************
```

Build task: https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/clang-mac-arm64/b8708387743983202977/overview

Could you take a look please? If it takes a while to fix, could you revert it first?

https://github.com/llvm/llvm-project/pull/150574


More information about the llvm-commits mailing list