[CRIU] Compile error: expected string literal before ‘)’ token

Cyrill Gorcunov gorcunov at openvz.org
Fri Sep 14 02:04:24 EDT 2012


On Fri, Sep 14, 2012 at 12:38:09PM +0800, Huang Qiang wrote:
> I am trying to compile a recent CRIU git snapshot (8a7dc1d) and ran
> into this error:
> 
> restorer.c: In function ‘__export_restore_task’:
> restorer.c:699: error: expected string literal before ‘)’ token
> 
> I need to delete the third colon and the compile passed, I'm not quiet
> familiar with gcc inline assembly, maybe it's related to the gcc version.
> 
> My gcc version is 4.3.4, maybe you guys can take a look at this.

Pretty old one :) Could you please try out the patch below?
---
diff --git a/restorer.c b/restorer.c
index 5cee0b1..099fd3e 100644
--- a/restorer.c
+++ b/restorer.c
@@ -689,6 +689,6 @@ core_restore_failed:
 		"jmp *%%rax				\n"
 		:
 		: "r"(ret)
-		: );
+		: "memory");
 	return ret;
 }


More information about the CRIU mailing list