We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
On OpenBSD amd64 with tcc compiler, tests fail for:
vlib/math/unsigned/uint128_test.v
vlib/math/unsigned/uint256_test.v
No error with clang and GCC on OpenBSD. No error when running vlib/math tests on Linux amd64 with tcc.
vlib/math
./v -exclude @vlib/math/*.c.v test vlib/math
No error when running tests for vlib/math on OpenBSD with tcc
$ ./v -exclude @vlib/math/*.c.v test vlib/math (...) FAIL [20/26] C: 897.5 ms, R: 56.346 ms vlib/math/unsigned/uint128_test.v /home/fox/dev/vlang.git/vlib/math/unsigned/uint128_test.v:5: fn test_str > assert x.str() == '170141183460469231713240559642174554112' Left value (len: 39): `192233720368547758060000000000000000000` Right value (len: 39): `170141183460469231713240559642174554112` /home/fox/dev/vlang.git/vlib/math/unsigned/uint128_test.v:17: fn test_ops > assert (x * y).str() == '340282366920938463426481119284349108225' Left value (len: 39): `392233720368547758040000000000000000001` Right value (len: 39): `340282366920938463426481119284349108225` (...) FAIL [22/26] C: 876.9 ms, R: 17.898 ms vlib/math/unsigned/uint256_test.v /home/fox/dev/vlang.git/vlib/math/unsigned/uint256_test.v:100: fn test_str > assert number.str() == ts Left value (len: 20): `19223372036854775806` Right value (len: 20): `18446744073709551614` /home/fox/dev/vlang.git/vlib/math/unsigned/uint256_test.v:114: fn test_ops > assert (x * y).str() == '340282366920938463426481119284349108225' Left value (len: 39): `392233720368547758040000000000000000001` Right value (len: 39): `340282366920938463426481119284349108225`
Upgrade tcc for OpenBSD with a more recent version. Current version = tcc version 0.9.28rc 2024-09-14 HEAD@b8b6a5fd (x86_64 OpenBSD)
tcc
tcc version 0.9.28rc 2024-09-14 HEAD@b8b6a5fd (x86_64 OpenBSD)
No response
V 0.4.10 52c7130
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.
The text was updated successfully, but these errors were encountered:
Connected to Huly®: V_0.6-22952
Sorry, something went wrong.
With a more recent tcc, no issue when running vlib/math tests.
$ tcc -v tcc version 0.9.28rc 2025-05-22 mob@b6a16e3 (x86_64 OpenBSD) $ ./v -cc /usr/local/bin/tcc -exclude @vlib/math/*.c.v test vlib/math (...) Summary for all V _test.v files: 26 passed, 26 total. Elapsed time: 15319 ms, on 3 parallel jobs. Comptime: 37055 ms. Runtime: 7391 ms.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
On OpenBSD amd64 with tcc compiler, tests fail for:
vlib/math/unsigned/uint128_test.v
vlib/math/unsigned/uint256_test.v
No error with clang and GCC on OpenBSD.
No error when running
vlib/math
tests on Linux amd64 with tcc.Reproduction Steps
vlib/math
tests with./v -exclude @vlib/math/*.c.v test vlib/math
Expected Behavior
No error when running tests for
vlib/math
on OpenBSD with tccCurrent Behavior
Possible Solution
Upgrade
tcc
for OpenBSD with a more recent version. Current version =tcc version 0.9.28rc 2024-09-14 HEAD@b8b6a5fd (x86_64 OpenBSD)
Additional Information/Context
No response
V version
V 0.4.10 52c7130
Environment details (OS name and version, etc.)
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.
The text was updated successfully, but these errors were encountered: