[llvm-dev] Test failures sanstats/elf.test & ClangdVFSTest

Vince Harron via llvm-dev llvm-dev at lists.llvm.org
Fri May 26 11:09:14 PDT 2017


Failing Tests (3):
    Extra Tools Unit Tests :: clangd/ClangdTests/ClangdVFSTest.Reparse
    Extra Tools Unit Tests :: clangd/ClangdTests/ClangdVFSTest.
    LLVM :: tools/sanstats/elf.test

  Expected Passes    : 40426
  Expected Failures  : 212
  Unsupported Tests  : 1434
  Unexpected Failures: 3

SVN: 304006
OS: linux

Repro steps:

#!/usr/bin/env bash
# Build a clang compiler with libc++ & openmp support
# libc++ tests don't pass when built with gcc 4.8.4
# so build clang using gcc (this will use libstdc++ by default.)
# Then build everything again using clang. If you don't have enough space in
# /tmp (40G?), set TMPDIR to another location before running this script.

set -o errexit
set -o xtrace

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if [ -z ${TMPDIR+x} ]; then
  # TMPDIR is used by mktemp as the tmp directory
  export TMPDIR=/tmp


# clean up any old build attempts
rm -rf $TMPDIR/${CLANG_BUILD_TMP}* || true

ROOT="$(mktemp -d -t ${CLANG_BUILD_TMP}XXXX)"
cd $ROOT

# Get the latest revision number here: https://llvm.org/svn/llvm-project/
# update this number and check in this script with new prebuilts

function svn_co() {
  svn --trust-server-cert --non-interactive -r$REV co
https://llvm.org/svn/llvm-project/$PROJ/trunk $PROJ &

svn_co llvm
svn_co cfe
svn_co clang-tools-extra
svn_co compiler-rt
svn_co libcxx
svn_co libcxxabi
svn_co openmp


mv cfe/ llvm/tools/clang/
mv clang-tools-extra/ llvm/tools/clang/tools/extra/
mv compiler-rt/ llvm/projects/compiler-rt/
mv libcxx/ llvm/projects/libcxx/
mv libcxxabi/ llvm/projects/libcxxabi/
mv openmp/ llvm/projects/openmp/

mkdir $ROOT/build1
cd $ROOT/build1

make -j $(nproc)
make install
rm -rf $ROOT/build1

mkdir $ROOT/build2
cd $ROOT/build2
cmake ../llvm \
  -DCMAKE_C_COMPILER=$ROOT/stage1/bin/clang \

make -j $(nproc)
make check-all -j $(nproc)

build-vPWw/build2/test/tools/sanstats/Output/elf.test.tmp.stats |
Exit Code: 1

Command Output (stderr):
error: expected string not found in input
# CHECK: /tmp{{[/\\]}}f.c:1 f1 cfi-vcall 1
<stdin>:1:1: note: scanning from here
<invalid>:0 f1 cfi-vcall 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170526/75de020e/attachment.html>

More information about the llvm-dev mailing list