Skip to content

make stuck under ARM/Linux #23924

Description

@kbkpbot

Describe the bug

When try to make create a v under ARM Linux, it will stuck at v2 stage.

Reproduction Steps

make

Expected Behavior

create a new v.

Current Behavior

make stuck at v2 stage.

$ make
cd ./vc && git clean -xf && git pull --quiet
remote: Enumerating objects: 2, done.
remote: Counting objects: 100% (2/2), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 2 (delta 1), reused 0 (delta 0), pack-reused 0 (from 0)
接收对象中: 100% (2/2), 1.04 MiB | 360.00 KiB/s, 完成.
处理 delta 中: 100% (1/1), 完成.
正在更新文件: 100% (2/2), 完成.
cd ./thirdparty/tcc && git clean -xf && git pull --quiet
cc  -std=gnu99 -w -o v1 ./vc/v.c -lm -lpthread  || cmd/tools/cc_compilation_failed_non_windows.sh
./v1 -no-parallel -o v2  cmd/v
./v2 -nocache -o ./v  cmd/v

Possible Solution

By editing the GNUMakefile, add a -no-parallel flag to the v2 command, it will create a new v successful.

$ make
cd ./vc && git clean -xf && git pull --quiet
cd ./thirdparty/tcc && git clean -xf && git pull --quiet
cc  -std=gnu99 -w -o v1 ./vc/v.c -lm -lpthread  || cmd/tools/cc_compilation_failed_non_windows.sh
./v1 -no-parallel -o v2  cmd/v
./v2 -nocache -no-parallel -o ./v  cmd/v
rm -rf v1 v2

But v repl can't start...

Additional Information/Context

It may related to the parallel compiling under ARM/Linux

V version

V 0.4.9 89d1aac

Environment details (OS name and version, etc.)

V full version V 0.4.9 a694918.89d1aac
OS linux, Ubuntu 20.04.6 LTS
Processor 4 cpus, 64bit, little endian, aarch64
Memory 0.61GB/3.78GB
V executable /home/vpn/github/lang/v/v_old
V last modified time 2025-02-23 11:35:00
V home dir OK, value: /home/vpn/github/lang/v
VMODULES OK, value: /home/vpn/.vmodules
VTMP OK, value: /tmp/v_1001
Current working dir OK, value: /home/vpn/github/lang/v
Git version git version 2.25.1
V git status weekly.2025.11-22-g17695801-dirty
.git/config present true
cc version cc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
gcc version gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
clang version clang version 10.0.0-4ubuntu1
tcc version tcc version 0.9.27 mob:da11cf6 (AArch64 Linux)
tcc git status thirdparty-linux-aarch64 ecc2f67a
emcc version N/A
glibc version ldd (Ubuntu GLIBC 2.31-0ubuntu9.17) 2.31

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: ARMBugs/feature requests, that are related to architecture ARM.BugThis tag is applied to issues which reports bugs.BuildV build error on any OS/CPU architecture.Compiler: TCCBugs/feature requests, that are related to compiling V programs with TCC.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions