You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|.git/config present |true
| |
|cc version |Apple clang version 17.0.0 (clang-1700.0.13.3)
|gcc version |Apple clang version 17.0.0 (clang-1700.0.13.3)
|clang version |Apple clang version 17.0.0 (clang-1700.0.13.3)
|tcc version |tcc version 0.9.28rc 2024-02-05 HEAD@105d70f7 (AArch64 Darwin)
|tcc git status |thirdparty-macos-arm64 713692d4
|emcc version |N/A
|glibc version |N/A
What did you do? ./v -g -o vdbg cmd/v && ./vdbg get.v && /Users/_/Documents/testing/get
================== C compilation error (from cc): ==============
cc: /tmp/v_501/get.01JRJBTMG679EKCZ48R9B6315N.tmp.c:6405:47: error: call to undeclared function 'string_substr_ni'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
cc: 6405 | array_push((array*)&lines, _MOV((string[]){ string_substr_ni(line, 0, end) }));
cc: | ^
cc: /tmp/v_501/get.01JRJBTMG679EKCZ48R9B6315N.tmp.c:6405:47: note: did you mean 'string_substr'?
cc: /tmp/v_501/get.01JRJBTMG679EKCZ48R9B6315N.tmp.c:5491:8: note: 'string_substr' declared here
cc: 5491 | string string_substr(string s, int start, int _end) {
cc: | ^
cc: /tmp/v_501/get.01JRJBTMG679EKCZ48R9B6315N.tmp.c:6405:47: error: incompatible integer to pointer conversion initializing 'u8 *' (aka 'unsigned char *') with an expression of type 'int' [-Wint-conversion]
cc: 6405 | array_push((array*)&lines, _MOV((string[]){ string_substr_ni(line, 0, end) }));
cc: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc: 2 errors generated.
================================================================
(You can pass `-cg`, or `-show-c-output` as well, to print all the C error messages).
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 .
What did you expect to see?
Compiled code
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.
V version: V 0.4.10 d54a823
|.git/config present |true
| |
|cc version |Apple clang version 17.0.0 (clang-1700.0.13.3)
|gcc version |Apple clang version 17.0.0 (clang-1700.0.13.3)
|clang version |Apple clang version 17.0.0 (clang-1700.0.13.3)
|tcc version |tcc version 0.9.28rc 2024-02-05 HEAD@105d70f7 (AArch64 Darwin)
|tcc git status |thirdparty-macos-arm64 713692d4
|emcc version |N/A
|glibc version |N/A
What did you do?
./v -g -o vdbg cmd/v && ./vdbg get.v && /Users/_/Documents/testing/getWhat did you see?
What did you expect to see?
Compiled code
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.