<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 3.5 Regression: cannot build LibreOffice"
   href="http://llvm.org/bugs/show_bug.cgi?id=22258">22258</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang 3.5 Regression: cannot build LibreOffice
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.5
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>lukebenes@hotmail.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>I am no longer able to build LibreOffice with newer versions of clang 3.5. When
I upgraded to 3.5.0 final and 3.5.1(rc2), libreoffice generates unit test
error. I tested both the Pre-built Binaries and the Ubuntu nightly packages on
a fresh install of Ubuntu 14.4. All recent builds of clang failed with the same
unit test errors. Reverting back to an earlier build, always resolves the
issue.

Steps to reproduce:
1. $ git clone git://anongit.freedesktop.org/libreoffice/core
2. $ git checkout libreoffice-4-4-0 (optional, master fails with same errors)
3. $ apt-get build-dep libreoffice ( also lo_usefull Shell Script if missing
dep)
4. Remove ccache if it's installed ( ccache generates warning w/ clang)
5. create file autogen.input with CC=clang and CXX=clang++
6 ./autogen.sh && make

Results:
clang 3.5.0 svn201651 - SUCCESS
gcc 4.8.2 - SUCCESS
gcc 4.9.2 - SUCCESS
clang 3.5.0 RELEASE_350/final - FAIL
clang 3.5.1 RELEASE_351/rc2 - FAIL

Build log:

[build CUT] basic_nested_struct
[build CUT] basic_coverage
Segmentation fault (core dumped)

No core file identified in directory
/lo/core/workdir/CppunitTest/basic_nested_struct.test.core
To show backtraces for crashes during test execution,
enable core files with:

   ulimit -c unlimited

Segmentation fault (core dumped)

No core file identified in directory
/lo/core/workdir/CppunitTest/basic_enable.test.core
To show backtraces for crashes during test execution,
enable core files with:

   ulimit -c unlimited

Error: a unit test failed, please do one of:

export DEBUGCPPUNIT=TRUE            # for exception catching
export CPPUNITTRACE="gdb --args"    # for interactive debugging on Linux
export CPPUNITTRACE="\"[full path to devenv.exe]\" /debugexe" # for interactive
debugging in Visual Studio
export VALGRIND=memcheck            # for memory checking

and retry using: make CppunitTest_basic_enable


Error: a unit test failed, please do one of:

export DEBUGCPPUNIT=TRUE            # for exception catching
export CPPUNITTRACE="gdb --args"    # for interactive debugging on Linux
export CPPUNITTRACE="\"[full path to devenv.exe]\" /debugexe" # for interactive
debugging in Visual Studio
export VALGRIND=memcheck            # for memory checking

and retry using: make CppunitTest_basic_nested_struct

make[1]: *** [/lo/core/workdir/CppunitTest/basic_enable.test] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [/lo/core/workdir/CppunitTest/basic_nested_struct.test] Error 1
make: *** [build] Error 2</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>