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

Self tests failed with Clang and prod flag #22246

Open
lcheylus opened this issue Sep 18, 2024 · 0 comments
Open

Self tests failed with Clang and prod flag #22246

lcheylus opened this issue Sep 18, 2024 · 0 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@lcheylus
Copy link
Contributor

lcheylus commented Sep 18, 2024

Describe the bug

Using Clang 16 with prod flag, some tests failed during self-test

Same types of errors with Clang16 + flag prod on Linux/amd64 and OpenBSD/amd64

Reproduction Steps

  • Build V from sources on Linux/amd64 and OpenBSD/amd64
  • Run self-tests with clang + prod mode : VTEST_JUST_ESSENTIAL=1 ./v -prod -cc clang test-self

Expected Behavior

No error for self-test with Clang + prod mode

Current Behavior

  • NOK: Errors with Clang with prod on Linux/amd64
$ clang --version
Debian clang version 16.0.6 (27+b1)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

$ VTEST_JUST_ESSENTIAL=1 ./v -prod -cc clang test-self
(...)
Failed command 1:    '/home/fox/dev/vlang.git/v' -skip-running -prod -cc clang  -o '/tmp/v_1000/tsession_7f0bb2120740_01J80HK1QSW5BEPH821NJWPWWP/64_6/program_test' '/home/fox/dev/vlang.git/vlib/v/gen/js/program_test.v'
Failed command 2:    '/home/fox/dev/vlang.git/v' -skip-running -prod -cc clang  -o '/tmp/v_1000/tsession_7f0bb2120740_01J80HK1QSW5BEPH821NJWPWWP/60_1/interpret_test' '/home/fox/dev/vlang.git/vlib/v/eval/interpret_test.v'
Failed command 3:    '/home/fox/dev/vlang.git/v' -skip-running -prod -cc clang  -o '/tmp/v_1000/tsession_7f0bb2120740_01J80HK1QSW5BEPH821NJWPWWP/58_2/compiler_errors_test' '/home/fox/dev/vlang.git/vlib/v/compiler_errors_test.v'
Failed command 4:    '/home/fox/dev/vlang.git/v' -skip-running -prod -cc clang  -o '/tmp/v_1000/tsession_7f0bb2120740_01J80HK1QSW5BEPH821NJWPWWP/68_2/compiler_test' '/home/fox/dev/vlang.git/vlib/v/slow_tests/inout/compiler_test.v'
Summary for testing: cmd, vlib: 4 failed, 66 passed, 70 total. Elapsed time: 323615 ms, on 7 parallel jobs.

WARNING: failed 4 times.
  • OK: No error with Clang without prod on Linux/amd64
$ $ VTEST_JUST_ESSENTIAL=1 ./v -cc clang test-self
(...)
Summary for testing: cmd, vlib: 70 passed, 70 total. Elapsed time: 116879 ms, on 7 parallel jobs.
  • NOK: Errors with Clang with prod on OpenBSD/amd64
$ VTEST_JUST_ESSENTIAL=1 ./v -prod -cc clang test-self
(...)
Failed command 1:    '/home/fox/dev/vlang.git/v' -skip-running -prod -cc clang  -o '/tmp/v_1000/tsession_2e14c3698_01J80J01Q168Y07VYSZ88B4NJZ/33_0/server_test' '/home/fox/dev/vlang.git/vlib/net/http/server_test.v'
Failed command 2:    '/home/fox/dev/vlang.git/v' -skip-running -prod -cc clang  -o '/tmp/v_1000/tsession_2e14c3698_01J80J01Q168Y07VYSZ88B4NJZ/58_0/compiler_errors_test' '/home/fox/dev/vlang.git/vlib/v/compiler_errors_test.v'
Failed command 3:    '/home/fox/dev/vlang.git/v' -skip-running -prod -cc clang  -o '/tmp/v_1000/tsession_2e14c3698_01J80J01Q168Y07VYSZ88B4NJZ/63_0/coutput_test' '/home/fox/dev/vlang.git/vlib/v/gen/c/coutput_test.v'
Failed command 4:    '/home/fox/dev/vlang.git/v' -skip-running -prod -cc clang  -o '/tmp/v_1000/tsession_2e14c3698_01J80J01Q168Y07VYSZ88B4NJZ/64_0/program_test' '/home/fox/dev/vlang.git/vlib/v/gen/js/program_test.v'
Failed command 5:    '/home/fox/dev/vlang.git/v' -skip-running -prod -cc clang  -o '/tmp/v_1000/tsession_2e14c3698_01J80J01Q168Y07VYSZ88B4NJZ/68_0/compiler_test' '/home/fox/dev/vlang.git/vlib/v/slow_tests/inout/compiler_test.v'
Summary for testing: cmd, vlib: 5 failed, 65 passed, 70 total. Elapsed time: 1719536 ms, on 1 job.

WARNING: failed 5 times.

=> same errors than on Linux/amd64 (+ test failed for vlib/net/http/server_test.v already known on OpenBSD/amd64, see issue #22126)

  • NOK: Errors with Clang without prod on OpenBSD/amd64
$ VTEST_JUST_ESSENTIAL=1 ./v  -cc clang test-self
(...)
Failed command 1:    '/home/fox/dev/vlang.git/v' -skip-running -cc clang  -o '/tmp/v_1000/tsession_2dfced698_01J822TVBN15BJ9CF6RDRPPHZ4/33_0/server_test' '/home/fox/dev/vlang.git/vlib/net/http/server_test.v'
Failed command 2:    '/home/fox/dev/vlang.git/v' -skip-running -cc clang  -o '/tmp/v_1000/tsession_2dfced698_01J822TVBN15BJ9CF6RDRPPHZ4/58_0/compiler_errors_test' '/home/fox/dev/vlang.git/vlib/v/compiler_errors_test.v'
Failed command 3:    '/home/fox/dev/vlang.git/v' -skip-running -cc clang  -o '/tmp/v_1000/tsession_2dfced698_01J822TVBN15BJ9CF6RDRPPHZ4/63_0/coutput_test' '/home/fox/dev/vlang.git/vlib/v/gen/c/coutput_test.v'
Summary for testing: cmd, vlib: 3 failed, 67 passed, 70 total. Elapsed time: 1257632 ms, on 1 job.

WARNING: failed 3 times.

=> 2 errors for vlib/v/compiler_errors_test.v and vlib/v/gen/c/coutput_test.v (+ test failed for vlib/net/http/server_test.v already known on OpenBSD/amd64, see issue #22126)

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.4.7 c0f7244

Environment details (OS name and version, etc.)

V full version: V 0.4.7 c0f7244
OS: linux, Debian GNU/Linux trixie/sid
Processor: 8 cpus, 64bit, little endian, Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz

getwd: /home/fox/dev/vlang.git
vexe: /home/fox/dev/vlang.git/v
vexe mtime: 2024-09-18 07:58:16

vroot: OK, value: /home/fox/dev/vlang.git
VMODULES: OK, value: /home/fox/.vmodules
VTMP: OK, value: /tmp/v_1000

Git version: git version 2.45.2
Git vroot status: weekly.2024.37-17-gc0f72446
.git/config present: true

CC version: cc (Debian 14.2.0-3) 14.2.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.

@lcheylus lcheylus added the Bug This tag is applied to issues which reports bugs. label Sep 18, 2024
@lcheylus lcheylus changed the title Self tests failed with Clang with prod flag Self tests failed with Clang and prod flag Sep 18, 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