[PATCH] D152973: [gold] Add preliminary FatLTO support to the Gold plugin

Timm Bäder via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 20 00:12:09 PDT 2023


tbaeder added a comment.

The tools/gold/X86/fatlto/fatlto.test fails for us on everything but x86_64:

  ******************** TEST 'LLVM :: tools/gold/X86/fatlto/fatlto.test' FAILED ********************
  Script:
  --
  : 'RUN: at line 3';   rm -rf /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp && split-file /builddir/build/BUILD/llvm-17.0.0.src/test/tools/gold/X86/fatlto/fatlto.test /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp
  : 'RUN: at line 6';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/llc /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a-LTO.ll --filetype=obj -o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a-fatLTO.o
  : 'RUN: at line 7';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/opt --module-summary /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a-LTO.ll -o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a-fatLTO.bc
  : 'RUN: at line 8';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/llvm-objcopy --add-section=.llvm.lto=/builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a-fatLTO.bc /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a-fatLTO.o
  : 'RUN: at line 9';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/llvm-objcopy --set-section-flags=.llvm.lto=readonly,exclude /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a-fatLTO.o
  : 'RUN: at line 10';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/llvm-readobj -S /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a-fatLTO.o | /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/FileCheck --check-prefix=CHECK-A /builddir/build/BUILD/llvm-17.0.0.src/test/tools/gold/X86/fatlto/fatlto.test
  : 'RUN: at line 14';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/llc /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main-LTO.ll --filetype=obj -o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main-fatLTO.o
  : 'RUN: at line 15';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/opt --module-summary /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main-LTO.ll -o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main-fatLTO.bc
  : 'RUN: at line 16';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/llvm-objcopy --add-section=.llvm.lto=/builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main-fatLTO.bc /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main-fatLTO.o
  : 'RUN: at line 17';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/llvm-objcopy --set-section-flags=.llvm.lto=readonly,exclude /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main-fatLTO.o
  : 'RUN: at line 18';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/llvm-readobj -S /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main-fatLTO.o | /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/FileCheck --check-prefix=CHECK-MAIN /builddir/build/BUILD/llvm-17.0.0.src/test/tools/gold/X86/fatlto/fatlto.test
  : 'RUN: at line 23';   /usr/bin/ld.gold -plugin /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/lib64/LLVMgold.so -o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/foo-fatLTO /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a-fatLTO.o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main-fatLTO.o
  : 'RUN: at line 24';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/llvm-readobj -S /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/foo-fatLTO | /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/FileCheck --check-prefix=CHECK-LTO-TARGET /builddir/build/BUILD/llvm-17.0.0.src/test/tools/gold/X86/fatlto/fatlto.test
  : 'RUN: at line 27';   /usr/bin/ld.gold -plugin /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/lib64/LLVMgold.so -o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/foo-fatLTO.start_lib --start-lib /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a-fatLTO.o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main-fatLTO.o --end-lib
  : 'RUN: at line 28';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/llvm-readobj -S /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/foo-fatLTO.start_lib | /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/FileCheck --check-prefix=CHECK-LTO-TARGET /builddir/build/BUILD/llvm-17.0.0.src/test/tools/gold/X86/fatlto/fatlto.test
  : 'RUN: at line 34';   /usr/bin/ld.gold -o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/foo-fatNoLTO /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a-fatLTO.o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main-fatLTO.o
  : 'RUN: at line 35';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/llvm-readobj -S /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/foo-fatNoLTO | /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/FileCheck --check-prefix=CHECK-NON-LTO-TARGET /builddir/build/BUILD/llvm-17.0.0.src/test/tools/gold/X86/fatlto/fatlto.test
  : 'RUN: at line 42';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/opt --module-summary /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a-LTO.ll -o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a-LTO.bc
  : 'RUN: at line 43';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/opt --module-summary /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main-LTO.ll -o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main-LTO.bc
  : 'RUN: at line 44';   /usr/bin/ld.gold -plugin /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/lib64/LLVMgold.so -o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/foo-LTO /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a-LTO.bc /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main-LTO.bc
  : 'RUN: at line 45';   cmp /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/foo-fatLTO /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/foo-LTO
  : 'RUN: at line 50';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/llc /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a-LTO.ll --filetype=obj -o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a.o
  : 'RUN: at line 51';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/llc /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main-LTO.ll --filetype=obj -o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main.o
  : 'RUN: at line 53';   /usr/bin/ld.gold -o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/foo-noLTO /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a.o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main.o
  : 'RUN: at line 54';   cmp /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/foo-fatNoLTO /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/foo-noLTO
  : 'RUN: at line 57';   /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/bin/llvm-ar rcs /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a.a /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a-fatLTO.o
  : 'RUN: at line 58';   /usr/bin/ld.gold -plugin /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/lib64/LLVMgold.so -o /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/foo-fatLTO.archive /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/main-LTO.bc /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/a.a
  : 'RUN: at line 59';   cmp /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/foo-fatLTO.archive /builddir/build/BUILD/llvm-17.0.0.src/redhat-linux-build/test/tools/gold/X86/fatlto/Output/fatlto.test.tmp/foo-LTO
  --
  Exit Code: 1
  
  Command Output (stderr):
  --
  /usr/bin/ld.gold: error: /tmp/lit-tmp-_vrw63qp/lto-llvm-fd907e.o: incompatible target


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152973



More information about the llvm-commits mailing list