Skip to content
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

currently unable to boot strap compiler or compile anything else #720

Closed
fuzzy opened this issue Jun 27, 2019 · 2 comments
Closed

currently unable to boot strap compiler or compile anything else #720

fuzzy opened this issue Jun 27, 2019 · 2 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@fuzzy
Copy link
Contributor

fuzzy commented Jun 27, 2019

V version: v0.1.3
OS: Linux kerplop 5.1.8-1-MANJARO #1 SMP PREEMPT Sun Jun 9 20:44:14 UTC 2019 x86_64 GNU/Linux
C compiler version: gcc version 8.3.0 (GCC)

What did you do?
Try to bootstrap the compiler

What did you expect to see?
successful return to shell prompt

What did you see instead?
The following is a direct paste. Step by step I bootstrapped the c version, compiling the second stage fails. The same error is present if I try to build any of the examples, I have included that below this first block.

[master][~/work/build/v/compiler]$ gcc -w -o v.stage1 v.c    
*[master][~/work/build/v/compiler]$ ./v.stage1 -o v.stage2 .
!!! +
!!! -
pass=2 fn=`utf32_to_str_no_malloc`
panic: utf8.v:287
Fn "tos" wrong arg #1. Expected "byte*" (s)  but got "byteptr"
*[master][~/work/build/v/compiler]$ ./v.stage1 version      
V 0.1.3
*[master][~/work/build/v/examples]$ ../compiler/v.stage1 log.v
pass=2 fn=`utf32_to_str_no_malloc`
panic: utf8.v:287
Fn "tos" wrong arg #1. Expected "byte*" (s)  but got "byteptr"
@fuzzy fuzzy added the Bug This tag is applied to issues which reports bugs. label Jun 27, 2019
@medvednikov
Copy link
Member

I just tried

git clone https://github.com/vlang/v
cd v/compiler
make

And it works fine.

Try rm ~/.vlang/VROOT

@fuzzy
Copy link
Contributor Author

fuzzy commented Jun 27, 2019

indeed it does work fine! Closing this one out, but taking the opportunity to say that I am pretty impressed so far, I found V yesterday and I'm REALLY looking forward to the c generation as I use a lot of ARM systems and that would enable me to target them with a single extra step of code transpiling. As a workaround until hopefully native machine code generation supports arm(64), I find that workable.

@fuzzy fuzzy closed this as completed Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

2 participants