Seems this caused by gcc version flag setting. After add the flag `-Wno-nonnull` to gcc build, problem solved.
On Tuesday, February 21, 2023 at 11:21:24 PM UTC-8 ya...@iscas.ac.cn wrote: > Can you try ninja to build it? > > 在2023年2月22日星期三 UTC+8 03:40:31<yul...@google.com> 写道: > >> Hi, >> >> I'm trying to include v8 as third party lib in our repo. When I bazel >> build it from source code, I keep get the error of >> ``` >> /5ef69e4d05773e46149703ae8aeafaec/external/v8/BUILD.bazel:3587:11: >> Compiling src/objects/js-temporal-objects.cc failed: (Exit 1): gcc failed: >> error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector >> -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object >> -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG >> -ffunction-sections ... (remaining 75 argument(s) skipped) >> ``` >> >> Anyone know what's the issue about it? Thanks! >> >> Best, >> Yulan >> >> -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/0bb14fe7-9d89-4b91-addd-486475d4b264n%40googlegroups.com.