v
v copied to clipboard
Error: '_const_math__bits__ntz_8_tab' undeclared when compiling pure V code.
Describe the bug
When running
v run ./main.v
On one of my V libraries here, it produces the following error:
/tmp/v_1000/main.01J974J4K7T4VV2MN0PJG6PX35.tmp.c:7030: error: '_const_math__bits__ntz_8_tab' undeclared
builder error:
==================
C error found. It should never happen, when compiling pure V code.
This is a V compiler bug, please report it using `v bug file.v`,
or goto https://github.com/vlang/v/issues/new/choose .
You can also use #help on Discord: https://discord.gg/vlang .
Reproduction Steps
Try to run the main.v
on the provided Git project using the latest V.
Expected Behavior
It should print:
{"hello": false}
Current Behavior
It fails with the bug:
/tmp/v_1000/main.01J974J4K7T4VV2MN0PJG6PX35.tmp.c:7030: error: '_const_math__bits__ntz_8_tab' undeclared
builder error:
==================
C error found. It should never happen, when compiling pure V code.
This is a V compiler bug, please report it using `v bug file.v`,
or goto https://github.com/vlang/v/issues/new/choose .
You can also use #help on Discord: https://discord.gg/vlang .
Possible Solution
No response
Additional Information/Context
No response
V version
V version: V 0.4.8 c01186c
Environment details (OS name and version, etc.)
V full version: V 0.4.8 d89e6df.c01186c OS: linux, Ubuntu 22.04.5 LTS Processor: 24 cpus, 64bit, little endian, AMD Ryzen 9 5900X 12-Core Processor
Git version: git version 2.34.1 Git vroot status: weekly.2024.03-1418-gc01186c7 .git/config present: true
CC version: cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 thirdparty/tcc status: thirdparty-linux-amd64 0134e9b9
[!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.