failed compile d8

36 views
Skip to first unread message

revew

unread,
Nov 4, 2024, 9:04:33 PM11/4/24
to v8-dev
HI, I directly use  `./tools/dev/gm.py x64.debug d8 to compile` d8, but meet 
```
1.      ../../src/objects/instance-type.h:256:1 <Spelling=../../src/objects/instance-type.h:250:73>: current parser token '||'
2.      ../../src/objects/instance-type.h:15:1: parsing namespace 'v8'
3.      ../../src/objects/instance-type.h:16:1: parsing namespace 'v8::internal'
#0 0x0000556faa4495bf (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x44495bf)
clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 20.0.0git (https://chromium.googlesource.com/a/external/github.com/llvm/llvm-project b81d8e90339a788cc6cb148831612c6b39b93ad5)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: ../../third_party/llvm-build/Release+Asserts/bin
clang++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: ../../tools/clang/crashreports/ast-function-literal-id-reindexer-e36f9f.cpp
clang++: note: diagnostic msg: ../../tools/clang/crashreports/ast-function-literal-id-reindexer-e36f9f.sh
clang++: note: diagnostic msg:

********************
[74/1124] CXX obj/v8_base_without_compiler/api.o
ninja: build stopped: subcommand faile
```
clang
```
➜  v8 git:(main) ✗ clang -v
clang version 15.0.0 (https://github.com/apple/llvm-project.git e98989b1092ff3a72610a5be6251b010b06282f7)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/uuu/repo/swift-5.10.1-RELEASE-ubuntu22.04/usr/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/11
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/11
Candidate multilib: .;@m64
Selected multilib: .;@m64
```
ubuntu 22.04 

v8 commit is at 
commit 3b9350b6fc0274e1dbc7c0bd1cde7b9012e559f4 (HEAD -> main, origin/main, origin/HEAD)
Author: Jakob Kummerow <jkum...@chromium.org>
Date:   Mon Nov 4 18:46:42 2024 +0100

I also use docker ubuntu 22.04 to compile, but no any problems. 
I don't know why my host ubuntu 22.04 is failed. 

Jakob Kummerow

unread,
Nov 5, 2024, 7:39:24 AM11/5/24
to v8-...@googlegroups.com
Have you run gclient sync after updating your checkout?

--

revew

unread,
Nov 5, 2024, 10:48:25 PM11/5/24
to v8-dev
Oh, I reinstall ubuntu 22.04 server, but still have this problem. 

and I find that my machine is 14900k cpu, it makes error during compile. After set bios to default setting, no any error. 
Reply all
Reply to author
Forward
0 new messages