[llvm-dev] Problem with 'sed' on one Windows bot? (original) (raw)

Justin Bogner via llvm-dev llvm-dev at lists.llvm.org
Tue Nov 7 15:02:52 PST 2017


"Robinson, Paul via llvm-dev" <llvm-dev at lists.llvm.org> writes:

A test I added in r317607 is passing almost everywhere, except for llvm-clang-x8664-expensive-checks-win. Other Windows bots are happy.

http://lab.llvm.org:8011/builders/llvm-clang-x8664-expensive-checks-win/builds/6013 The test runs 'sed' on a file to generate variations of the input assembler source for Linux and Darwin. I have to say it looks like 'sed' is being the problem on that one bot. I reverted the test because "don't argue with the bots" but... but... "It's not my fault!" If anybody has any insight it would be greatly appreciated. Thanks, --paulr The failure is this: Command Output (stdout): -- $ "sed" "-E" "s/@ELF@(.)/\1/;s/@MACHO@(.)//" "C:\ps4-buildslave2\llvm-clang-x8664-expensive-checks-win\llvm\test\DebugInfo\X86\dwarfdump-header-64.s"

Looks to me like the the \1 is being interpreted as an escape and you're getting a literal "1" instead of the substitution. Given that there are double-quotes here that sort of makes sense, though the commit clearly used single quotes, so that's odd. Maybe there's something funny about how lit is passing this to whatever shell?

In any case, presumably sed -e 's/@ELF@//; s/@MACHO@(.*)//' would work around that - since you're capturing the rest of the line you don't really need the backreference anyway.

$ "C:\ps4-buildslave2\llvm-clang-x8664-expensive-checks-win\build\bin\llvm-mc.EXE" "-triple" "x8664-unknown-linux" "-filetype=obj" "-o" "-" # command stderr: :17:1: error: unexpected token at start of statement

1 ^ :28:1: error: unexpected token at start of statement 1 ^ :43:1: error: unexpected token at start of statement 1 ^ :53:1: error: unexpected token at start of statement 1 ^ :59:1: error: unexpected token at start of statement 1 ^ :71:1: error: unexpected token at start of statement 1 ^

error: command failed with exit status: 1


LLVM Developers mailing list llvm-dev at lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev



More information about the llvm-dev mailing list