Hi,
I was building v8 v12.4.254.21 using gcc and ran into error.
Here's where the compilation ended.
make[2]: *** [tools/v8_gypfiles/v8_base_without_compiler.target.mk:1118:
{v8-root}/out/Release/obj.target/v8_base_without_compiler/deps/v8/src/debug/debug-coverage.o]
Error 1
I checked the error log, seems that some clang attribute is being used thus
error was triggered. The following is a small segment of error log.
```
../deps/v8/src/common/ptr-compr.h:67:39: error: ‘V8_CONSTINIT’ does not
name a type; did you mean ‘V8_ONCE_INIT’?
67 | static thread_local uintptr_t base_ V8_CONSTINIT;
| ^~~~~~~~~~~~
| V8_ONCE_INIT
../deps/v8/src/common/ptr-compr.h: In static member function ‘static
v8::internal::Tagged_t
v8::internal::SmiCompressionScheme::CompressObject(v8::internal::Address)’:
../deps/v8/src/common/ptr-compr.h:98:5: error: ‘V8_ASSUME’ was not declared
in this scope; did you mean ‘ABSL_ASSUME’?
98 | V8_ASSUME(HAS_SMI_TAG(tagged));
| ^~~~~~~~~
| ABSL_ASSUME
In file included from ../deps/v8/src/handles/handles.h:15,
from ../deps/v8/src/debug/debug-coverage.h:12,
from ../deps/v8/src/debug/debug-coverage.cc:5:
../deps/v8/src/zone/zone.h: At global scope:
../deps/v8/src/zone/zone.h:254:15: error: ‘V8_PRESERVE_MOST’ does not name
a type
254 | V8_NOINLINE V8_PRESERVE_MOST void Expand(size_t size);
| ^~~~~~~~~~~~~~~~
../deps/v8/src/zone/zone.h: In member function ‘void*
v8::internal::Zone::Allocate(size_t)’:
```
In my config.gypi generated by configure.py, the 'clang' in 'variables' is
0.
How can i tweak the configuration so v8 can be appropriately compiled using
gcc/g++?
--
--
v8-users mailing list
[email protected]
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 [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/v8-users/e8378907-1c7a-41c3-868d-46d94cbc6957n%40googlegroups.com.