Build errors preventing it from building for Windows (x86_64-pc-windows-gnu)
Lyamc opened this issue · comments
- MSYS2 does not have a version of the jemalloc package that installs the static libraries, and jemalloc-sys crate doesn't see the library even if it's correct.
- The termion crate does not support Windows.
- The poule crate uses platform-specific libc which do not exist on Windows.
To resolve 1, do the following before your cargo build
, assuming you are running MSYS2 MINGW64:
jemalloc_ver=$(pacman -Ss jemalloc | grep "$MINGW_PACKAGE_PREFIX-jemalloc" | awk '{print $2}' | cut -d'-' -f1)
curl -L https://github.com/jemalloc/jemalloc/releases/download/$jemalloc_ver/jemalloc-$jemalloc_ver.tar.bz2 | tar -xj
cd jemalloc-$jemalloc_ver
./configure --host=$MINGW_CHOST --disable-cxx --disable-initial-exec-tls --with-private-namespace=_rjem_ --prefix=$MSYSTEM_PREFIX
make install_lib_static
export JEMALLOC_OVERRIDE=$PKG_CONFIG_SYSTEM_LIBRARY_PATH/jemalloc.lib
I don't know if anyone wants to do anything about 2 and 3, but I wanted to at least document the issue
Hello, thank you for the interest that you give to Sōzu !
However, the project is strongly relying on linux kernel primitives, even if we change or update crates to allow the compilation the project will not work as expected.
Besides, for now, the support of Windows is not in the scope of the project.