bazel build v8 from source code failed with `js-temporal-objects.cc`

17 views
Skip to first unread message

Yulan Wang

unread,
Feb 21, 2023, 2:40:31 PM2/21/23
to v8-users
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

Yahan Lu

unread,
Feb 22, 2023, 2:21:24 AM2/22/23
to v8-users
Can you try ninja to build it?

Yulan Wang

unread,
Feb 22, 2023, 6:32:00 PM2/22/23
to v8-users
Seems this caused by gcc version flag setting. After add the flag `-Wno-nonnull` to gcc build, problem solved. 
Reply all
Reply to author
Forward
0 new messages