Skip to content

Instantly share code, notes, and snippets.

@rbmarliere
Created January 10, 2018 20:30
Show Gist options
  • Save rbmarliere/1272e31b5c3699d82fa778de8990e74e to your computer and use it in GitHub Desktop.
Save rbmarliere/1272e31b5c3699d82fa778de8990e74e to your computer and use it in GitHub Desktop.
POSIX.cpp error on FreeBSD
[ 14%] Building CXX object libraries/wasm-jit/Source/Platform/CMakeFiles/Platform.dir/POSIX.cpp.o
/home/ec2-user/git/eos/libraries/wasm-jit/Source/Platform/POSIX.cpp:228:3: error: no matching function for call to 'siglongjmp'
siglongjmp(signalReturnEnv,1);
^~~~~~~~~~
/usr/include/setjmp.h:57:6: note: candidate function not viable: no known conversion from 'jmp_buf' (aka 'struct _jmp_buf [1]') to 'struct _sigjmp_buf *' for 1st argument
void siglongjmp(sigjmp_buf, int) __dead2;
^
/home/ec2-user/git/eos/libraries/wasm-jit/Source/Platform/POSIX.cpp:264:39: error: no matching function for call to 'sigsetjmp'
bool isReturningFromSignalHandler = sigsetjmp(signalReturnEnv,1);
^~~~~~~~~
/usr/include/setjmp.h:58:5: note: candidate function not viable: no known conversion from 'jmp_buf' (aka 'struct _jmp_buf [1]') to 'struct _sigjmp_buf *' for 1st argument
int sigsetjmp(sigjmp_buf, int) __returns_twice;
^
2 errors generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment