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 with x86_64-w64-mingw32-g++ #153

Open
rlpires opened this issue Dec 16, 2020 · 0 comments
Open

Compilation with x86_64-w64-mingw32-g++ #153

rlpires opened this issue Dec 16, 2020 · 0 comments

Comments

@rlpires
Copy link

rlpires commented Dec 16, 2020

I have put together a patch for 2.2.2 to make it compile with x86_64-w64-mingw32-g++/gcc and target Windows.
Currently using capnp 0.8.0.

Patch is restricted to mmap/munmap and memcpy wrapper.

Some tests throw exceptions, whereas the same on Linux/gcc runs fine.

MINGW64 ~/dev/Mash-2.2.2/test
$ ../mash sketch -o genomes.msh genome1.fna genome2.fna genome3.fna
$ ../mash sketch -r -I reads reads1.fastq reads2.fastq -o reads.msh
$ ../mash dist genomes.msh reads.msh > genomes.dist

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
terminate called after throwing an instance of 'kj::ExceptionImpl'
what(): capnp/layout.c++:2384: failed: expected expectedDataBitsPerElement <= dataSize; Message contained list with incompatible element type.

Anyone ever attempted compilation with MinGW?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant