v icon indicating copy to clipboard operation
v copied to clipboard

Build failed with Mingw-w64.

Open erdian718 opened this issue 7 years ago • 5 comments

$ cc --version
cc.exe (Rev1, Built by MSYS2 project) 9.1.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ cc -w -o vc v.c
v.c:65:10: fatal error: execinfo.h: No such file or directory
   65 | #include <execinfo.h>
      |          ^~~~~~~~~~~~
compilation terminated.

erdian718 avatar Jun 23 '19 02:06 erdian718

Build succeed on WSL.

erdian718 avatar Jun 23 '19 06:06 erdian718

@ofunc I was able to get it to compile on windows (mingw cc), but there were a couple of things I had to do, I might make another issue explaining

joe-conigliaro avatar Jun 23 '19 06:06 joe-conigliaro

@ofunc here is how I got it to compile for windows: https://github.com/vlang/v/issues/413

joe-conigliaro avatar Jun 23 '19 07:06 joe-conigliaro

@ofunc How did you able to compile it in WSL? I was able to remove the error by putting an #ifdef around the #include <execinfo.h>. Now I am stuck at these messages:

/tmp/v-7c6724.o:(.text+0x9100): undefined reference to `getline'
/tmp/v-7c6724.o:(.text+0x9632): undefined reference to `backtrace'
/tmp/v-7c6724.o:(.text+0x965c): undefined reference to `backtrace_symbols_fd'

I'm using WCLANG btw

nedpals avatar Jun 25 '19 03:06 nedpals

Please refer to #413. We have too many Windows issues otherwise. Thanks for your understanding.

Bowero avatar Jun 26 '19 18:06 Bowero