[llvm-bugs] [Bug 35945] New: Error while building with GCC 4.9 on Raspbian (Raspberry Pi)

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 15 00:59:45 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=35945

            Bug ID: 35945
           Summary: Error while building with GCC 4.9 on Raspbian
                    (Raspberry Pi)
           Product: libc++abi
           Version: 6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: benni.buch at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

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 (http://llvm.org/git/clang.git
de6dd39fdb9873632f1b157ce0eb20867d9e31e4) (http://llvm.org/git/llvm.git
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180115/74c11b54/attachment.html>


More information about the llvm-bugs mailing list