{"action":"created","issue":{"url":"https://api.github.com/repos/fnuecke/eris/issues/18","labels_url":"https://api.github.com/repos/fnuecke/eris/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/fnuecke/eris/issues/18/comments","events_url":"https://api.github.com/repos/fnuecke/eris/issues/18/events","html_url":"https://github.com/fnuecke/eris/issues/18","id":108780677,"number":18,"title":"some lua unit test failures when using `make mingw` with latest eris release (1.1.0-5.3)","user":{"login":"cbeck88","id":5683852,"avatar_url":"https://avatars.githubusercontent.com/u/5683852?v=3","gravatar_id":"","url":"https://api.github.com/users/cbeck88","html_url":"https://github.com/cbeck88","followers_url":"https://api.github.com/users/cbeck88/followers","following_url":"https://api.github.com/users/cbeck88/following{/other_user}","gists_url":"https://api.github.com/users/cbeck88/gists{/gist_id}","starred_url":"https://api.github.com/users/cbeck88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbeck88/subscriptions","organizations_url":"https://api.github.com/users/cbeck88/orgs","repos_url":"https://api.github.com/users/cbeck88/repos","events_url":"https://api.github.com/users/cbeck88/events{/privacy}","received_events_url":"https://api.github.com/users/cbeck88/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-29T01:59:38Z","updated_at":"2015-09-29T17:08:51Z","closed_at":"2015-09-29T16:11:57Z","body":"I have been trying to get all the lua unit tests to pass for my project whether I build for linux native or cross-compile with mingw. I have had some problems with the mingw version -- most likely there are some problems in my projects configuration.\r\n\r\nHowever, in trying to pinpoint it I also found that when I do a default build of eris (1.1.0-5.3) I don't pass all of the lua-5.3.0 unit tests either, when I run through wine.\r\n\r\nI am testing using the given make file with `make mingw` and running the executable through wine. My test script looks like this, if you care:\r\n\r\nI am using `i686-w64-mingw32-gcc`.\r\n\r\n```\r\n#!/bin/bash\r\n#rm -rf eris-1.1.0-5.3/\r\n#tar -xzf eris-1.1.0-5.3.tar.gz\r\n# Must override provided makefile to use the mingw compiler!\r\n\r\ncd eris-1.1.0-5.3/\r\nmake clean\r\nmake mingw\r\ncd src\r\ncp lua.exe ../../\r\ncp lua53.dll ../../\r\ncd ../../lua-5.3.0-tests/\r\nwine ./../lua.exe -e \"_port=true\" all.lua\r\n```\r\n\r\nThe specific tests that I fail are:\r\nSome test in `strings.lua`, apparently related to `format %a`:\r\n\r\n```\r\n***** FILE 'calls.lua'*****\r\ntesting functions and calls\r\n+\r\n+\r\n+\r\n+\r\n.............................................................................................................................................................................................................................................................................................................................................................testing binary chunks\r\nOK\r\n.testing strings and string library\r\ntesting 'format %a %A'\r\nZ:\\home\\chris\\eris-5.3-master-tests\\lua.exe: strings.lua:231: assertion failed!\r\nstack traceback:\r\n\t[C]: in function 'assert'\r\n\tstrings.lua:231: in main chunk\r\n\t[C]: in function 'dofile'\r\n\tall.lua:153: in main chunk\r\n\t[C]: in ?\r\n.>>> closing state <<<\r\n```\r\n\r\nAnd I fail some `verybig.lua` test (but this looks OS-related):\r\n\r\n```\r\n***** FILE 'verybig.lua'*****\r\ntesting RK\r\ntesting large programs (>64k)\r\nZ:\\home\\chris\\eris-5.3-master-tests\\lua.exe: cannot open file '\\s8.' (Permission denied)\r\nstack traceback:\r\n\t[C]: in function 'io.output'\r\n\t?: in main chunk\r\n\t(...tail calls...)\r\n\tall.lua:180: in main chunk\r\n\t[C]: in ?\r\n.>>> closing state <<<\r\n```\r\n\r\nAnyways I thought maybe it's worth reporting. Do you think I should be worried about any of this?\r\n\r\n-----------------------------------\r\n\r\nEdit: For what it's worth, I fiddled around with this some more, the `'%a'` issue seems to be fixed if I disable it in `luaconf.h`\r\n\r\n```\r\n//#if !defined(LUA_USE_C89) || defined(LUA_USE_WINDOWS)\r\n//#define LUA_USE_AFORMAT\r\n//#endif\r\n```\r\n\r\nIt might just be poor support for the feature or something in my version of mingw?\r\nPossibly related [SO post](http://stackoverflow.com/questions/14466933/sscanf-wont-scan-hexadecimal-formatted-float-with-a-under-mingw)"},"comment":{"url":"https://api.github.com/repos/fnuecke/eris/issues/comments/144123466","html_url":"https://github.com/fnuecke/eris/issues/18#issuecomment-144123466","issue_url":"https://api.github.com/repos/fnuecke/eris/issues/18","id":144123466,"user":{"login":"fnuecke","id":514903,"avatar_url":"https://avatars.githubusercontent.com/u/514903?v=3","gravatar_id":"","url":"https://api.github.com/users/fnuecke","html_url":"https://github.com/fnuecke","followers_url":"https://api.github.com/users/fnuecke/followers","following_url":"https://api.github.com/users/fnuecke/following{/other_user}","gists_url":"https://api.github.com/users/fnuecke/gists{/gist_id}","starred_url":"https://api.github.com/users/fnuecke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnuecke/subscriptions","organizations_url":"https://api.github.com/users/fnuecke/orgs","repos_url":"https://api.github.com/users/fnuecke/repos","events_url":"https://api.github.com/users/fnuecke/events{/privacy}","received_events_url":"https://api.github.com/users/fnuecke/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T17:08:51Z","updated_at":"2015-09-29T17:08:51Z","body":"Allright, glad to hear it! :-)"}}