[PATCH] D126800: Write output sections in parallel

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 1 16:15:29 PDT 2022


thakis added a comment.

I patched this in and ran `ninja check-lld` and this breaks tests:

  FAIL: lld :: MachO/invalid/range-check.s (804 of 2631)
  ******************** TEST 'lld :: MachO/invalid/range-check.s' FAILED ********************
  Script:
  --
  : 'RUN: at line 3';   rm -rf /Users/thakis/src/llvm-project/out/gn/obj/lld/test/MachO/invalid/Output/range-check.s.tmp; split-file /Users/thakis/src/llvm-project/lld/test/MachO/invalid/range-check.s /Users/thakis/src/llvm-project/out/gn/obj/lld/test/MachO/invalid/Output/range-check.s.tmp
  : 'RUN: at line 4';   /Users/thakis/src/llvm-project/out/gn/bin/llvm-mc -filetype=obj -triple=x86_64-apple-darwin /Users/thakis/src/llvm-project/out/gn/obj/lld/test/MachO/invalid/Output/range-check.s.tmp/test.s -o /Users/thakis/src/llvm-project/out/gn/obj/lld/test/MachO/invalid/Output/range-check.s.tmp/test.o
  : 'RUN: at line 5';   /Users/thakis/src/llvm-project/out/gn/bin/llvm-mc -filetype=obj -triple=x86_64-apple-darwin /Users/thakis/src/llvm-project/out/gn/obj/lld/test/MachO/invalid/Output/range-check.s.tmp/bar.s -o /Users/thakis/src/llvm-project/out/gn/obj/lld/test/MachO/invalid/Output/range-check.s.tmp/bar.o
  : 'RUN: at line 6';   ld64.lld -arch x86_64 -platform_version macos 11.0 11.0 -syslibroot /Users/thakis/src/llvm-project/lld/test/MachO/Inputs/MacOSX.sdk -fatal_warnings -dylib /Users/thakis/src/llvm-project/out/gn/obj/lld/test/MachO/invalid/Output/range-check.s.tmp/bar.o -o /Users/thakis/src/llvm-project/out/gn/obj/lld/test/MachO/invalid/Output/range-check.s.tmp/libbar.dylib
  : 'RUN: at line 7';   not ld64.lld -arch x86_64 -platform_version macos 11.0 11.0 -syslibroot /Users/thakis/src/llvm-project/lld/test/MachO/Inputs/MacOSX.sdk -fatal_warnings -lSystem -o /dev/null /Users/thakis/src/llvm-project/out/gn/obj/lld/test/MachO/invalid/Output/range-check.s.tmp/libbar.dylib /Users/thakis/src/llvm-project/out/gn/obj/lld/test/MachO/invalid/Output/range-check.s.tmp/test.o 2>&1 | /Users/thakis/src/llvm-project/out/gn/bin/FileCheck /Users/thakis/src/llvm-project/lld/test/MachO/invalid/range-check.s
  --
  Exit Code: 1
  
  Command Output (stderr):
  --
  /Users/thakis/src/llvm-project/lld/test/MachO/invalid/range-check.s:11:10: error: CHECK: expected string not found in input
  # CHECK: error: stub is out of range: [[#]] is not in [-2147483648, 2147483647]; references _bar
           ^
  <stdin>:5:235: note: scanning from here
  ld64.lld: error: /Users/thakis/src/llvm-project/out/gn/obj/lld/test/MachO/invalid/Output/range-check.s.tmp/test.o:(symbol _main+0x3): relocation GOT_LOAD is out of range: 4294974025 is not in [-2147483648, 2147483647]; references _foo
                                                                                                                                                                                                                                            ^
  
  Input file: <stdin>
  Check file: /Users/thakis/src/llvm-project/lld/test/MachO/invalid/range-check.s
  
  -dump-input=help explains the following input dump.
  
  Input was:
  <<<<<<
            1: ld64.lld: error: stub helper header is out of range: 4294973997 is not in [-2147483648, 2147483647] 
            2: ld64.lld: error: stub helper header is out of range: 4294969885 is not in [-2147483648, 2147483647] 
            3: ld64.lld: error: stub is out of range: 4294973998 is not in [-2147483648, 2147483647]; references _bar 
            4: ld64.lld: error: /Users/thakis/src/llvm-project/out/gn/obj/lld/test/MachO/invalid/Output/range-check.s.tmp/test.o:(symbol _main+0xd): relocation UNSIGNED is out of range: 8589942792 is not in [0, 4294967295]; references _foo 
            5: ld64.lld: error: /Users/thakis/src/llvm-project/out/gn/obj/lld/test/MachO/invalid/Output/range-check.s.tmp/test.o:(symbol _main+0x3): relocation GOT_LOAD is out of range: 4294974025 is not in [-2147483648, 2147483647]; references _foo 
  check:11                                                                                                                                                                                                                                               X error: no match found
  >>>>>>
  
  --
  
  ********************
  ********************
  Failed Tests (1):
    lld :: MachO/invalid/range-check.s


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126800/new/

https://reviews.llvm.org/D126800



More information about the llvm-commits mailing list