v icon indicating copy to clipboard operation
v copied to clipboard

`Make` fails: function `rand.next` is private

Open Bowero opened this issue 7 years ago • 5 comments

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.

Bowero avatar Jun 26 '19 15:06 Bowero

git pull
make clean all

whoizit avatar Jun 26 '19 16:06 whoizit

0.1.4 still uses wget? UPD: yes

whoizit avatar Jun 26 '19 16:06 whoizit

Fixed. git pull

medvednikov avatar Jun 26 '19 16:06 medvednikov

0.1.4 still uses wget?

what do you mean?

medvednikov avatar Jun 26 '19 16:06 medvednikov

The README.md does, but Makefile uses curl.

Bowero avatar Jun 26 '19 17:06 Bowero