vlang / v

Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build error

AnimalStudioOfficial opened this issue · comments

V doctor:

OS: windows, Microsoft Windows 11 Home v22000 64-bit
Processor: 4 cpus, 64bit, little endian, Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz  

CC version: cc (Rev10, Built by MSYS2 project) 11.2.0

getwd: C:\Users\Dragon boy\Desktop\Programeing\test
vmodules: C:\Users\Dragon boy\.vmodules
vroot: C:\v-master\v-master
vexe: C:\v-master\v-master\v.exe
vexe mtime: 2022-05-01 19:10:55
is vroot writable: true
is vmodules writable: true
V full version: V 0.2.4 aed2d0c

Git version: git version 2.24.1.windows.2
Git vroot status: Error: fatal: not a git repository (or any of the parent directories): .git
.git/config present: false
thirdparty/tcc status: thirdparty-windows-amd64 0137a863

What did you do?
v -cg .

What did you expect to see?

to compile a v file

What did you see instead?

C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:532: warning: WINVER redefined
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:9044: warning: implicit declaration of function 'tcc_backtrace'
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:9663: warning: assignment from incompatible pointer type
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:9663: warning: assignment makes pointer from integer without a cast
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:9663: warning: cast between pointer and integer of different size
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:16337: warning: assignment from incompatible pointer type
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:16428: warning: implicit declaration of function 'GetFinalPathNameByHandleW'
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:18066: warning: implicit declaration of function 'CreateSymbolicLinkW'
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:18126: warning: assignment from incompatible pointer type
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:18138: warning: assignment from incompatible pointer type
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:18601: warning: assignment from incompatible pointer type
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:18691: warning: assignment from incompatible pointer type
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:22654: warning: assignment from incompatible pointer type
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:22661: warning: assignment from incompatible pointer type
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:22668: warning: assignment from incompatible pointer type
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:22676: warning: assignment from incompatible pointer type
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:22704: warning: assignment from incompatible pointer type
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:22704: warning: assignment from incompatible pointer type
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:22724: warning: assignment from incompatible pointer type
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:22726: warning: assignment from incompatible pointer type
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:22726: warning: assignment from incompatible pointer type
C:/Users/Dragon boy/AppData/Local/Temp/v_0/test.15778920486705634775.tmp.c:22746: warning: assignment from incompatible pointer type
tcc: error: could not write 'C:\Users\Dragon boy\Desktop\Programeing\test\test.exe': Permission denied
builder error:
==================
C error. This should never happen.

This is a compiler bug, please report it using `v bug file.v`.

https://github.com/vlang/v/issues/new/choose

You can also use #help on Discord: https://discord.gg/vlang

While V should have a way to check for the executable being in use, this is a fairly Windows specific problem. You almost certain compiled test.exe before, and it was still running when you compiled again - Windows doesn't allow you to overwrite a running program.

Second most likely problem is that the file is actually write-protected somehow.

You also need to update your version of V. What you have is over 300 commits behind the current. Recommended procedure if you hit an error is to do v up (or git pull then ./make.bat in the V dir) to update to the latest, then try again. If you still hit the error, report it.

While V should have a way to check for the executable being in use, this is a fairly Windows specific problem. You almost certain compiled test.exe before, and it was still running when you compiled again - Windows doesn't allow you to overwrite a running program.

Second most likely problem is that the file is actually write-protected somehow.

You also need to update your version of V. What you have is over 300 commits behind the current. Recommended procedure if you hit an error is to do v up (or git pull then ./make.bat in the V dir) to update to the latest, then try again. If you still hit the error, report it.

Oh, I updated V and it works fine now TYSM.

ezoic increase your site revenue