[cfe-dev] make check-all when configure with --with-gcc-toolchain gives false result?

Larry Evans cppljevans at suddenlink.net
Mon Dec 31 04:45:36 PST 2012


When configuring with:
--{---cut here---
  #!/bin/bash
  this_dir=`pwd`
  ls $this_dir/../../../llvm.src/configure
  $this_dir/../../../llvm.src/configure \
    --prefix=$this_dir/../install \
    --enable-optimized=YES \
    --with-gcc-toolchain=/home/evansl/download/gcc/4.8-20121028/install \
    #
--}---cut here---

followed by `make`; then `make check-all`, results in errors which
include:

--{---cut here---
FAIL: Clang :: Driver/linux-header-search.cpp (2491 of 12773)
******************** TEST 'Clang :: Driver/linux-header-search.cpp'
FAILED ********************
Script:
--
/home/evansl/download/llvm/svn/top/out/release/build/Release+Asserts/bin/clang
 -no-canonical-prefixes
/home/evansl/download/llvm/svn/top/cfe.src/test/Driver/linux-header-search.cpp
-### -fsyntax-only 2>&1      -target i386-unknown-linux
--sysroot=/home/evansl/download/llvm/svn/top/cfe.src/test/Driver/Inputs/ubuntu_11.04_multiarch_tree
   | FileCheck --check-prefix=CHECK-UBUNTU-11-04
/home/evansl/download/llvm/svn/top/cfe.src/test/Driver/linux-header-search.cpp
/home/evansl/download/llvm/svn/top/out/release/build/Release+Asserts/bin/clang
 -no-canonical-prefixes
/home/evansl/download/llvm/svn/top/cfe.src/test/Driver/linux-header-search.cpp
-### -fsyntax-only 2>&1      -target i686-linux-gnu
--sysroot=/home/evansl/download/llvm/svn/top/cfe.src/test/Driver/Inputs/debian_multiarch_tree
   | FileCheck --check-prefix=CHECK-DEBIAN-X86
/home/evansl/download/llvm/svn/top/cfe.src/test/Driver/linux-header-search.cpp
.
.
.
--
Exit Code: 1
Command Output (stderr):
--
/home/evansl/download/llvm/svn/top/cfe.src/test/Driver/linux-header-search.cpp:11:24:
error: expected string not found in input
// CHECK-UBUNTU-11-04: "-internal-isystem"
"[[SYSROOT]]/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/../../../../../include/c++/4.5"
                       ^
<stdin>:4:620: note: scanning from here
 "/home/evansl/download/llvm/svn/top/out/release/build/Release+Asserts/bin/clang" "-cc1" "-triple" "i386-unknown-linux" "-fsyntax-only" "-disable-free" "-main-file-name" "linux-header-search.cpp" "-mrelocation-model" "static" "-mdisable-fp-elim" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-fuse-init-array" "-target-cpu" "pentium4" "-target-linker-version" "2.20.1" "-momit-leaf-frame-pointer" "-resource-dir" "/home/evansl/download/llvm/svn/top/out/release/build/Release+Asserts/bin/../lib/clang/3.3" "-isysroot" "/home/evansl/download/llvm/svn/top/cfe.src/test/Driver/Inputs/ubuntu_11.04_multiarch_tree" "-fmodule-cache-path" "/var/tmp/clang-module-cache" "-internal-isystem" "/home/evansl/download/gcc/4.8-20121028/install/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0" "-internal-isystem" "/home/evansl/download/gcc/4.8-20121028/install/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0/x86_64-unknown-linux-gnu/32" "-internal-isy!
 stem" "/ho
me/evansl/download/gcc/4.8-20121028/install/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0/backward" "-internal-isystem" "/home/evansl/download/llvm/svn/top/cfe.src/test/Driver/Inputs/ubuntu_11.04_multiarch_tree/usr/local/include" "-internal-isystem" "/home/evansl/download/llvm/svn/top/out/release/build/Release+Asserts/bin/../lib/clang/3.3/include" "-internal-externc-isystem" "/home/evansl/download/llvm/svn/top/cfe.src/test/Driver/Inputs/ubuntu_11.04_multiarch_tree/usr/include/i386-linux-gnu" "-internal-externc-isystem" "/home/evansl/download/llvm/svn/top/cfe.src/test/Driver/Inputs/ubuntu_11.04_multiarch_tree/include" "-internal-externc-isystem" "/home/evansl/download/llvm/svn/top/cfe.src/test/Driver/Inputs/ubuntu_11.04_multiarch_tree/usr/include" "-fdeprecated-macro" "-fdebug-compilation-dir" "/home/evansl/download/llvm/svn/top/out/release/build/tools/clang/test/Driver" "-ferror-limit" "19" "-fmessage-length" "0" "-mstackrealign" "-fobjc-runtime=gcc" "!
 -fcxx-exce
ptions" "-fexceptions" "-fdiagnostics-show-option" "-backend-option" "-vectorize-loops" "-x" "c++" "/home/evansl/download/llvm/svn/top/cfe.src/test/Driver/linux-header-search.cpp"








                                           ^
<stdin>:4:620: note: with variable "SYSROOT" equal to
"/home/evansl/download/llvm/svn/top/cfe.src/test/Driver/Inputs/ubuntu_11.04_multiarch_tree"
--}---cut here---

The above error messages suggest to me that maybe the test does not
take into account the:

    --with-gcc-toolchain=/home/evansl/download/gcc/4.8-20121028/install \

argument to configure.  Is that right?  If so, is there some way to
modify the test to take this into account?

TIA.

-Larry






More information about the cfe-dev mailing list