<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang++: error: unable to execute command: Segmentation fault"
   href="https://llvm.org/bugs/show_bug.cgi?id=28796">28796</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang++: error: unable to execute command: Segmentation fault
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>llvm-gcc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ivanlin1218@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16851" name="attach_16851" title="Content of TargetJITInfo-56cb61.sh and TargetJITInfo-56cb61.cpp">attachment 16851</a> <a href="attachment.cgi?id=16851&action=edit" title="Content of TargetJITInfo-56cb61.sh and TargetJITInfo-56cb61.cpp">[details]</a></span>
Content of TargetJITInfo-56cb61.sh and TargetJITInfo-56cb61.cpp

Stack dump:
0.    Program arguments: prebuilts/clang/linux-x86/host/3.5/bin/clang++ -cc1
-triple x86_64--linux-android -emit-obj -mnoexecstack -disable-free
-disable-llvm-verifier -main-file-name TargetJITInfo.cpp -mrelocation-model pic
-pic-level 2 -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu slm -target-feature +popcnt
-target-feature +ssse3 -target-feature +sse4 -target-feature +sse4.1
-target-feature +sse4.2 -target-feature +aes -target-linker-version 2.22
-momit-leaf-frame-pointer -g -ffunction-sections -coverage-file
/var/aosp/aosp/cht_ffd_t4/out/target/product/r2_cht_ffd/obj/STATIC_LIBRARIES/libLLVMTarget_intermediates/TargetJITInfo.o
-nostdsysteminc -nostdinc++ -resource-dir
prebuilts/clang/linux-x86/host/3.5/bin/../lib/clang/3.5 -dependency-file
out/target/product/r2_cht_ffd/obj/STATIC_LIBRARIES/libLLVMTarget_intermediates/TargetJITInfo.d
-MT
out/target/product/r2_cht_ffd/obj/STATIC_LIBRARIES/libLLVMTarget_intermediates/TargetJITInfo.o
-sys-header-deps -isystem system/core/include -isystem
hardware/libhardware/include -isystem hardware/libhardware_legacy/include
-isystem hardware/ril/include -isystem libnativehelper/include -isystem
frameworks/native/include -isystem frameworks/native/opengl/include -isystem
frameworks/av/include -isystem frameworks/base/include -isystem
out/target/product/r2_cht_ffd/obj/include -isystem
device/intel/cht-kernel/kernel-headers -isystem bionic/libc/arch-x86_64/include
-isystem bionic/libc/include -isystem bionic/libstdc++/include -isystem
bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-x86 -isystem
bionic/libm/include -isystem bionic/libm/include/amd64 -isystem
prebuilts/clang/linux-x86/host/3.5/lib/clang/3.5/include/ -isystem
out/target/product/r2_cht_ffd/obj/include/clang -include
build/core/combo/include/arch/target_linux-x86/AndroidConfig.h -D
_FORTIFY_SOURCE=2 -D USE_SSSE3 -D ANDROID -D NDEBUG -U DEBUG -D
__compiler_offsetof=__builtin_offsetof -D ANDROID -D NDEBUG -U DEBUG -D
ANDROID_TARGET_BUILD -D _GNU_SOURCE -D __STDC_LIMIT_MACROS -D
__STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D sprintf=sprintf -D
_USING_LIBCXX -I external/libcxx/include -I bionic -I external/libcxx/include
-I external/llvm -I external/llvm/include -I external/llvm/device/include -I
external/llvm/lib/Target -I
out/target/product/r2_cht_ffd/obj/STATIC_LIBRARIES/libLLVMTarget_intermediates
-I
out/target/product/r2_cht_ffd/gen/STATIC_LIBRARIES/libLLVMTarget_intermediates
-I libnativehelper/include/nativehelper -I
build/core/combo/include/arch/target_linux-x86/ -internal-isystem
prebuilts/clang/linux-x86/host/3.5/bin/../lib/clang/3.5/include -O2
-Wno-multichar -Werror=format-security -Wstrict-aliasing=2
-Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -W -Wall -Wno-unused
-Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor
-Werror=address -Werror=sequence-point -Werror=int-conversion
-Wno-unused-command-line-argument -W -Wall -Wno-unused -Winit-self
-Wpointer-arith -Wsign-promo -Werror=return-type -Werror=non-virtual-dtor
-Werror=address -Werror=sequence-point -Wall -W -Wno-unused-parameter
-Wwrite-strings -Woverloaded-virtual -Wno-sign-promo -std=c++11
-fdeprecated-macro -fdebug-compilation-dir /var/aosp/aosp/cht_ffd_t4
-ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fno-rtti
-fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o
out/target/product/r2_cht_ffd/obj/STATIC_LIBRARIES/libLLVMTarget_intermediates/TargetJITInfo.o
-x c++ external/llvm/lib/Target/TargetJITInfo.cpp 
clang++: error: unable to execute command: Segmentation fault
clang++: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5 
Target: x86_64--linux-android
Thread model: posix
clang++: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /tmp/TargetJITInfo-56cb61.cpp
clang++: note: diagnostic msg: /tmp/TargetJITInfo-56cb61.sh
clang++: note: diagnostic msg: 

********************
make: ***
[out/target/product/r2_cht_ffd/obj/STATIC_LIBRARIES/libLLVMTarget_intermediates/TargetJITInfo.o]
Error 254
make: *** Waiting for unfinished jobs....

#### make failed to build some targets (02:37:00 (hh:mm:ss)) ####</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>