<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 --- - SWIG wrappers fail to compile with "-Werror=format-security""
   href="https://llvm.org/bugs/show_bug.cgi?id=25468">25468</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>SWIG wrappers fail to compile with "-Werror=format-security"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </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>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>axwalk@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>I'm trying to build Debian packages for LLVM+Clang+LLDB+compiler-rt locally,
and I'm getting an error building LLDB.




cd /home/andrew/code/src/llvm.org/llvm/build-llvm/tools/lldb/source/API &&
/usr/bin/g++-4.9   -DGTEST_HAS_RTTI=0 -DHAVE_PROCESS_VM_READV -DHAVE_ROUND
-DLIBXML2_DEFINED -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security  -fPIC -fvisibility-inlines-hidden -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wno-maybe-uninitialized -Wno-comment -std=c++11 -Wno-deprecated-declarations
-Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register
-Wno-vla-extension  -fno-exceptions -fno-rtti -fPIC -fPIC -g -fPIC
-I/home/andrew/code/src/llvm.org/llvm/build-llvm/tools/lldb/source/API
-I/home/andrew/code/src/llvm.org/llvm/tools/lldb/source/API
-I/home/andrew/code/src/llvm.org/llvm/tools/lldb/include
-I/home/andrew/code/src/llvm.org/llvm/build-llvm/tools/lldb/include
-I/home/andrew/code/src/llvm.org/llvm/build-llvm/include
-I/home/andrew/code/src/llvm.org/llvm/include -I/usr/include/python2.7
-I/home/andrew/code/src/llvm.org/llvm/tools/clang/include
-I/home/andrew/code/src/llvm.org/llvm/build-llvm/tools/lldb/../clang/include
-I/usr/include/libxml2
-I/home/andrew/code/src/llvm.org/llvm/tools/lldb/source/.
-I/home/andrew/code/src/llvm.org/llvm/tools/lldb/source/Plugins/Process/Linux
-I/home/andrew/code/src/llvm.org/llvm/tools/lldb/source/Plugins/Process/POSIX  
  -fno-exceptions -fno-rtti  -Wno-sequence-point -Wno-cast-qual -o
CMakeFiles/liblldb.dir/__/__/scripts/LLDBWrapPython.cpp.o -c
/home/andrew/code/src/llvm.org/llvm/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp
/home/andrew/code/src/llvm.org/llvm/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp:
In function ‘PyObject*
_wrap_SBError_SetErrorStringWithFormat__SWIG_3(PyObject*, PyObject*)’:
/home/andrew/code/src/llvm.org/llvm/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp:21230:70:
error: format not a string literal and no format arguments
[-Werror=format-security]
     result = (int)(arg1)->SetErrorStringWithFormat((char const *)arg2);
                                                                      ^
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-vla-extension"
cc1plus: warning: unrecognized command line option "-Wno-deprecated-register"
cc1plus: some warnings being treated as errors
tools/lldb/source/API/CMakeFiles/liblldb.dir/build.make:1414: recipe for target
'tools/lldb/source/API/CMakeFiles/liblldb.dir/__/__/scripts/LLDBWrapPython.cpp.o'
failed</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>