r251695 - Try to run and investigate the mips-mti-linux.c test failure on ARM buildbots.

Vasileios Kalintiris via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 30 03:35:38 PDT 2015


Author: vkalintiris
Date: Fri Oct 30 05:35:38 2015
New Revision: 251695

URL: http://llvm.org/viewvc/llvm-project?rev=251695&view=rev
Log:
Try to run and investigate the mips-mti-linux.c test failure on ARM buildbots.

This should be a NFC for every toolchain other than mips-mti-linux (where we
print the list of directories searched for crt files). It will soon be
reverted once we hit the clang-cmake-armv7-a15-selfhost-neon buildbot.

Modified:
    cfe/trunk/lib/Driver/Tools.cpp
    cfe/trunk/test/Driver/mips-mti-linux.c

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=251695&r1=251694&r2=251695&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Fri Oct 30 05:35:38 2015
@@ -8469,6 +8469,19 @@ void gnutools::Linker::ConstructJob(Comp
         CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crt1)));
 
       CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o")));
+
+      if (ToolChain.getTriple().getVendor() == llvm::Triple::MipsTechnologies &&
+          !ToolChain.getTriple().hasEnvironment()) {
+        // Print look-up paths for crt files.
+        llvm::errs() << "Looked for crti.o in: ";
+        llvm::errs() << "#### PrefixDirs #### - ";
+        for (const std::string &Dir : D.PrefixDirs)
+          llvm::errs() << "Dir: " << Dir << ", ";
+        llvm::errs() << "#### TC.getFilePaths() #### - ";
+        for (const std::string &Dir : ToolChain.getFilePaths())
+          llvm::errs() << "Dir: " << Dir << ",";
+        llvm::errs() << "\n";
+      }
     }
 
     const char *crtbegin;

Modified: cfe/trunk/test/Driver/mips-mti-linux.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/mips-mti-linux.c?rev=251695&r1=251694&r2=251695&view=diff
==============================================================================
--- cfe/trunk/test/Driver/mips-mti-linux.c (original)
+++ cfe/trunk/test/Driver/mips-mti-linux.c Fri Oct 30 05:35:38 2015
@@ -5,14 +5,15 @@
 //        Ideally, we'd like to have an --llvm-toolchain option similar to
 //        the --gcc-toolchain one.
 
-// RUN: false
-// XFAIL: *
+// XFAIL: i386, i686, x86_64, win32, win64, powerpc64, s390x, r600, xcore, hexagon, sparc, darwin, asan, msan
 
 // = Big-endian, mips32r2, hard float
-// R!N: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
-// R!N:     --target=mips-mti-linux -mips32r2 -mhard-float \
-// R!N:     --sysroot=%S/Inputs/mips_mti_linux/sysroot \
-// R!N:   | FileCheck --check-prefix=CHECK-BE-HF-32R2 %s
+// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
+// RUN:     --target=mips-mti-linux -mips32r2 -mhard-float \
+// RUN:     --sysroot=%S/Inputs/mips_mti_linux/sysroot \
+// RUN:   | FileCheck --check-prefix=CHECK-BE-HF-32R2 %s
+//
+// CHECK-BE-HF-32R2: Looked for crt1.o
 //
 // CHECK-BE-HF-32R2: "{{[^"]*}}clang{{[^"]*}}" {{.*}} "-triple" "mips-mti-linux"
 // CHECK-BE-HF-32R2-SAME: "-fuse-init-array" "-target-cpu" "mips32r2"




More information about the cfe-commits mailing list