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

Compilation error on windows caused by config.h #30

Open
amuerta opened this issue Jun 20, 2024 · 0 comments
Open

Compilation error on windows caused by config.h #30

amuerta opened this issue Jun 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@amuerta
Copy link

amuerta commented Jun 20, 2024

Bug Description

When installing everything for v, running compilation for my project (or any other project) that uses raylibv causes an compiler error:

C:\Users\amu\Documents\vlang\example>v -cc gcc run main.v
failed thirdparty object build cmd:
gcc -std=c99 -D_DEFAULT_SOURCE   -fwrapv  -D PLATFORM_DESKTOP -I "C:\Users\amu\.vmodules\irishgreencitrus\raylibv\raylib\src\external\glfw\deps\mingw" -I "C:\Users\amu\.vmodules\irishgreencitrus\raylibv\raylib\src\external\glfw\include" -o "C:\Users\amu\.vmodules\cache\8f\8ffe51fdf8a7390906cd4bf8f63ca0f8.module.irishgreencitrus.raylibv.o" -c "C:\Users\amu\.vmodules\irishgreencitrus\raylibv\raylib\src\raudio.c"
builder error: C:\Users\amu\.vmodules\irishgreencitrus\raylibv\raylib\src\raudio.c:79:18: fatal error: config.h: No such file or directory
   79 |         #include "config.h"     // Defines module configuration flags
      |                  ^~~~~~~~~~
compilation terminated.

Steps to Reproduce

  1. Install latest raylibv and v on windows 10 under VirtualBox (maybe virtual box doesn`t affect anything, its hard to tell)
  2. create simple hello world window like core_window_example
  3. run using v compiler: v -cc gcc run main.v

Intended Behaviour

Successful compialtion

Known Workarounds (if any)

V 0.4.6 537fa1b

raylib.v commit hash

Environment Details (OS name and version, etc.)

V full version: V 0.4.6 537fa1b
OS: windows, Microsoft Windows 10 Home v19045 64-bit running under VirtualBox
Processor: 6 cpus, 64bit, little endian,

getwd: C:\Users\amu\Documents\vlang\example
vexe: C:\v\v.exe
vexe mtime: 2024-06-20 16:48:46

vroot: OK, value: C:\v
VMODULES: OK, value: C:\Users\amu.vmodules
VTMP: OK, value: C:\Users\amu\AppData\Local\Temp\v_0

Git version: git version 2.45.2.windows.1
Git vroot status: Error: fatal: detected dubious ownership in repository at 'C:/v'
'C:/v' is owned by:
BUILTIN/Administrators (S-1-5-32-544)
but the current user is:
WIN10/amu (S-1-5-21-1474005053-2211241098-2941017997-1000)
To add an exception for this directory, call:

    git config --global --add safe.directory C:/v

.git/config present: true

CC version: Error: 'cc' is not recognized as an internal or external command,
operable program or batch file.

thirdparty/tcc status: Error: fatal: detected dubious ownership in repository at 'C:/v/thirdparty/tcc'
'C:/v/thirdparty/tcc' is owned by:
BUILTIN/Administrators (S-1-5-32-544)
but the current user is:
WIN10/amu (S-1-5-21-1474005053-2211241098-2941017997-1000)
To add an exception for this directory, call:

    git config --global --add safe.directory C:/v/thirdparty/tcc

Error: fatal: detected dubious ownership in repository at 'C:/v/thirdparty/tcc'
'C:/v/thirdparty/tcc' is owned by:
BUILTIN/Administrators (S-1-5-32-544)
but the current user is:
WIN10/amu (S-1-5-21-1474005053-2211241098-2941017997-1000)
To add an exception for this directory, call:

    git config --global --add safe.directory C:/v/thirdparty/tcc
@amuerta amuerta added the bug Something isn't working label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant