v
v copied to clipboard
`Make` fails: function `rand.next` is private
V version: V 0.1.4 OS: Arch Linux C compiler version: clang version 8.0.0
What did you do?
I ran make clean and then make
What did you expect to see? Anything but an error, obviously.
What did you see instead?
bowero@bow-pc:[~/v/compiler]:make string_reverse +
wget https://raw.githubusercontent.com/vlang/vc/master/v.c
--2019-06-26 17:57:01-- https://raw.githubusercontent.com/vlang/vc/master/v.c
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.36.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.36.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 322435 (315K) [text/plain]
Saving to: ‘v.c’
v.c 100%[==============>] 314.88K 1.79MB/s in 0.2s
2019-06-26 17:57:01 (1.79 MB/s) - ‘v.c’ saved [322435/322435]
cc -std=gnu11 -w -o v v.c
./v -o v .
pass=2 fn=`time__random`
=========================
It looks like you are building V. It is being frequently updated every day.
If you didn't modify the compiler's code, most likely there was a change that
lead to this error.
Try to run `git pull && make clean && make`, that will most likely fix it.
If this doesn't help, re-install V from source or download a precompiled binary from
https://vlang.io.
=========================
panic: time.v:64
function `rand.next` is private
make: *** [Makefile:5: v] Error 1
I will look into this myself, but wanted to create an issue about it anyway.
git pull
make clean all
0.1.4 still uses wget? UPD: yes
Fixed. git pull
0.1.4 still uses wget?
what do you mean?
The README.md does, but Makefile uses curl.