{"action":"created","issue":{"url":"https://api.github.com/repos/ebiggers/libdeflate/issues/15","repository_url":"https://api.github.com/repos/ebiggers/libdeflate","labels_url":"https://api.github.com/repos/ebiggers/libdeflate/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/ebiggers/libdeflate/issues/15/comments","events_url":"https://api.github.com/repos/ebiggers/libdeflate/issues/15/events","html_url":"https://github.com/ebiggers/libdeflate/issues/15","id":173577852,"number":15,"title":"MinGW/make errors","user":{"login":"JoeArizona","id":8071692,"avatar_url":"https://avatars.githubusercontent.com/u/8071692?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeArizona","html_url":"https://github.com/JoeArizona","followers_url":"https://api.github.com/users/JoeArizona/followers","following_url":"https://api.github.com/users/JoeArizona/following{/other_user}","gists_url":"https://api.github.com/users/JoeArizona/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeArizona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeArizona/subscriptions","organizations_url":"https://api.github.com/users/JoeArizona/orgs","repos_url":"https://api.github.com/users/JoeArizona/repos","events_url":"https://api.github.com/users/JoeArizona/events{/privacy}","received_events_url":"https://api.github.com/users/JoeArizona/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-27T04:50:16Z","updated_at":"2016-08-28T03:43:21Z","closed_at":null,"body":"Hello – I've not found any way to compile on Windows using the MinGW64 toolchain. If I use make as described in the ReadMe, I get the following errors:\r\n\r\n```\r\n-Wpedantic was unexpected at this time.\r\n-Wdeclaration-after-statement was unexpected at this time.\r\n-Wmissing-prototypes was unexpected at this time.\r\n-Wstrict-prototypes was unexpected at this time.\r\n-Wvla was unexpected at this time.\r\n'flags' is not recognized as an internal or external command,\r\noperable program or batch file.\r\nmake: *** [Makefile:137: .lib-cflags] Error 1\r\n```\r\n\r\nAny ideas? I'm on Windows 10 64-bit, using Stephan Lavavej's [64-bit MinGW bundle](https://nuwen.net/mingw.html), which uses GCC 6.1 (though I don't think GCC is yet making an appearance given the above errors)."},"comment":{"url":"https://api.github.com/repos/ebiggers/libdeflate/issues/comments/242954368","html_url":"https://github.com/ebiggers/libdeflate/issues/15#issuecomment-242954368","issue_url":"https://api.github.com/repos/ebiggers/libdeflate/issues/15","id":242954368,"user":{"login":"JoeArizona","id":8071692,"avatar_url":"https://avatars.githubusercontent.com/u/8071692?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeArizona","html_url":"https://github.com/JoeArizona","followers_url":"https://api.github.com/users/JoeArizona/followers","following_url":"https://api.github.com/users/JoeArizona/following{/other_user}","gists_url":"https://api.github.com/users/JoeArizona/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeArizona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeArizona/subscriptions","organizations_url":"https://api.github.com/users/JoeArizona/orgs","repos_url":"https://api.github.com/users/JoeArizona/repos","events_url":"https://api.github.com/users/JoeArizona/events{/privacy}","received_events_url":"https://api.github.com/users/JoeArizona/received_events","type":"User","site_admin":false},"created_at":"2016-08-28T03:43:21Z","updated_at":"2016-08-28T03:43:21Z","body":"That's very helpful. At first I was puzzled by your references to git\\bin and git\\usr\\bin since I didn't have any such directories in the MinGW install. Then I realized I chose his \"without-git\" build since I already have git installed separately. I had no idea I needed to put sh on my path until now. So I did that and the build runs through to the error at bottom:\r\n\r\n CC       lib/aligned_malloc.pic.o\r\n  CC       lib/deflate_decompress.pic.o\r\n  CC       lib/x86_cpu_features.pic.o\r\n  CC       lib/deflate_compress.pic.o\r\n  CC       lib/adler32.pic.o\r\n  CC       lib/zlib_decompress.pic.o\r\n  CC       lib/zlib_compress.pic.o\r\n  CC       lib/crc32.pic.o\r\n  CC       lib/gzip_decompress.pic.o\r\n  CC       lib/gzip_compress.pic.o\r\n  CCLD     libdeflate.so\r\n  CC       lib/aligned_malloc.o\r\n  CC       lib/deflate_decompress.o\r\n  CC       lib/x86_cpu_features.o\r\n  CC       lib/deflate_compress.o\r\n  CC       lib/adler32.o\r\n  CC       lib/zlib_decompress.o\r\n  CC       lib/zlib_compress.o\r\n  CC       lib/crc32.o\r\n  CC       lib/gzip_decompress.o\r\n  CC       lib/gzip_compress.o\r\n  AR       libdeflate.a\r\n  GEN      programs/config.h\r\n  CC       programs/gzip.o\r\n  CC       programs/prog_util.o\r\n  CC       programs/tgetopt.o\r\n  CCLD     gzip\r\nc:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/6.1.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x2e): undefined reference to `WinMain'\r\ncollect2.exe: error: ld returned 1 exit status\r\nmake: *** [Makefile:177: gzip] Error 1\r\n\r\nAny ideas? I'm not sure what these Linux .a binaries are doing in this context.\r\n\r\nConversely, I was able to successfully compile using nmake, but that took a lot of digging and modifications to the .msc file, pointing it to the right includes, and only succeeds when using a special VS command line interface. I can write that up separately. The Windows C runtime and libraries [were refactored](https://blogs.msdn.microsoft.com/vcblog/2014/06/10/the-great-c-runtime-crt-refactoring/) for Windows 10, and relocated."}}
{"actor":{"display_login":"JoeArizona"}}