[llvm-bugs] [Bug 49443] New: plugin-related tests in check-llvm fail due to code signing when building with lld as host linker on arm macs

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 4 16:44:18 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=49443

            Bug ID: 49443
           Summary: plugin-related tests in check-llvm fail due to code
                    signing when building with lld as host linker on arm
                    macs
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MachO
          Assignee: unassignedbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: gkm at fb.com, jezreel at gmail.com,
                    llvm-bugs at lists.llvm.org, smeenai at fb.com

Repro: Do a debug build of `check-llvm` on an arm mac, with the host linker set
to the new lld mach-o port.

Expected: tests pass

Actual: most pass, but some fail with stuff like:

Error opening '/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib':
dlopen(/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib, 9): no
suitable image found.  Did find:
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: code
signature in (/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib)
not valid for use in process using Library Validation: Trying to load an
unsigned library
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: stat()
failed with errno=29
  -load request ignored.




So code signing seems to not work when writing dylibs maybe.




Full output:


thakis at M1BP gn % time caffeinate ninja check-llvm  
[56/933] AR lib/libLLVMOrcShared.a
objc[83571]: Class AMSupportURLConnectionDelegate is implemented in both ??
(0x2001fb8f0) and ?? (0x114b0c2b8). One of the two will be used. Which one is
undefined.
objc[83571]: Class AMSupportURLSession is implemented in both ?? (0x2001fb940)
and ?? (0x114b0c308). One of the two will be used. Which one is undefined.
2021-03-04 19:25:12.335 xcodebuild[83571:2367368] couldn't open: Error
Domain=Xcode Code=0 "couldn't open specification cache file at
/var/folders/x0/b0vxl8sd6099n_xxyfrk4j700000gn/C/com.apple.DeveloperTools/12.4-12D4e/Xcode/CachedSpecifications-xcodebuild:
Undefined error: 0" UserInfo={NSLocalizedDescription=couldn't open
specification cache file at
/var/folders/x0/b0vxl8sd6099n_xxyfrk4j700000gn/C/com.apple.DeveloperTools/12.4-12D4e/Xcode/CachedSpecifications-xcodebuild:
Undefined error: 0}
2021-03-04 19:25:12.335 xcodebuild[83571:2367368] Could not create the
specification cache file; proceeding with uncached specifications.  Error:
Error Domain=Xcode Code=0 "couldn't open specification cache file at
/var/folders/x0/b0vxl8sd6099n_xxyfrk4j700000gn/C/com.apple.DeveloperTools/12.4-12D4e/Xcode/CachedSpecifications-xcodebuild:
No such file or directory" UserInfo={NSLocalizedDescription=couldn't open
specification cache file at
/var/folders/x0/b0vxl8sd6099n_xxyfrk4j700000gn/C/com.apple.DeveloperTools/12.4-12D4e/Xcode/CachedSpecifications-xcodebuild:
No such file or directory}
[57/933] AR lib/libLLVMLineEditor.a
objc[83579]: Class AMSupportURLConnectionDelegate is implemented in both ??
(0x2001fb8f0) and ?? (0x1206942b8). One of the two will be used. Which one is
undefined.
objc[83579]: Class AMSupportURLSession is implemented in both ?? (0x2001fb940)
and ?? (0x120694308). One of the two will be used. Which one is undefined.
[60/933] AR lib/libLLVMRuntimeDyld.a
objc[83576]: Class AMSupportURLConnectionDelegate is implemented in both ??
(0x2001fb8f0) and ?? (0x113f702b8). One of the two will be used. Which one is
undefined.
objc[83576]: Class AMSupportURLSession is implemented in both ?? (0x2001fb940)
and ?? (0x113f70308). One of the two will be used. Which one is undefined.
[61/933] AR lib/libLLVMInterfaceStub.a
objc[83584]: Class AMSupportURLConnectionDelegate is implemented in both ??
(0x2001fb8f0) and ?? (0x114ab42b8). One of the two will be used. Which one is
undefined.
objc[83584]: Class AMSupportURLSession is implemented in both ?? (0x2001fb940)
and ?? (0x114ab4308). One of the two will be used. Which one is undefined.
[62/933] ACTION
//llvm/lib/Frontend/OpenACC:ACCImpl(//llvm/utils/gn/build/toolchain:unix)
objc[83572]: Class AMSupportURLConnectionDelegate is implemented in both ??
(0x2001fb8f0) and ?? (0x1284d02b8). One of the two will be used. Which one is
undefined.
objc[83572]: Class AMSupportURLSession is implemented in both ?? (0x2001fb940)
and ?? (0x1284d0308). One of the two will be used. Which one is undefined.
[65/933] AR lib/libLLVMFuzzMutate.a
objc[83592]: Class AMSupportURLConnectionDelegate is implemented in both ??
(0x2001fb8f0) and ?? (0x114f702b8). One of the two will be used. Which one is
undefined.
objc[83592]: Class AMSupportURLSession is implemented in both ?? (0x2001fb940)
and ?? (0x114f70308). One of the two will be used. Which one is undefined.
[921/923] ACTION //llvm/test:check-llvm(//llvm/utils/gn/build/toolchain:unix)
FAIL: LLVM-Unit :: Passes/./PluginsTests/PluginsTests.LoadPlugin (3852 of
42654)
******************** TEST 'LLVM-Unit ::
Passes/./PluginsTests/PluginsTests.LoadPlugin' FAILED ********************
Note: Google Test filter = PluginsTests.LoadPlugin
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from PluginsTests
[ RUN      ] PluginsTests.LoadPlugin
../../llvm/unittests/Passes/PluginsTest.cpp:50: Failure
Value of: !!Plugin
  Actual: false
Expected: true
Plugin path:
/Users/thakis/src/llvm-project/out/gn/obj/llvm/unittests/Passes/TestPlugin.dylib
Expected<T> must be checked before access or destruction.
Unchecked Expected<T> contained error:
Could not load library
'/Users/thakis/src/llvm-project/out/gn/obj/llvm/unittests/Passes/TestPlugin.dylib':
dlopen(/Users/thakis/src/llvm-project/out/gn/obj/llvm/unittests/Passes/TestPlugin.dylib,
9): no suitable image found.  Did find:
       
/Users/thakis/src/llvm-project/out/gn/obj/llvm/unittests/Passes/TestPlugin.dylib:
code signature in
(/Users/thakis/src/llvm-project/out/gn/obj/llvm/unittests/Passes/TestPlugin.dylib)
not valid for use in process using Library Validation: Trying to load an
unsigned library
       
/Users/thakis/src/llvm-project/out/gn/obj/llvm/unittests/Passes/TestPlugin.dylib:
stat() failed with errno=25
********************
FAIL: LLVM-Unit ::
Support/DynamicLibrary/./DynamicLibraryTests/DynamicLibrary.Overload (5316 of
42654)
******************** TEST 'LLVM-Unit ::
Support/DynamicLibrary/./DynamicLibraryTests/DynamicLibrary.Overload' FAILED
********************
Note: Google Test filter = DynamicLibrary.Overload
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from DynamicLibrary
[ RUN      ] DynamicLibrary.Overload
../../llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp:66: Failure
Value of: DL.isValid()
  Actual: false
Expected: true
../../llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp:67: Failure
Value of: Err.empty()
  Actual: false
Expected: true
../../llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp:70: Failure
Value of: GS != nullptr && GS != &TestA
  Actual: false
Expected: true

********************
FAIL: LLVM-Unit ::
Support/DynamicLibrary/./DynamicLibraryTests/DynamicLibrary.Shutdown (5317 of
42654)
******************** TEST 'LLVM-Unit ::
Support/DynamicLibrary/./DynamicLibraryTests/DynamicLibrary.Shutdown' FAILED
********************
Note: Google Test filter = DynamicLibrary.Shutdown
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from DynamicLibrary
[ RUN      ] DynamicLibrary.Shutdown
../../llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp:119: Failure
Value of: DL.isValid()
  Actual: false
Expected: true
../../llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp:120: Failure
Value of: Err.empty()
  Actual: false
Expected: true
../../llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp:124: Failure
Value of: SS_0 != nullptr
  Actual: false
Expected: true

********************
FAIL: LLVM-Unit ::
tools/llvm-cfi-verify/./CFIVerifyTests/BasicX86FileAnalysisTest.UndefSearchLengthOneTest
(5719 of 42654)
******************** TEST 'LLVM-Unit ::
tools/llvm-cfi-verify/./CFIVerifyTests/BasicX86FileAnalysisTest.UndefSearchLengthOneTest'
FAILED ********************
Note: Google Test filter = BasicX86FileAnalysisTest.UndefSearchLengthOneTest
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from BasicX86FileAnalysisTest
[ RUN      ] BasicX86FileAnalysisTest.UndefSearchLengthOneTest

********************
FAIL: LLVM-Unit ::
tools/llvm-cfi-verify/./CFIVerifyTests/BasicX86FileAnalysisTest.UndefSearchLengthOneTestFarAway
(5726 of 42654)
******************** TEST 'LLVM-Unit ::
tools/llvm-cfi-verify/./CFIVerifyTests/BasicX86FileAnalysisTest.UndefSearchLengthOneTestFarAway'
FAILED ********************
Note: Google Test filter =
BasicX86FileAnalysisTest.UndefSearchLengthOneTestFarAway
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from BasicX86FileAnalysisTest
[ RUN      ] BasicX86FileAnalysisTest.UndefSearchLengthOneTestFarAway

********************
FAIL: LLVM :: BugPoint/crash-narrowfunctiontest.ll (7515 of 42654)
******************** TEST 'LLVM :: BugPoint/crash-narrowfunctiontest.ll' FAILED
********************
Script:
--
: 'RUN: at line 3';   /Users/thakis/src/llvm-project/out/gn/bin/bugpoint -load
/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib
/Users/thakis/src/llvm-project/llvm/test/BugPoint/crash-narrowfunctiontest.ll
-output-prefix
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/crash-narrowfunctiontest.ll.tmp
-bugpoint-crashcalls -silence-passes > /dev/null
--
Exit Code: 1

Command Output (stderr):
--
Error opening '/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib':
dlopen(/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib, 9): no
suitable image found.  Did find:
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: code
signature in (/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib)
not valid for use in process using Library Validation: Trying to load an
unsigned library
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: stat()
failed with errno=29
  -load request ignored.
bugpoint: Unknown command line argument '-bugpoint-crashcalls'.  Try:
'/Users/thakis/src/llvm-project/out/gn/bin/bugpoint --help'
bugpoint: Did you mean '--print-after-all'?

--

********************
FAIL: LLVM :: BugPoint/metadata.ll (7516 of 42654)
******************** TEST 'LLVM :: BugPoint/metadata.ll' FAILED
********************
Script:
--
: 'RUN: at line 2';   /Users/thakis/src/llvm-project/out/gn/bin/bugpoint -load
/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib
/Users/thakis/src/llvm-project/llvm/test/BugPoint/metadata.ll -output-prefix
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/metadata.ll.tmp
-bugpoint-crashcalls -silence-passes -disable-namedmd-remove
-disable-strip-debuginfo -disable-strip-debug-types > /dev/null
: 'RUN: at line 3';   /Users/thakis/src/llvm-project/out/gn/bin/llvm-dis
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/metadata.ll.tmp-reduced-simplified.bc
-o - | /Users/thakis/src/llvm-project/out/gn/bin/FileCheck
/Users/thakis/src/llvm-project/llvm/test/BugPoint/metadata.ll
: 'RUN: at line 5';   /Users/thakis/src/llvm-project/out/gn/bin/bugpoint -load
/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib
/Users/thakis/src/llvm-project/llvm/test/BugPoint/metadata.ll -output-prefix
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/metadata.ll.tmp-nodebug
-bugpoint-crashcalls -silence-passes -disable-namedmd-remove > /dev/null
: 'RUN: at line 6';   /Users/thakis/src/llvm-project/out/gn/bin/llvm-dis
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/metadata.ll.tmp-nodebug-reduced-simplified.bc
-o - | /Users/thakis/src/llvm-project/out/gn/bin/FileCheck
/Users/thakis/src/llvm-project/llvm/test/BugPoint/metadata.ll
--check-prefix=NODEBUG
: 'RUN: at line 8';   /Users/thakis/src/llvm-project/out/gn/bin/bugpoint -load
/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib
/Users/thakis/src/llvm-project/llvm/test/BugPoint/metadata.ll -output-prefix
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/metadata.ll.tmp-notype
-bugpoint-crashcalls -silence-passes -disable-namedmd-remove
-disable-strip-debuginfo > /dev/null
: 'RUN: at line 9';   /Users/thakis/src/llvm-project/out/gn/bin/llvm-dis
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/metadata.ll.tmp-notype-reduced-simplified.bc
-o - | /Users/thakis/src/llvm-project/out/gn/bin/FileCheck
/Users/thakis/src/llvm-project/llvm/test/BugPoint/metadata.ll
--check-prefix=NOTYPE
--
Exit Code: 1

Command Output (stderr):
--
Error opening '/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib':
dlopen(/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib, 9): no
suitable image found.  Did find:
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: code
signature in (/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib)
not valid for use in process using Library Validation: Trying to load an
unsigned library
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: stat()
failed with errno=29
  -load request ignored.
bugpoint: Unknown command line argument '-bugpoint-crashcalls'.  Try:
'/Users/thakis/src/llvm-project/out/gn/bin/bugpoint --help'
bugpoint: Did you mean '--print-after-all'?

--

********************
FAIL: LLVM :: BugPoint/attr-crash.ll (7517 of 42654)
******************** TEST 'LLVM :: BugPoint/attr-crash.ll' FAILED
********************
Script:
--
: 'RUN: at line 1';   /Users/thakis/src/llvm-project/out/gn/bin/bugpoint -load
/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib
/Users/thakis/src/llvm-project/llvm/test/BugPoint/attr-crash.ll -output-prefix
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/attr-crash.ll.tmp
-bugpoint-crashfuncattr 2>&1 |
/Users/thakis/src/llvm-project/out/gn/bin/FileCheck
/Users/thakis/src/llvm-project/llvm/test/BugPoint/attr-crash.ll
--
Exit Code: 1


********************
FAIL: LLVM :: BugPoint/func-attrs-keyval.ll (7518 of 42654)
******************** TEST 'LLVM :: BugPoint/func-attrs-keyval.ll' FAILED
********************
Script:
--
: 'RUN: at line 1';   /Users/thakis/src/llvm-project/out/gn/bin/bugpoint -load
/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib
/Users/thakis/src/llvm-project/llvm/test/BugPoint/func-attrs-keyval.ll
-output-prefix
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/func-attrs-keyval.ll.tmp
-bugpoint-crashfuncattr -silence-passes
: 'RUN: at line 2';   /Users/thakis/src/llvm-project/out/gn/bin/llvm-dis
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/func-attrs-keyval.ll.tmp-reduced-simplified.bc
-o - | /Users/thakis/src/llvm-project/out/gn/bin/FileCheck
/Users/thakis/src/llvm-project/llvm/test/BugPoint/func-attrs-keyval.ll
--
Exit Code: 1

Command Output (stderr):
--
Error opening '/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib':
dlopen(/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib, 9): no
suitable image found.  Did find:
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: code
signature in (/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib)
not valid for use in process using Library Validation: Trying to load an
unsigned library
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: stat()
failed with errno=29
  -load request ignored.
bugpoint: Unknown command line argument '-bugpoint-crashfuncattr'.  Try:
'/Users/thakis/src/llvm-project/out/gn/bin/bugpoint --help'
bugpoint: Did you mean '--print-function'?

--

********************
FAIL: LLVM :: BugPoint/func-attrs.ll (7519 of 42654)
******************** TEST 'LLVM :: BugPoint/func-attrs.ll' FAILED
********************
Script:
--
: 'RUN: at line 1';   /Users/thakis/src/llvm-project/out/gn/bin/bugpoint -load
/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib
/Users/thakis/src/llvm-project/llvm/test/BugPoint/func-attrs.ll -output-prefix
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/func-attrs.ll.tmp
-bugpoint-crashfuncattr -silence-passes
: 'RUN: at line 2';   /Users/thakis/src/llvm-project/out/gn/bin/llvm-dis
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/func-attrs.ll.tmp-reduced-simplified.bc
-o - | /Users/thakis/src/llvm-project/out/gn/bin/FileCheck
-check-prefixes=ALL,ENABLED
/Users/thakis/src/llvm-project/llvm/test/BugPoint/func-attrs.ll
: 'RUN: at line 3';   /Users/thakis/src/llvm-project/out/gn/bin/bugpoint
-disable-attribute-remove -load
/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib
/Users/thakis/src/llvm-project/llvm/test/BugPoint/func-attrs.ll -output-prefix
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/func-attrs.ll.tmp
-bugpoint-crashfuncattr -silence-passes
: 'RUN: at line 4';   /Users/thakis/src/llvm-project/out/gn/bin/llvm-dis
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/func-attrs.ll.tmp-reduced-simplified.bc
-o - | /Users/thakis/src/llvm-project/out/gn/bin/FileCheck
-check-prefixes=ALL,DISABLED
/Users/thakis/src/llvm-project/llvm/test/BugPoint/func-attrs.ll
--
Exit Code: 1

Command Output (stderr):
--
Error opening '/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib':
dlopen(/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib, 9): no
suitable image found.  Did find:
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: code
signature in (/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib)
not valid for use in process using Library Validation: Trying to load an
unsigned library
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: stat()
failed with errno=29
  -load request ignored.
bugpoint: Unknown command line argument '-bugpoint-crashfuncattr'.  Try:
'/Users/thakis/src/llvm-project/out/gn/bin/bugpoint --help'
bugpoint: Did you mean '--print-function'?

--

********************
FAIL: LLVM :: BugPoint/named-md.ll (7520 of 42654)
******************** TEST 'LLVM :: BugPoint/named-md.ll' FAILED
********************
Script:
--
: 'RUN: at line 1';   /Users/thakis/src/llvm-project/out/gn/bin/bugpoint -load
/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib
/Users/thakis/src/llvm-project/llvm/test/BugPoint/named-md.ll -output-prefix
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/named-md.ll.tmp
-bugpoint-crash-too-many-cus -silence-passes -disable-strip-debuginfo >
/dev/null
: 'RUN: at line 2';   /Users/thakis/src/llvm-project/out/gn/bin/llvm-dis
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/named-md.ll.tmp-reduced-simplified.bc
-o - | /Users/thakis/src/llvm-project/out/gn/bin/FileCheck
/Users/thakis/src/llvm-project/llvm/test/BugPoint/named-md.ll
--
Exit Code: 1

Command Output (stderr):
--
Error opening '/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib':
dlopen(/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib, 9): no
suitable image found.  Did find:
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: code
signature in (/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib)
not valid for use in process using Library Validation: Trying to load an
unsigned library
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: stat()
failed with errno=29
  -load request ignored.
bugpoint: Unknown command line argument '-bugpoint-crash-too-many-cus'.  Try:
'/Users/thakis/src/llvm-project/out/gn/bin/bugpoint --help'
bugpoint: Did you mean '--spp-print-base-pointers'?

--

********************
FAIL: LLVM :: BugPoint/invalid-debuginfo.ll (7522 of 42654)
******************** TEST 'LLVM :: BugPoint/invalid-debuginfo.ll' FAILED
********************
Script:
--
: 'RUN: at line 1';   /Users/thakis/src/llvm-project/out/gn/bin/bugpoint -load
/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib
/Users/thakis/src/llvm-project/llvm/test/BugPoint/invalid-debuginfo.ll
-output-prefix
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/invalid-debuginfo.ll.tmp
-bugpoint-crash-too-many-cus -silence-passes 2>&1 |
/Users/thakis/src/llvm-project/out/gn/bin/FileCheck
/Users/thakis/src/llvm-project/llvm/test/BugPoint/invalid-debuginfo.ll
--
Exit Code: 1

Command Output (stderr):
--
/Users/thakis/src/llvm-project/llvm/test/BugPoint/invalid-debuginfo.ll:3:10:
error: CHECK: expected string not found in input
; CHECK: DICompileUnit not listed in llvm.dbg.cu
         ^
<stdin>:1:1: note: scanning from here
Error opening '/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib':
dlopen(/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib, 9): no
suitable image found. Did find:
^
<stdin>:1:165: note: possible intended match here
Error opening '/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib':
dlopen(/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib, 9): no
suitable image found. Did find:
                                                                               
                                                                               
    ^

Input file: <stdin>
Check file:
/Users/thakis/src/llvm-project/llvm/test/BugPoint/invalid-debuginfo.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1: Error opening
'/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib':
dlopen(/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib, 9): no
suitable image found. Did find: 
check:3'0    
X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: no match found
check:3'1                                                                      
                                                                               
                  ?                          possible intended match
           2:  /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib:
code signature in
(/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib) not valid for
use in process using Library Validation: Trying to load an unsigned library 
check:3'0    
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           3:  /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib:
stat() failed with errno=29 
check:3'0    
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           4:  -load request ignored. 
check:3'0     ~~~~~~~~~~~~~~~~~~~~~~~~
           5: bugpoint: Unknown command line argument
'-bugpoint-crash-too-many-cus'. Try:
'/Users/thakis/src/llvm-project/out/gn/bin/bugpoint --help' 
check:3'0    
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           6: bugpoint: Did you mean '--spp-print-base-pointers'? 
check:3'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

********************
FAIL: LLVM :: BugPoint/unsymbolized.ll (7531 of 42654)
******************** TEST 'LLVM :: BugPoint/unsymbolized.ll' FAILED
********************
Script:
--
: 'RUN: at line 2';   echo "import sys" >
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/unsymbolized.ll.tmp.py
: 'RUN: at line 3';   echo "print('args = ' + str(sys.argv))" >>
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/unsymbolized.ll.tmp.py
: 'RUN: at line 4';   echo "exit(1)" >>
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/unsymbolized.ll.tmp.py
: 'RUN: at line 5';   not /Users/thakis/src/llvm-project/out/gn/bin/bugpoint
-load /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib
/Users/thakis/src/llvm-project/llvm/test/BugPoint/unsymbolized.ll
-output-prefix
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/unsymbolized.ll.tmp
-bugpoint-crashcalls
-opt-command="/Applications/Xcode.app/Contents/Developer/usr/bin/python3"
-opt-args
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/unsymbolized.ll.tmp.py
| /Users/thakis/src/llvm-project/out/gn/bin/FileCheck
/Users/thakis/src/llvm-project/llvm/test/BugPoint/unsymbolized.ll
: 'RUN: at line 6';   not --crash /Users/thakis/src/llvm-project/out/gn/bin/opt
-enable-new-pm=0 -load
/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib
/Users/thakis/src/llvm-project/llvm/test/BugPoint/unsymbolized.ll
-bugpoint-crashcalls -disable-symbolication 2>&1 |
/Users/thakis/src/llvm-project/out/gn/bin/FileCheck --check-prefix=CRASH
/Users/thakis/src/llvm-project/llvm/test/BugPoint/unsymbolized.ll
: 'RUN: at line 7';   not /Users/thakis/src/llvm-project/out/gn/bin/bugpoint
-load /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib
/Users/thakis/src/llvm-project/llvm/test/BugPoint/unsymbolized.ll
-output-prefix
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/unsymbolized.ll.tmp
-bugpoint-crashcalls
-opt-command=/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/unsymbolized.ll.tmp.non.existent.opt.binary
-opt-args
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/unsymbolized.ll.tmp.py
2>&1 | /Users/thakis/src/llvm-project/out/gn/bin/FileCheck
/Users/thakis/src/llvm-project/llvm/test/BugPoint/unsymbolized.ll
--check-prefix=BAD-OPT
--
Exit Code: 2

Command Output (stderr):
--
Error opening '/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib':
dlopen(/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib, 9): no
suitable image found.  Did find:
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: code
signature in (/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib)
not valid for use in process using Library Validation: Trying to load an
unsigned library
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: stat()
failed with errno=29
  -load request ignored.
bugpoint: Unknown command line argument '-bugpoint-crashcalls'.  Try:
'/Users/thakis/src/llvm-project/out/gn/bin/bugpoint --help'
bugpoint: Did you mean '--print-after-all'?
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /Users/thakis/src/llvm-project/out/gn/bin/FileCheck
/Users/thakis/src/llvm-project/llvm/test/BugPoint/unsymbolized.ll

--

********************
FAIL: LLVM :: BugPoint/remove_arguments_test.ll (7532 of 42654)
******************** TEST 'LLVM :: BugPoint/remove_arguments_test.ll' FAILED
********************
Script:
--
: 'RUN: at line 1';   /Users/thakis/src/llvm-project/out/gn/bin/bugpoint -load
/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib
/Users/thakis/src/llvm-project/llvm/test/BugPoint/remove_arguments_test.ll
-output-prefix
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/remove_arguments_test.ll.tmp
-bugpoint-crashcalls -silence-passes
: 'RUN: at line 2';   /Users/thakis/src/llvm-project/out/gn/bin/llvm-dis
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/remove_arguments_test.ll.tmp-reduced-simplified.bc
-o - | /Users/thakis/src/llvm-project/out/gn/bin/FileCheck
/Users/thakis/src/llvm-project/llvm/test/BugPoint/remove_arguments_test.ll
--
Exit Code: 1

Command Output (stderr):
--
Error opening '/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib':
dlopen(/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib, 9): no
suitable image found.  Did find:
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: code
signature in (/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib)
not valid for use in process using Library Validation: Trying to load an
unsigned library
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: stat()
failed with errno=29
  -load request ignored.
bugpoint: Unknown command line argument '-bugpoint-crashcalls'.  Try:
'/Users/thakis/src/llvm-project/out/gn/bin/bugpoint --help'
bugpoint: Did you mean '--print-after-all'?

--

********************
FAIL: LLVM :: BugPoint/retain-crashing-metadata.ll (7535 of 42654)
******************** TEST 'LLVM :: BugPoint/retain-crashing-metadata.ll' FAILED
********************
Script:
--
: 'RUN: at line 2';   /Users/thakis/src/llvm-project/out/gn/bin/bugpoint -load
/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib
/Users/thakis/src/llvm-project/llvm/test/BugPoint/retain-crashing-metadata.ll
-output-prefix
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/retain-crashing-metadata.ll.tmp-notype
-bugpoint-crashmetadata -silence-passes > /dev/null
: 'RUN: at line 3';   /Users/thakis/src/llvm-project/out/gn/bin/llvm-dis
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/retain-crashing-metadata.ll.tmp-notype-reduced-simplified.bc
-o - | /Users/thakis/src/llvm-project/out/gn/bin/FileCheck
/Users/thakis/src/llvm-project/llvm/test/BugPoint/retain-crashing-metadata.ll
--
Exit Code: 1

Command Output (stderr):
--
Error opening '/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib':
dlopen(/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib, 9): no
suitable image found.  Did find:
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: code
signature in (/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib)
not valid for use in process using Library Validation: Trying to load an
unsigned library
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: stat()
failed with errno=29
  -load request ignored.
bugpoint: Unknown command line argument '-bugpoint-crashmetadata'.  Try:
'/Users/thakis/src/llvm-project/out/gn/bin/bugpoint --help'
bugpoint: Did you mean '--annotation2metadata'?

--

********************
FAIL: LLVM :: BugPoint/replace-funcs-with-null.ll (7540 of 42654)
******************** TEST 'LLVM :: BugPoint/replace-funcs-with-null.ll' FAILED
********************
Script:
--
: 'RUN: at line 3';   /Users/thakis/src/llvm-project/out/gn/bin/bugpoint -load
/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib
/Users/thakis/src/llvm-project/llvm/test/BugPoint/replace-funcs-with-null.ll
-output-prefix
/Users/thakis/src/llvm-project/out/gn/obj/llvm/test/BugPoint/Output/replace-funcs-with-null.ll.tmp
-replace-funcs-with-null -bugpoint-crash-decl-funcs -silence-passes
-safe-run-llc
--
Exit Code: 1

Command Output (stderr):
--
Error opening '/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib':
dlopen(/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib, 9): no
suitable image found.  Did find:
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: code
signature in (/Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib)
not valid for use in process using Library Validation: Trying to load an
unsigned library
        /Users/thakis/src/llvm-project/out/gn/lib/BugpointPasses.dylib: stat()
failed with errno=29
  -load request ignored.
bugpoint: Unknown command line argument '-bugpoint-crash-decl-funcs'.  Try:
'/Users/thakis/src/llvm-project/out/gn/bin/bugpoint --help'
bugpoint: Did you mean '--print-alias-sets'?

--

********************
FAIL: LLVM :: Transforms/CodeGenPrepare/remove-assume-block.ll (33448 of 42654)
******************** TEST 'LLVM ::
Transforms/CodeGenPrepare/remove-assume-block.ll' FAILED ********************
Script:
--
: 'RUN: at line 1';   /Users/thakis/src/llvm-project/out/gn/bin/opt -S
-codegenprepare <
/Users/thakis/src/llvm-project/llvm/test/Transforms/CodeGenPrepare/remove-assume-block.ll
| /Users/thakis/src/llvm-project/out/gn/bin/FileCheck
/Users/thakis/src/llvm-project/llvm/test/Transforms/CodeGenPrepare/remove-assume-block.ll
--
Exit Code: 2

Command Output (stderr):
--
LLVM ERROR: Trying to construct TargetPassConfig without a target machine.
Scheduling a CodeGen pass without a target triple set?
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: /Users/thakis/src/llvm-project/out/gn/bin/opt -S
-codegenprepare
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /Users/thakis/src/llvm-project/out/gn/bin/FileCheck
/Users/thakis/src/llvm-project/llvm/test/Transforms/CodeGenPrepare/remove-assume-block.ll

--

********************
********************
Failed Tests (17):
  LLVM-Unit :: Passes/./PluginsTests/PluginsTests.LoadPlugin
  LLVM-Unit ::
Support/DynamicLibrary/./DynamicLibraryTests/DynamicLibrary.Overload
  LLVM-Unit ::
Support/DynamicLibrary/./DynamicLibraryTests/DynamicLibrary.Shutdown
  LLVM-Unit ::
tools/llvm-cfi-verify/./CFIVerifyTests/BasicX86FileAnalysisTest.UndefSearchLengthOneTest
  LLVM-Unit ::
tools/llvm-cfi-verify/./CFIVerifyTests/BasicX86FileAnalysisTest.UndefSearchLengthOneTestFarAway
  LLVM :: BugPoint/attr-crash.ll
  LLVM :: BugPoint/crash-narrowfunctiontest.ll
  LLVM :: BugPoint/func-attrs-keyval.ll
  LLVM :: BugPoint/func-attrs.ll
  LLVM :: BugPoint/invalid-debuginfo.ll
  LLVM :: BugPoint/metadata.ll
  LLVM :: BugPoint/named-md.ll
  LLVM :: BugPoint/remove_arguments_test.ll
  LLVM :: BugPoint/replace-funcs-with-null.ll
  LLVM :: BugPoint/retain-crashing-metadata.ll
  LLVM :: BugPoint/unsymbolized.ll
  LLVM :: Transforms/CodeGenPrepare/remove-assume-block.ll


Testing Time: 376.25s
  Unsupported      : 23106
  Passed           : 19485
  Expectedly Failed:    46
  Failed           :    17
FAILED: gen/llvm/test/run-lit 
python3 bin/llvm-lit -sv ../../llvm/test
ninja: build stopped: subcommand failed.
caffeinate ninja check-llvm  3421.85s user 311.32s system 619% cpu 10:02.57
total

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210305/aa625538/attachment-0001.html>


More information about the llvm-bugs mailing list