V: V self compilation and symlink issue

Created on 23 Sep 2019  路  11Comments  路  Source: vlang/v

V version: 0.1.20 69b498d
OS: Windows 10 Home (Build 1903)

What did you do?
Installed Vlang via Git Bash, installed tools via cygwin, ran the makefile and created a symlink
Tried to have v compile itself.

What did you see instead?
cc: Error: unknown command line option 禄-mmacosx-version-min=10.7芦
V error: C error. This should never happen. Please create a GitHub issue... (and so on)

Also despite creating the symlink, I can麓t run the v command outside the top v directory aswell as in v麓s subdirectories (e.g. the "examples folder").

Thanks for taking you time, much appreciated.

Bug

Most helpful comment

I've updated the wiki:

Please note that Cygwin is not supported. It's used to run *nix software that doesn't run on Windows.
V has full Windows support, so there's no point in Cygwin.

All 11 comments

Don't you use Cygwin instead use WSL. Then do sudo apt install build-essentials then follow steps given.

Don't you use Cygwin instead use WSL.

Excuse me, but don麓t you change the users demands when compatibility doesn麓t match them.

Cygwin is not supported. There's no point in Cygwin since windows is supported natively.

Just follow the instructions in README.md.

I did indeed follow the instructions, there was no indication about it not being supported... :/

What does gcc -v say?

You can modify your PATH variable, instead of creating a symlink @Lacrimus .

I am not familiar with cygwin anymore (have not used it for over 12 years), but maybe you can put
export PATH=$PATH:/your/v/toplevel/folder
... inside your ~/.bashrc file and try again.

About the -mmacosx-version-min=10.7 thing, for some reason it thinks you are on macos.
You can try to override that, with adding:
export VFLAGS="-os windows" in your ~/.bashrc .

Cygwin is not supported, and you are on your own pretty much though if you encounter bugs... The mingw compiler (or msvc) is much better tested (they even have their own CI builds, so breaking them is quickly fixed).

These fixes are not going to work. It's much easier to use mingw-w64.

I'll make it clear in the readme that cygwin is not supported.

Thanks for the clarification!

I've updated the wiki:

Please note that Cygwin is not supported. It's used to run *nix software that doesn't run on Windows.
V has full Windows support, so there's no point in Cygwin.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

PavelVozenilek picture PavelVozenilek  路  3Comments

choleraehyq picture choleraehyq  路  3Comments

oleg-kachan picture oleg-kachan  路  3Comments

radare picture radare  路  3Comments

cjmxp picture cjmxp  路  3Comments