Hi Marshall, I'm trying to compile the whole thing in one go by adding libcxx and libcxxabi into llvm/src/projects. The first stage obviously has to use the system compiler, which is GCC 4.8.2, but I'm getting an error on ARM: Unwind-EHABI.cpp:1000:47: error: expected unqualified-id before string constant _LIBUNWIND_EXPORT extern "C" _Unwind_Reason_Code with the caret pointing at _Unwind_Reason_Code. With Clang, it passes, as it's what I'm using on the libcxx ARM buildbot. I tried using -std=c++11 on CXXFLAGS, but didn't seem to have made a difference. Ideas? cheers, --renato PS: I have other problems with AArch64, but let's deal with this one first. :)
Hi Renato, On 24 July 2015 at 04:35, Renato Golin <renato.golin at linaro.org> wrote:> Unwind-EHABI.cpp:1000:47: error: expected unqualified-id before string constant > _LIBUNWIND_EXPORT extern "C" _Unwind_Reason_CodeGCC seems to be stricter than Clang about the ordering of __attribute__ (from _LIBUNWIND_EXPORT) and 'extern "C"'. You can play around with: __attribute__((visibility("default"))) extern "C" void func() {} Cheers. Tim.
On 24 July 2015 at 15:00, Tim Northover <t.p.northover at gmail.com> wrote:> GCC seems to be stricter than Clang about the ordering of > __attribute__ (from _LIBUNWIND_EXPORT) and 'extern "C"'.Humpf, that seems to be an old thing. GCC 5.1 on my laptop cope with that just fine. :( thanks! --renato
On Fri, Jul 24, 2015 at 4:35 AM, Renato Golin <renato.golin at linaro.org> wrote:> Hi Marshall, > > I'm trying to compile the whole thing in one go by adding libcxx and > libcxxabi into llvm/src/projects. > >Sorry I missed this. Glad you got help. -- Marshall -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150803/e7aad1e7/attachment.html>
Reasonably Related Threads
- [LLVMdev] Compiling LibC++ with LLVM on ARM
- [LLVMdev] Compiling LibC++ with LLVM on ARM
- [LLVMdev] Compiling LibC++ with LLVM on ARM
- libunwind is not configured with -funwind-tables when building it for ARM Linux?
- Failed to replace stdlibc++ with libc++, linker phase error