{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/e2d968e91b2a7e5fb0c06a0002f69a6f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e2d968e91b2a7e5fb0c06a0002f69a6f","url":"https://api.github.com/users/markokocic","login":"markokocic","id":45737},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-10-31T15:39:59Z","closed_at":null,"comments":1,"url":"https://api.github.com/repos/akovalenko/sbcl-win32-threads/issues/11","body":"While trying to build the latest version on mingw I got the following error:\r\n\r\n    win32-os.c: In function 'os_init':\r\n    win32-os.c:1435:5: warning: implicit declaration of function '_controlfp' [-Wimplicit-function-declaration]\r\n    win32-os.c:1435:17: error: '_EM_INVALID' undeclared (first use in this function)\r\n    win32-os.c:1435:17: note: each undeclared identifier is reported only once for each function it appears in\r\n    win32-os.c:1435:29: error: '_MCW_EM' undeclared (first use in this function)\r\n    win32-os.c: In function 'os_map':\r\n    win32-os.c:2014:1: warning: label 'use_read' defined but not used [-Wunused-label]\r\n    make: *** [win32-os.o] Error 1\r\n    make: Leaving directory `/c/development/cvstree/sbcl/src/runtime'\r\n    markko@strah /c/development/cvstree/sbcl\r\n    $ gcc -v\r\n    Using built-in specs.\r\n    COLLECT_GCC=C:\\MinGW\\bin\\gcc.exe\r\n    COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.6.1/lto-wrapper.exe\r\n    Target: mingw32\r\n    Configured with: ../gcc-4.6.1/configure --enable-languages=c,c++,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-d\r\n    warf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runti\r\n    me-libs --build=mingw32 --prefix=/mingw\r\n    Thread model: win32\r\n    gcc version 4.6.1 (GCC)","html_url":"https://github.com/akovalenko/sbcl-win32-threads/issues/11","title":"Build failure","number":11,"id":2097734,"created_at":"2011-10-31T14:54:51Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/d1d003cb4cebaca28578920e2fc94692?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d1d003cb4cebaca28578920e2fc94692","url":"https://api.github.com/users/akovalenko","login":"akovalenko","id":366668},"updated_at":"2011-10-31T15:39:59Z","url":"https://api.github.com/repos/akovalenko/sbcl-win32-threads/issues/comments/2578524","body":"There was a bug in mingw. IIRC, both gcc and w32api have float.h, and a wrong one was included. It's fixed in debian (sid) cross-compiler packages of mingw-w64 by now, so an upgrade may help (though I'm not sure about 32-bit mingw release schedules...). It's possible that a downgrade to 4.5 or 4.4 might help as well.\r\n\r\nMeanwhile, a possible workaround is to copy float.h (that which is in the same directory as windows.h) to some zzzfloat.h, and change SBCL's src/runtime/win32-os.c to include zzzfloat.h instead of float.h. I was unable to come up with a workaround that wouldn't be outright ugly (e.g. I could steal those definitions from float.h into SBCL), but if a clean build with that version of mingw is important to you, I'll take a deeper look into it. (Then the exact download link to mingw compiler distribution you're using would be beneficial).\r\n","id":2578524,"created_at":"2011-10-31T15:39:59Z"}}