Issue 165781
Summary basic-block-sections-bb-hash.ll fails on darwin.
Labels new issue
Assignees
Reporter rlavaee
    LLVM build bot shows that this test fails on darwin. However, the test passes on linux.
The error ( unsigned integer expected: '-') indicates that the grep/etc. commands did not capture the basic block ID was not captured properly. 

BUILD FAILED: failed test (failure)

Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/X86/basic-block-sections-bb-hash.ll' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 3
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/llc /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/CodeGen/X86/basic-block-sections-bb-hash.ll -O0 -mtriple=x86_64-pc-linux -function-sections -filetype=obj -basic-block-address-map -emit-bb-hash -o /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/CodeGen/X86/Output/basic-block-sections-bb-hash.ll.tmp.o
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/llc /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/CodeGen/X86/basic-block-sections-bb-hash.ll -O0 -mtriple=x86_64-pc-linux -function-sections -filetype=obj -basic-block-address-map -emit-bb-hash -o /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/CodeGen/X86/Output/basic-block-sections-bb-hash.ll.tmp.o
# note: command had no output on stdout or stderr
# RUN: at line 4
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/obj2yaml /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/CodeGen/X86/Output/basic-block-sections-bb-hash.ll.tmp.o -o /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/CodeGen/X86/Output/basic-block-sections-bb-hash.ll.tmp.yaml
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/obj2yaml /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/CodeGen/X86/Output/basic-block-sections-bb-hash.ll.tmp.o -o /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/CodeGen/X86/Output/basic-block-sections-bb-hash.ll.tmp.yaml
# note: command had no output on stdout or stderr
# RUN: at line 7
echo 'v1' > /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/CodeGen/X86/Output/basic-block-sections-bb-hash.ll.tmp
# executed command: echo v1
# note: command had no output on stdout or stderr
# RUN: at line 8
echo 'f foo' >> /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/CodeGen/X86/Output/basic-block-sections-bb-hash.ll.tmp
# executed command: echo 'f foo'
# note: command had no output on stdout or stderr
# RUN: at line 9
echo 'g 0:10,1:9,2:1 1:8,3:8 2:2,3:2 3:11' >> /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/CodeGen/X86/Output/basic-block-sections-bb-hash.ll.tmp
# executed command: echo 'g 0:10,1:9,2:1 1:8,3:8 2:2,3:2 3:11'
# note: command had no output on stdout or stderr
# RUN: at line 10
echo 'c 0 2 3' >> /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/CodeGen/X86/Output/basic-block-sections-bb-hash.ll.tmp
# executed command: echo 'c 0 2 3'
# note: command had no output on stdout or stderr
# RUN: at line 14
grep -E '^\s+(- ID:|Hash:)' /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/CodeGen/X86/Output/basic-block-sections-bb-hash.ll.tmp.yaml |  grep -B1 'Hash:' |  sed 's/^\s*//; s/^- ID: *//; s/Hash: *0x//' |  paste -d: - - |  tr '\n' ' ' |  sed 's/ $/\n/; s/^/h /' >> /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/CodeGen/X86/Output/basic-block-sections-bb-hash.ll.tmp
# executed command: grep -E '^\s+(- ID:|Hash:)' /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/CodeGen/X86/Output/basic-block-sections-bb-hash.ll.tmp.yaml
# note: command had no output on stdout or stderr
# executed command: grep -B1 Hash:
# note: command had no output on stdout or stderr
# executed command: sed 's/^\s*//; s/^- ID: *//; s/Hash: *0x//'
# note: command had no output on stdout or stderr
# executed command: paste -d: - -
# note: command had no output on stdout or stderr
# executed command: tr '\n' ' '
# note: command had no output on stdout or stderr
# executed command: sed 's/ $/\n/; s/^/h /'
# note: command had no output on stdout or stderr
# RUN: at line 21
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/llc < /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/CodeGen/X86/basic-block-sections-bb-hash.ll -O0 -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/CodeGen/X86/Output/basic-block-sections-bb-hash.ll.tmp | /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/CodeGen/X86/basic-block-sections-bb-hash.ll
# executed command: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/llc -O0 -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/CodeGen/X86/Output/basic-block-sections-bb-hash.ll.tmp
# .---command stderr------------
# | LLVM ERROR: invalid profile /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/test/CodeGen/X86/Output/basic-block-sections-bb-hash.ll.tmp at line 5: unsigned integer expected: '-'
# |
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to