<html>
    <head>
      <base href="http://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: Killed"
   href="http://llvm.org/bugs/show_bug.cgi?id=17399">17399</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang: error: unable to execute command: Killed
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.3
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>Frontend
          </td>
        </tr>

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

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

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Building cpp-netlib under sanitzers causes a panic. cpp-netlib can be
downloaded from <a href="http://cpp-netlib.org/">http://cpp-netlib.org/</a>.

==========================================

Output from build process:

...
[ 43%] Building CXX object
libs/network/test/http/CMakeFiles/cpp-netlib-http-client_get_different_port_test.dir/client_get_different_port_test.cpp.o
cd /home/jeffrey/Desktop/cpp-netlib-build/libs/network/test/http &&
/usr/local/bin/clang++   -DBOOST_NETWORK_DEBUG -DBOOST_NETWORK_ENABLE_HTTPS
-DBOOST_NETWORK_ENABLE_HTTPS -fsanitize=address -fsanitize=undefined
-fno-sanitize=vptr  -g -I/usr/local/include
-I/home/jeffrey/Desktop/cpp-netlib-0.10.1    -o
CMakeFiles/cpp-netlib-http-client_get_different_port_test.dir/client_get_different_port_test.cpp.o
-c
/home/jeffrey/Desktop/cpp-netlib-0.10.1/libs/network/test/http/client_get_different_port_test.cpp
clang: error: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (tags/RELEASE_33/final)
Target: x86_64-unknown-linux-gnu
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/client_get_different_port_test-J7UYRZ.cpp
clang: note: diagnostic msg: /tmp/client_get_different_port_test-J7UYRZ.sh
clang: note: diagnostic msg: 
********************
make[2]: ***
[libs/network/test/http/CMakeFiles/cpp-netlib-http-client_get_different_port_test.dir/client_get_different_port_test.cpp.o]
Error 254
make[2]: Leaving directory `/home/jeffrey/Desktop/cpp-netlib-build'
make[1]: ***
[libs/network/test/http/CMakeFiles/cpp-netlib-http-client_get_different_port_test.dir/all]
Error 2
make[1]: Leaving directory `/home/jeffrey/Desktop/cpp-netlib-build'
make: *** [all] Error 2

==========================================

I can't attach requested files:

$ tar -czf /tmp/client_get_different_port_test-J7UYRZ.cpp
client_get_different_port_test-J7UYRZ.tar.gz
tar: client_get_different_port_test-J7UYRZ.tar.gz: Cannot stat: No such file or
directory
$ tar -czf /tmp/client_get_different_port_test-J7UYRZ.tar.gz
client_get_different_port_test-J7UYRZ.cpp
tar: client_get_different_port_test-J7UYRZ.cpp: Cannot stat: No such file or
directory

==========================================

Recipe to setup cpp-netlib project:

export CC="/usr/local/bin/clang"; export CXX="/usr/local/bin/clang++"
export CFLAGS="-fsanitize=address -fsanitize=undefined"; export
CXXFLAGS="-fsanitize=address -fsanitize=undefined -fno-sanitize=vptr"
export LD_LIBRARY_PATH=/usr/local/lib

# Unpack cpp-netlib
tar -xzf cpp-netlib-0.10.1.tar.gz

# Build in different directory
mkdir cpp-netlib-build
cd cpp-netlib-build

cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER="/usr/local/bin/clang"
-DCMAKE_CXX_COMPILER="/usr/local/bin/clang++" ../cpp-netlib-0.10.1

make</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>