<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Error while building with GCC 4.9 on Raspbian (Raspberry Pi)"
   href="https://bugs.llvm.org/show_bug.cgi?id=35945">35945</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Error while building with GCC 4.9 on Raspbian (Raspberry Pi)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++abi
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0
          </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>release blocker
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>benni.buch@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Build with:
$ g++ --version
g++ (Raspbian 4.9.2-10) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Error message:
[ 46%] Building CXX object
projects/libcxxabi/src/CMakeFiles/cxxabi_objects.dir/cxa_default_handlers.cpp.o
/home/pi/projects/llvm/llvm/projects/libcxxabi/src/cxa_default_handlers.cpp: In
function ‘void demangling_terminate_handler()’:
/home/pi/projects/llvm/llvm/projects/libcxxabi/src/cxa_default_handlers.cpp:39:56:
error: invalid operands of types ‘char [8]’ and ‘const uint64_t {aka const long
long unsigned int}’ to binary ‘operator&’
                 (unwind_exception->exception_class   &
get_vendor_and_language) == 
                                                        ^
/home/pi/projects/llvm/llvm/projects/libcxxabi/src/cxa_default_handlers.cpp:44:58:
error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
                     unwind_exception->exception_class ==
kOurDependentExceptionClass ?
                                                          ^



Build from same repository on x86_64 was successful:
$ clang++ --version
clang version 7.0.0 (<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a>
de6dd39fdb9873632f1b157ce0eb20867d9e31e4) (<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a>
bbe71a0c6f29caf58e145cba814a6357a595a480)
Target: x86_64-unknown-linux-gnu
Thread model: posix

Successful build on x86_64 with:
$ g++-6 --version
g++-6 (Ubuntu/Linaro 6.3.0-18ubuntu2~16.04) 6.3.0 20170519
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</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>