[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libunwind-devel] compile error on ARM

From: Ken Werner
Subject: Re: [Libunwind-devel] compile error on ARM
Date: Thu, 30 Jun 2011 12:16:28 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10

On 06/30/2011 10:48 AM, Sven Neumann wrote:

I am trying to cross-compile a recent git snapshot (e09f970) and ran
into this error:

 -DHAVE_CONFIG_H -I. -I../include -I../include -I../include/tdep-arm -I. 
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fexceptions -Wall -Wsign-compare 
-MT arm/Lresume.lo -MD -MP -MF arm/.deps/Lresume.Tpo -c arm/Lresume.c  -fPIC 
-DPIC -o arm/.libs/Lresume.o
In file included from arm/Lresume.c:4:
arm/Gresume.c: In function '_ULarm_local_resume':
arm/Gresume.c:59: error: expected string literal before ')' token
arm/Gresume.c:91: error: expected string literal before ')' token
make[3]: *** [arm/Lresume.lo] Error 1


Hi Sven,

Interesting - thanks for reporting this. Which GCC version are you using? It looks like your compiler doesn't like te inline asm - the fact that the third colon is present but the clobber list is empty.

You may try something like this:
--- a/src/arm/Gresume.c
+++ b/src/arm/Gresume.c
@@ -55,7 +55,7 @@ arm_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, void *arg)
        "ldmia %0, {r4-r12, lr}\n"
        "mov sp, r12\n"
        "bx lr\n"
-       : : "r" (regs) :
+       : : "r" (regs)
@@ -87,7 +87,7 @@ arm_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, void *arg)
       asm __volatile__ (
        "mov sp, %0\n"
        "bx %1\n"
-       : : "r" (c->sigcontext_sp), "r" (c->sigcontext_pc) :
+       : : "r" (c->sigcontext_sp), "r" (c->sigcontext_pc)

I'll prepare a proper patch later today.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]