-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
tcc errors #2329
Comments
For a temporary workaround, try:
or even simply
Please, do tell the result of |
Also, thank you for the bug report. |
yeah, well, that update works (with the export) Updating V... however, when I go to use it, now I get: v/vlib/builtin/array.v:183:13: ->cap is immutable 183| arr.data = calloc(cap * arr.element_size)
184| } 185| else { As far as my tcc:
and location of crt1.o
|
If I export VFLAGS='-cc clang' then I get past that issue, but now I have other issues (array code that was working before is not working now), I'll see if there is another bug report for that. |
Just to confirm, I also get similar issue on arch linux. The output of running "make":
|
As this was dependant on a pull request in https://github.com/vmisc/tccbin that was merged 40 minutes ago, it is not happening anymore in my Arch Linux machine. Please confirm @bogen85 @cloutiy |
@damontic All seems fine for me now, thanks! |
Huge thanks to @spytheman for fixing it! What's your |
@damontic it is fixed for me as well. Thanks! |
@medvednikov where is this supposed to be run? real 0m0.018s |
@bogen85 |
@medvednikov alright... I'm in the directory v is cloned in... $ v up $ time v compiler real 0m0.020s |
@bogen85 the command changed:
|
I need to update the docs, thanks |
@medvednikov $ time v v.v real 0m0.639s |
V version:
V 0.1.21 b1806b5
OS:
Linux 5.3.5-arch1-1-ARCH #1 SMP PREEMPT 2019 x86_64 GNU/Linux
What did you do?
v up
What did you expect to see?
v to be updated.
What did you see instead?
`
Updating V...
From https://github.com/vlang/v
Already up to date.
Current branch master is up to date.
make: Entering directory '/home/dwight/scratch/v/v'
rm -rf vc/
git clone --depth 1 --quiet https://github.com/vlang/vc
rm -rf /var/tmp/tcc/
git clone --depth 1 --quiet https://github.com/vmisc/tccbin /var/tmp/tcc
cc -std=gnu11 -w -o v vc/v.c -lm
Self rebuild (b1806b5 => 61af044)
tcc: error: file 'crt1.o' not found
tcc: error: file 'crti.o' not found
tcc: error: file 'crtn.o' not found
V error: C error. This should never happen. Please create a GitHub issue: https://github.com/vlang/v/issues/new/choose
make: *** [Makefile:26: all] Error 1
make: Leaving directory '/home/dwight/scratch/v/v'
`
Background
Over the past day I've updated several times.
Normally I got some tcc errors after I went to use after an update.
Doing an
rm -rf /var/tmp/tcc/
after the issues would allow me to use v again.Now (I've tried it several times), it won't update.
I understand this may be a duplicate, but I could not find this specific tcc error here.
I already had tcc installed on my system and was already using it. I removed it to see if these errors would go away, but they did not. (I've been using v less than 24 hours).
The text was updated successfully, but these errors were encountered: