<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 --- - cmake produces invalid c++ SVNVersion.inc"
   href="http://llvm.org/bugs/show_bug.cgi?id=17203">17203</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>cmake produces invalid c++ SVNVersion.inc
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Build scripts
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>cmake
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>tm@ayena.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jordan_rose@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Revision: 190595

Using cmake for build configuration and ninja for building.
CMake produces SVNVersion.inc that linebreaks LLVM_REPOSITORY line and thereby
making it invalid.

cmake version 2.8.11.2


[63/364] Building CXX object
tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/Version.cpp.o
FAILED: /usr/bin/c++   -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_REWRITER
-DCLANG_ENABLE_STATIC_ANALYZER -DHAVE_SVN_VERSION_INC -D_DEBUG -D_GNU_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC
-fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings
-Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default
-Wnon-virtual-dtor -fcolor-diagnostics -fno-common -Woverloaded-virtual
-Wcast-qual -fno-strict-aliasing -fno-rtti -O2 -g -DNDEBUG
-Itools/clang/lib/Basic -I/Users/tobias/dev/rep/llvm/tools/clang/lib/Basic
-I/Users/tobias/dev/rep/llvm/tools/clang/include -Itools/clang/include
-Iinclude -I/Users/tobias/dev/rep/llvm/include    -UNDEBUG -fno-exceptions -MMD
-MT tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/Version.cpp.o -MF
"tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/Version.cpp.o.d" -o
tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/Version.cpp.o -c
/Users/tobias/dev/rep/llvm/tools/clang/lib/Basic/Version.cpp
In file included from
/Users/tobias/dev/rep/llvm/tools/clang/lib/Basic/Version.cpp:22:
tools/clang/lib/Basic/SVNVersion.inc:2:25: warning: missing terminating '"'
character [-Winvalid-pp-token]
#define LLVM_REPOSITORY "<a href="http://llvm.org/svn/llvm-project/llvm/trunk">http://llvm.org/svn/llvm-project/llvm/trunk</a>
                        ^
tools/clang/lib/Basic/SVNVersion.inc:3:3: error: expected unqualified-id
 ^/llvm/trunk"
  ^
tools/clang/lib/Basic/SVNVersion.inc:3:14: warning: missing terminating '"'
character [-Winvalid-pp-token]
 ^/llvm/trunk"
             ^
tools/clang/lib/Basic/SVNVersion.inc:5:24: warning: missing terminating '"'
character [-Winvalid-pp-token]
#define SVN_REPOSITORY "<a href="http://llvm.org/svn/llvm-project/cfe/trunk">http://llvm.org/svn/llvm-project/cfe/trunk</a>
                       ^
tools/clang/lib/Basic/SVNVersion.inc:6:13: warning: missing terminating '"'
character [-Winvalid-pp-token]
 ^/cfe/trunk"
            ^
/Users/tobias/dev/rep/llvm/tools/clang/lib/Basic/Version.cpp:32:17: error:
expected expression
  StringRef URL(SVN_REPOSITORY);
                ^
tools/clang/lib/Basic/SVNVersion.inc:5:24: note: expanded from macro
'SVN_REPOSITORY'
#define SVN_REPOSITORY "<a href="http://llvm.org/svn/llvm-project/cfe/trunk">http://llvm.org/svn/llvm-project/cfe/trunk</a>
                       ^
/Users/tobias/dev/rep/llvm/tools/clang/lib/Basic/Version.cpp:59:17: error:
expected expression
  StringRef URL(LLVM_REPOSITORY);
                ^
tools/clang/lib/Basic/SVNVersion.inc:2:25: note: expanded from macro
'LLVM_REPOSITORY'
#define LLVM_REPOSITORY "<a href="http://llvm.org/svn/llvm-project/llvm/trunk">http://llvm.org/svn/llvm-project/llvm/trunk</a>
                        ^
4 warnings and 3 errors generated.</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>