[cfe-commits] r141134 - /cfe/trunk/lib/Driver/ToolChains.cpp

Chandler Carruth chandlerc at gmail.com
Tue Oct 4 17:04:32 PDT 2011


On Tue, Oct 4, 2011 at 4:57 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk>wrote:

>
> On Oct 4, 2011, at 4:17 PM, Chandler Carruth wrote:
>
> > Author: chandlerc
> > Date: Tue Oct  4 18:17:12 2011
> > New Revision: 141134
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=141134&view=rev
> > Log:
> > Hoist the other messy part out of an inner loop and into a helper
> > function, cleaning up along the way.
>
> Hi Chandler,
>
> I am not sure which one, but one of your commits since r141114 caused this
> test to fail on Windows:
>

I saw the build bot failures on IRC (not smooshy sadly), and I think I fixed
them r141126. At least, the msys and mingw bots I see in IRC are now fixed.
Also, the log below contains the same buggy output as I saw on the other
windows bots so I suspect these are already fixed.


>
> ******************** TEST 'Clang :: Driver/linux-ld.c' FAILED
> ********************Script:
> --
> C:/public/zorg/buildbot/smooshlab/slave/build.clang-i386-xp-msvc9-DA/llvm/build/bin/Debug/clang.EXE
>  -no-canonical-prefixes
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver\linux-ld.c
> -### -o
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\build\tools\clang\test\Driver\Output\linux-ld.c.tmp.o
> 2>&1      -ccc-host-triple i386-unknown-linux
>  --sysroot=C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver/Inputs/basic_linux_tree
>    | FileCheck --check-prefix=CHECK-LD-32
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver\linux-ld.c
> C:/public/zorg/buildbot/smooshlab/slave/build.clang-i386-xp-msvc9-DA/llvm/build/bin/Debug/clang.EXE
>  -no-canonical-prefixes
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver\linux-ld.c
> -### -o
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\build\tools\clang\test\Driver\Output\linux-ld.c.tmp.o
> 2>&1      -ccc-host-triple x86_64-unknown-linux
>  --sysroot=C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver/Inputs/basic_linux_tree
>    | FileCheck --check-prefix=CHECK-LD-64
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver\linux-ld.c
> C:/public/zorg/buildbot/smooshlab/slave/build.clang-i386-xp-msvc9-DA/llvm/build/bin/Debug/clang.EXE
>  -no-canonical-prefixes
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver\linux-ld.c
> -### -o
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\build\tools\clang\test\Driver\Output\linux-ld.c.tmp.o
> 2>&1      -ccc-host-triple i386-unknown-linux -m32
>  --sysroot=C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver/Inputs/multilib_32bit_linux_tree
>    | FileCheck --check-prefix=CHECK-32-TO-32
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver\linux-ld.c
> C:/public/zorg/buildbot/smooshlab/slave/build.clang-i386-xp-msvc9-DA/llvm/build/bin/Debug/clang.EXE
>  -no-canonical-prefixes
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver\linux-ld.c
> -### -o
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\build\tools\clang\test\Driver\Output\linux-ld.c.tmp.o
> 2>&1      -ccc-host-triple i386-unknown-linux -m64
>  --sysroot=C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver/Inputs/multilib_32bit_linux_tree
>    | FileCheck --check-prefix=CHECK-32-TO-64
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver\linux-ld.c
> C:/public/zorg/buildbot/smooshlab/slave/build.clang-i386-xp-msvc9-DA/llvm/build/bin/Debug/clang.EXE
>  -no-canonical-prefixes
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver\linux-ld.c
> -### -o
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\build\tools\clang\test\Driver\Output\linux-ld.c.tmp.o
> 2>&1      -ccc-host-triple x86_64-unknown-linux -m64
>  --sysroot=C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver/Inputs/multilib_64bit_linux_tree
>    | FileCheck --check-prefix=CHECK-64-TO-64
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver\linux-ld.c
> C:/public/zorg/buildbot/smooshlab/slave/build.clang-i386-xp-msvc9-DA/llvm/build/bin/Debug/clang.EXE
>  -no-canonical-prefixes
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver\linux-ld.c
> -### -o
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\build\tools\clang\test\Driver\Output\linux-ld.c.tmp.o
> 2>&1      -ccc-host-triple x86_64-unknown-linux -m32
>  --sysroot=C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver/Inputs/multilib_64bit_linux_tree
>    | FileCheck --check-prefix=CHECK-64-TO-32
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver\linux-ld.c
> --
> Exit Code: 1
> Command Output (stdout):
> --
> Command 0:
> "C:/public/zorg/buildbot/smooshlab/slave/build.clang-i386-xp-msvc9-DA/llvm/build/bin/Debug/clang.EXE"
> "-no-canonical-prefixes"
> "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver\linux-ld.c"
> "-###" "-o"
> "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\build\tools\clang\test\Driver\Output\linux-ld.c.tmp.o"
> "-ccc-host-triple" "i386-unknown-linux"
> "--sysroot=C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver/Inputs/basic_linux_tree"
> Command 0 Result: 0
> Command 0 Output:
> Command 0 Stderr:
> Command 1: "FileCheck" "--check-prefix=CHECK-LD-32"
> "C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver\linux-ld.c"
> Command 1 Result: 1
> Command 1 Output:
> Command 1 Stderr:
> C:\public\zorg\buildbot\smooshlab\slave\build.clang-i386-xp-msvc9-DA\llvm\tools\clang\test\Driver\linux-ld.c:10:17:
> error: expected string not found in input
> // CHECK-LD-32: "-L[[SYSROOT]]/usr/lib/gcc/i386-unknown-linux/4.6.0"
>                ^
> <stdin>:5:563: note: scanning from here
>  "ld"
> "--sysroot=C:\\public\\zorg\\buildbot\\smooshlab\\slave\\build.clang-i386-xp-msvc9-DA\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_linux_tree"
> "--eh-frame-hdr" "-m" "elf_i386" "-dynamic-linker" "/lib/ld-linux.so.2" "-o"
> "C:\\public\\zorg\\buildbot\\smooshlab\\slave\\build.clang-i386-xp-msvc9-DA\\llvm\\build\\tools\\clang\\test\\Driver\\Output\\linux-ld.c.tmp.o"
> "crt1.o" "crti.o"
> "C:/public/zorg/buildbot/smooshlab/slave/build.clang-i386-xp-msvc9-DA/llvm/tools/clang/test/Driver/Inputs/basic_linux_tree/usr/lib/gcc/i386-unknown-linux/4.6.0/crtbegin.o"
> "-LC:\\public\\zorg\\buildbot\\smooshlab\\slave\\build.clang-i386-xp-msvc9-DA\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_linux_tree/usr/lib/gcc/i386-unknown-linux\\4.6.0"
> "-LC:\\public\\zorg\\buildbot\\smooshlab\\slave\\build.clang-i386-xp-msvc9-DA\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_linux_tree/usr/lib/gcc/i386-unknown-linux\\4.6.0/../../../../i386-unknown-linux/lib"
> "-LC:\\public\\zorg\\buildbot\\smooshlab\\!
>  slave\\build.clang-i386-xp-msvc9-DA\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_linux_tree/usr/lib/gcc/i386-unknown-linux\\4.6.0/../../.."
> "-LC:\\public\\zorg\\buildbot\\smooshlab\\slave\\build.clang-i386-xp-msvc9-DA\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_linux_tree/lib"
> "-LC:\\public\\zorg\\buildbot\\smooshlab\\slave\\build.clang-i386-xp-msvc9-DA\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_linux_tree/usr/lib"
> "C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/linux-ld-124571.o" "-lgcc" "--as-needed"
> "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s"
> "--no-as-needed" "crtend.o" "crtn.o"
>
>
>
>
>
>
>
>                              ^
> <stdin>:5:563: note: with variable "SYSROOT" equal to
> "C:\\\\public\\\\zorg\\\\buildbot\\\\smooshlab\\\\slave\\\\build.clang-i386-xp-msvc9-DA\\\\llvm\\\\tools\\\\clang\\\\test\\\\Driver/Inputs/basic_linux_tree"
> <stdin>:5:694: note: possible intended match here
>  "ld"
> "--sysroot=C:\\public\\zorg\\buildbot\\smooshlab\\slave\\build.clang-i386-xp-msvc9-DA\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_linux_tree"
> "--eh-frame-hdr" "-m" "elf_i386" "-dynamic-linker" "/lib/ld-linux.so.2" "-o"
> "C:\\public\\zorg\\buildbot\\smooshlab\\slave\\build.clang-i386-xp-msvc9-DA\\llvm\\build\\tools\\clang\\test\\Driver\\Output\\linux-ld.c.tmp.o"
> "crt1.o" "crti.o"
> "C:/public/zorg/buildbot/smooshlab/slave/build.clang-i386-xp-msvc9-DA/llvm/tools/clang/test/Driver/Inputs/basic_linux_tree/usr/lib/gcc/i386-unknown-linux/4.6.0/crtbegin.o"
> "-LC:\\public\\zorg\\buildbot\\smooshlab\\slave\\build.clang-i386-xp-msvc9-DA\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_linux_tree/usr/lib/gcc/i386-unknown-linux\\4.6.0"
> "-LC:\\public\\zorg\\buildbot\\smooshlab\\slave\\build.clang-i386-xp-msvc9-DA\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_linux_tree/usr/lib/gcc/i386-unknown-linux\\4.6.0/../../../../i386-unknown-linux/lib"
> "-LC:\\public\\zorg\\buildbot\\smooshlab\\!
>  slave\\build.clang-i386-xp-msvc9-DA\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_linux_tree/usr/lib/gcc/i386-unknown-linux\\4.6.0/../../.."
> "-LC:\\public\\zorg\\buildbot\\smooshlab\\slave\\build.clang-i386-xp-msvc9-DA\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_linux_tree/lib"
> "-LC:\\public\\zorg\\buildbot\\smooshlab\\slave\\build.clang-i386-xp-msvc9-DA\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_linux_tree/usr/lib"
> "C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/linux-ld-124571.o" "-lgcc" "--as-needed"
> "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s"
> "--no-as-needed" "crtend.o" "crtn.o"
>
>
>
>
>                                    ^
> --
> ********************
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111004/7795612c/attachment.html>


More information about the cfe-commits mailing list