ravi icon indicating copy to clipboard operation
ravi copied to clipboard

failed to compile in msys2+mingw64 on windows 10 64bits

Open retsyo opened this issue 3 years ago • 1 comments

I run

cd ravi-master
mkdir d
cd d
cmake -G "MSYS Makefiles" ..
make

but

[  0%] Building C object CMakeFiles/libravinojit_static.dir/src/ravi_alloc.c.obj
D:/tmp/ravi-master/src/ravi_alloc.c:1668:1: error: multiple storage classes in declaration specifiers
 1668 | static FORCEINLINE void* win32mmap(size_t size) {
      | ^~~~~~
D:/tmp/ravi-master/src/ravi_alloc.c:1674:1: error: multiple storage classes in declaration specifiers
 1674 | static FORCEINLINE void* win32direct_mmap(size_t size) {
      | ^~~~~~
D:/tmp/ravi-master/src/ravi_alloc.c:1681:1: error: multiple storage classes in declaration specifiers
 1681 | static FORCEINLINE int win32munmap(void* ptr, size_t size) {
      | ^~~~~~
make[2]: *** [CMakeFiles/libravinojit_static.dir/build.make:622: CMakeFiles/libravinojit_static.dir/src/ravi_alloc.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:206: CMakeFiles/libravinojit_static.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

retsyo avatar Dec 26 '21 13:12 retsyo

hi thanks for the feedback. I have never tried building on MSYS.

dibyendumajumdar avatar Dec 26 '21 14:12 dibyendumajumdar

hi @retsyo
I am not sure what steps to follow to reproduce the issue. Did you try to build with cmake from outside MSYS22 - or did you use the CMake that is provided with MSYS2? Please can you share details of how to reproduce? Regards

dibyendumajumdar avatar Nov 12 '22 17:11 dibyendumajumdar

Hi @retsyo I pushed a fix

dibyendumajumdar avatar Aug 01 '23 18:08 dibyendumajumdar