{"action":"created","issue":{"url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/294","labels_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/294/labels{/name}","comments_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/294/comments","events_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/294/events","html_url":"https://github.com/Alexpux/MSYS2-packages/issues/294","id":95034963,"number":294,"title":"env.exe not working with llvm/clang tests","user":{"login":"martell","id":1595499,"avatar_url":"https://avatars.githubusercontent.com/u/1595499?v=3","gravatar_id":"","url":"https://api.github.com/users/martell","html_url":"https://github.com/martell","followers_url":"https://api.github.com/users/martell/followers","following_url":"https://api.github.com/users/martell/following{/other_user}","gists_url":"https://api.github.com/users/martell/gists{/gist_id}","starred_url":"https://api.github.com/users/martell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martell/subscriptions","organizations_url":"https://api.github.com/users/martell/orgs","repos_url":"https://api.github.com/users/martell/repos","events_url":"https://api.github.com/users/martell/events{/privacy}","received_events_url":"https://api.github.com/users/martell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-14T20:38:51Z","updated_at":"2015-07-15T06:10:10Z","closed_at":null,"body":"From Yaron over at llvm/clang\r\n\r\nThese four test are failing with MSYS2 env.exe:\r\n\r\nFailing Tests (4):\r\n    Clang :: Driver/cl-inputs.c\r\n    Clang :: Driver/darwin-sdkroot.c\r\n    LLVM :: Object/archive-toc.test\r\n    LLVM :: Object/extract.ll\r\n\r\nFor example, running\r\n\r\nc:\\llvm-clean>msvc\\RelWithDebInfo\\bin\\llvm-lit.py -v test\\Object\\archive-toc.test\r\n\r\nresults in the error\r\n\r\ntest\\Object\\archive-toc.test:4:11: error: expected string not found in input\r\nGNU:      rw-r--r-- 500/500      8 2004-11-19 02:57:37.000000000 evenlen\r\n          ^\r\n<stdin>:1:1: note: scanning from here\r\nrw-r--r-- 500/500      8 2004-11-19 04:57:37.000000000 evenlen\r\n\r\nfor the test line:\r\n\r\nRUN: env TZ=GMT llvm-ar tv %p/Inputs/GNU.a | FileCheck %s --check-prefix=GNU -strict-whitespace\r\n\r\nwhat happens is that TZ is not actually passed to llvm-ar and thus the time is not adjusted to GMT.\r\n\r\nIf I replace MSYS2 env.exe with the antique copy from   http://gnuwin32.sourceforge.net/packages/coreutils.htm\r\nthese tests do pass!\r\n\r\nBTW, it's interesting to note there was also a problem with MSYS1 env.exe, maybe a different problem, see my comment at\r\n\r\n http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20141103/117978.html"},"comment":{"url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/comments/121502032","html_url":"https://github.com/Alexpux/MSYS2-packages/issues/294#issuecomment-121502032","issue_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/294","id":121502032,"user":{"login":"yrnkrn","id":8429717,"avatar_url":"https://avatars.githubusercontent.com/u/8429717?v=3","gravatar_id":"","url":"https://api.github.com/users/yrnkrn","html_url":"https://github.com/yrnkrn","followers_url":"https://api.github.com/users/yrnkrn/followers","following_url":"https://api.github.com/users/yrnkrn/following{/other_user}","gists_url":"https://api.github.com/users/yrnkrn/gists{/gist_id}","starred_url":"https://api.github.com/users/yrnkrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yrnkrn/subscriptions","organizations_url":"https://api.github.com/users/yrnkrn/orgs","repos_url":"https://api.github.com/users/yrnkrn/repos","events_url":"https://api.github.com/users/yrnkrn/events{/privacy}","received_events_url":"https://api.github.com/users/yrnkrn/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T06:10:10Z","updated_at":"2015-07-15T06:10:10Z","body":"Thanks for looking into this. This behaviour is a block to using MSYS2 with LLVM development, as by default these four tests will fail. An option for env.exe to do pass TZ will not be a good solution as the  Linux env will not recognize it so the tests will have to behave differently on MSYS and Linux.\r\nMaybe making a seperate package, env-with-TZ which the user can install if he needs the TZ.\r\n\r\nWhat problems passing TZ did cause?\r\n"}}