nm-archive test failing on Windows

Hi,

The Object/nm-archive test is failing for me on 64-bit Windows. It started recently, possibly with r166767.

The output is as follows:

12> ******************** TEST ‘LLVM :: Object/nm-archive.test’ FAILED ********************

12> Script:

12> –

12> C:/dev/llvm/build/bin/Debug/llvm-nm.EXE c:\dev\llvm\test\Object/Inputs/archive-test.a-coff-i386 | C:/dev/llvm/build/bin/Debug/FileCheck.EXE c:\dev\llvm\test\Object\nm-archive.test -check-prefix COFF

12> C:/dev/llvm/build/bin/Debug/llvm-as.EXE c:\dev\llvm\test\Object/Inputs/trivial.ll -o=C:\dev\llvm\build\test\Object\Output\nm-archive.test.tmp1

12> C:/dev/llvm/build/bin/Debug/llvm-ar.EXE rcs C:\dev\llvm\build\test\Object\Output\nm-archive.test.tmp2 C:\dev\llvm\build\test\Object\Output\nm-archive.test.tmp1

12> C:/dev/llvm/build/bin/Debug/llvm-nm.EXE C:\dev\llvm\build\test\Object\Output\nm-archive.test.tmp2 | C:/dev/llvm/build/bin/Debug/FileCheck.EXE c:\dev\llvm\test\Object\nm-archive.test -check-prefix BITCODE

12> –

12> Exit Code: 1

12> Command Output (stdout):

12> –

12> Command 0: “C:/dev/llvm/build/bin/Debug/llvm-nm.EXE” “c:\dev\llvm\test\Object/Inputs/archive-test.a-coff-i386”

12> Command 0 Result: 0

12> Command 0 Output:

12>

12>

12> Command 0 Stderr:

12>

12>

12> Command 1: “C:/dev/llvm/build/bin/Debug/FileCheck.EXE” “c:\dev\llvm\test\Object\nm-archive.test” “-check-prefix” “COFF”

12> Command 1 Result: 0

12> Command 1 Output:

12>

12>

12> Command 1 Stderr:

12>

12>

12> Command 2: “C:/dev/llvm/build/bin/Debug/llvm-as.EXE” “c:\dev\llvm\test\Object/Inputs/trivial.ll” “-o=C:\dev\llvm\build\test\Object\Output\nm-archive.test.tmp1”

12> Command 2 Result: 0

12> Command 2 Output:

12>

12>

12> Command 2 Stderr:

12>

12>

12> Command 3: “C:/dev/llvm/build/bin/Debug/llvm-ar.EXE” “rcs” “C:\dev\llvm\build\test\Object\Output\nm-archive.test.tmp2” “C:\dev\llvm\build\test\Object\Output\nm-archive.test.tmp1”

12> Command 3 Result: 1

12> Command 3 Output:

12>

12>

12> Command 3 Stderr:

12> C:/dev/llvm/build/bin/Debug/llvm-ar.EXE: error loading ‘C:/dev/llvm/build/test/Object/Output/nm-archive.test.tmp2’: invalid signature for an archive file!

12>

12>

12> –

12>

Is anyone else seeing this?

-Andy

Andy,

FYI, I won’t reproduce one on VS10 x64|MinSizeRel. All of llvm tests can pass on x64 for me.

…Takumi