Open xjtuwxg opened 5 years ago
I don't see that error on my build - what compiler/compiler version are you using? Please add the output when run with -v
, e.g., /usr/bin/c++ -v
Chameleon is set to convert warnings to errors and it looks like this is a warning we can ignore (I don't think the CRIU/compel developers tested their headers with C++). We can probably add a pragma to make the compiler ignore the warning before the compel header include on line 6:
#pragma GCC diagnostic ignored "-Wliteral-suffix"
#include <compel/compel.h>
Can you test to see if this makes the issue disappear?
Yes, that's true. It seems to be a warning from C++11 standard. Here is the c++ version I used.
$ /usr/bin/c++ --version
c++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Right, we specify the C++ 11 standard in the target compile options for Chameleon in src/CMakeLists.txt
.
That's strange, I'm running the same compiler, don't know why I didn't see those errors.
That is strange. This warning still happens on my environment. Here is a similar issue report in other projects: https://github.com/konstantinmiller/dashp2p/issues/3
When compiling chameleon, there is a "C++11 requires a space between literal and string macro" error.
I modified the sigframe.h file and added the space between
"
and__stringify
like"movl $" __stringify(__NR_rt_sigreturn)", %%eax \n"