Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: '_const_math__bits__ntz_8_tab' undeclared when compiling pure V code. #22391

Open
CG-SS opened this issue Oct 2, 2024 · 0 comments
Open
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@CG-SS
Copy link

CG-SS commented Oct 2, 2024

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.

@CG-SS CG-SS added the Bug This tag is applied to issues which reports bugs. label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

1 participant