-
Notifications
You must be signed in to change notification settings - Fork 6
Description
1、根据操作文档,在awtk执行,sons后,进入awtk-quickjs下执行scons,提示如下
`
3rd/quickjs/quickjs-libc.c: In function 'js_os_signal':
3rd/quickjs/quickjs-libc.c:1814:5: error: unknown type name 'sighandler_t'
sighandler_t handler;
^
3rd/quickjs/quickjs-libc.c:1831:21: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
handler = SIG_DFL;
^
3rd/quickjs/quickjs-libc.c:1833:21: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
handler = SIG_IGN;
^
3rd/quickjs/quickjs-libc.c:1834:25: warning: passing argument 2 of 'signal' makes pointer from integer without a cast [-Wint-conversion]
signal(sig_num, handler);
^
In file included from 3rd/quickjs/quickjs-libc.c:36:0:
/usr/include/signal.h:102:23: note: expected '__sighandler_t {aka void (*)(int)}' but argument is of type 'int'
extern __sighandler_t signal (int __sig, __sighandler_t __handler)
^
3rd/quickjs/quickjs-libc.c: In function 'js_os_exec':
3rd/quickjs/quickjs-libc.c:2688:19: error: 'environ' undeclared (first use in this function)
char **envp = environ;
^
3rd/quickjs/quickjs-libc.c:2688:19: note: each undeclared identifier is reported only once for each function it appears in
scons: *** [3rd/quickjs/quickjs-libc.o] Error 1
scons: building terminated because of errors.
2、通过手动执行quickjs仓库的make,编译后的文件直接copy到awtk-quickjs/lib下,执行scons,依然报错
scons: done reading SConscript files.
scons: Building targets ...
scons: *** [src/c/main.o] UnicodeDecodeError : 'ascii' codec can't decode byte 0xe5 in position 23: ordinal not in range(128)
scons: building terminated because of errors.
`