-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix low verion gcc build err #635
Conversation
I hate versions trigger that behavior?! |
i tried gcc 7.5 and 5.4 ,it does not work |
You'd need to update the code that genrates those C files, since your changes wwould be overwritten otherwise. That's here: Line 205 in 93a4ad8
|
You need to run |
Ah, one of my PRs now creates a conflict, oh well. Can you rebase? |
|
maybe the first patch is best, and is src/builtins.c a codegen C file? |
Turns out, yeah! Thanks for giving it a try though. |
/home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:44:34: error: initializer element is not constant { "tjs:assert", tjs__assert, tjs__assert_size }, ^~~~~~~~~~~~~~~~ /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:44:34: note: (near initialization for ‘builtins[0].data_size’) /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:45:28: error: initializer element is not constant { "tjs:ffi", tjs__ffi, tjs__ffi_size }, ^~~~~~~~~~~~~ /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:45:28: note: (near initialization for ‘builtins[1].data_size’) /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:46:36: error: initializer element is not constant { "tjs:getopts", tjs__getopts, tjs__getopts_size }, ^~~~~~~~~~~~~~~~~ /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:46:36: note: (near initialization for ‘builtins[2].data_size’) /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:47:36: error: initializer element is not constant { "tjs:hashing", tjs__hashing, tjs__hashing_size }, ^~~~~~~~~~~~~~~~~ /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:47:36: note: (near initialization for ‘builtins[3].data_size’) /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:48:34: error: initializer element is not constant { "tjs:ipaddr", tjs__ipaddr, tjs__ipaddr_size }, ^~~~~~~~~~~~~~~~ /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:48:34: note: (near initialization for ‘builtins[4].data_size’) /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:49:30: error: initializer element is not constant { "tjs:path", tjs__path, tjs__path_size }, ^~~~~~~~~~~~~~ /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:49:30: note: (near initialization for ‘builtins[5].data_size’) /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:50:46: error: initializer element is not constant { "tjs:posix-socket", tjs__posix_socket, tjs__posix_socket_size }, ^~~~~~~~~~~~~~~~~~~~~~ /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:50:46: note: (near initialization for ‘builtins[6].data_size’) /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:51:34: error: initializer element is not constant { "tjs:sqlite", tjs__sqlite, tjs__sqlite_size }, ^~~~~~~~~~~~~~~~ /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:51:34: note: (near initialization for ‘builtins[7].data_size’) /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:52:30: error: initializer element is not constant { "tjs:uuid", tjs__uuid, tjs__uuid_size }, ^~~~~~~~~~~~~~ /home/wangyang/cross/.xmake/cache/packages/2408/t/txiki.js/v24.6.0/source/txiki.js/src/builtins.c:52:30: note: (near initialization for ‘builtins[8].data_size’)
low version gcc will trig error like this