[llvm-commits] [llvm] r141641 [2/2] - in /llvm/trunk: lib/MC/ELFObjectWriter.cpp test/MC/ELF/many-section.s

Nick Lewycky nicholas at mxc.ca
Tue Oct 11 00:38:35 PDT 2011


David Dean wrote:
> One of our builders is failing after this check-in:
>
> ******************** TEST 'LLVM :: MC/ELF/many-section.s' FAILED ********************Script:
> --
> /Users/buildslave/zorg/buildbot/smooshlab/slave-0.8/build.clang-x86_64-darwin10-gcc42-RA/clang-build/Release+Asserts/bin/llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu /Users/buildslave/zorg/buildbot/smooshlab/slave-0.8/build.clang-x86_64-darwin10-gcc42-RA/llvm/test/MC/ELF/many-section.s -o /Users/buildslave/zorg/buildbot/smooshlab/slave-0.8/build.clang-x86_64-darwin10-gcc42-RA/clang-build/test/MC/ELF/Output/many-section.s.tmp
> /Users/buildslave/zorg/buildbot/smooshlab/slave-0.8/build.clang-x86_64-darwin10-gcc42-RA/clang-build/Release+Asserts/bin/llvm-nm /Users/buildslave/zorg/buildbot/smooshlab/slave-0.8/build.clang-x86_64-darwin10-gcc42-RA/clang-build/test/MC/ELF/Output/many-section.s.tmp | /Users/buildslave/zorg/buildbot/smooshlab/slave-0.8/build.clang-x86_64-darwin10-gcc42-RA/clang-build/Release+Asserts/bin/FileCheck /Users/buildslave/zorg/buildbot/smooshlab/slave-0.8/build.clang-x86_64-darwin10-gcc42-RA/llvm/test/MC/ELF/many-section.s
> --
> Exit Code: 1
> Command Output (stderr):
> --
> /Users/buildslave/zorg/buildbot/smooshlab/slave-0.8/build.clang-x86_64-darwin10-gcc42-RA/llvm/test/MC/ELF/many-section.s:4:11: error: expected string not found in input
> // CHECK: U
>            ^
> <stdin>:1:1: note: scanning from here
> 00000000 b .bss
> ^

That shouldn't be happening. I've adjusted the test a bit in r141653 
which may make the problem go away (does it?), but this indicates that 
either llvm-mc is emitting a different ELF file on your systems than 
mine, or that llvm-nm is.

As you can reproduce this (I can't, I've tried 3 machines I have access 
to), I'd appreciate some help narrowing this down:

$ llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu 
test/MC/ELF/many-section.s -o - | md5sum
c0e7294542f179399b0fcbce3f968db1  -

Should produce the same file regardless of the host. If that matches, 
then could you paste the result of:

$ llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu 
test/MC/ELF/many-section.s -o t
$ llvm-nm t | head
$ llvm-nm t | tail

I'm expecting:

$ llvm-nm t | head
          U
00000000 b .bss
00000000 d .data
00000000 t .text
00000000 ? s000a
00000000 ? s001a
00000000 ? s001b
00000000 ? s002a
00000000 ? s002b
00000000 ? s003a
$ llvm-nm t | tail
00000000 ? szzva
00000000 ? szzvb
00000000 ? szzwa
00000000 ? szzwb
00000000 ? szzxa
00000000 ? szzxb
00000000 ? szzya
00000000 ? szzyb
00000000 ? szzza
00000000 ? szzzb

Nick



More information about the llvm-commits mailing list