{"action":"created","issue":{"url":"https://api.github.com/repos/kripken/emscripten/issues/410","labels_url":"https://api.github.com/repos/kripken/emscripten/issues/410/labels{/name}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/410/comments","events_url":"https://api.github.com/repos/kripken/emscripten/issues/410/events","html_url":"https://github.com/kripken/emscripten/issues/410","id":4286006,"number":410,"title":"Serious problem with generateStructInfo","user":{"login":"apatrushev","id":248408,"avatar_url":"https://avatars.githubusercontent.com/u/248408?v=3","gravatar_id":"","url":"https://api.github.com/users/apatrushev","html_url":"https://github.com/apatrushev","followers_url":"https://api.github.com/users/apatrushev/followers","following_url":"https://api.github.com/users/apatrushev/following{/other_user}","gists_url":"https://api.github.com/users/apatrushev/gists{/gist_id}","starred_url":"https://api.github.com/users/apatrushev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apatrushev/subscriptions","organizations_url":"https://api.github.com/users/apatrushev/orgs","repos_url":"https://api.github.com/users/apatrushev/repos","events_url":"https://api.github.com/users/apatrushev/events{/privacy}","received_events_url":"https://api.github.com/users/apatrushev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2012-04-25T17:57:39Z","updated_at":"2015-10-14T05:47:13Z","closed_at":"2012-07-12T21:03:48Z","body":"I'm trying to compile unrar and encountered a big problem. I can't reproduce it on small piece of code. Below some description of reproducing problem on unrar codebase.\r\n\r\nUnrar source code: http://www.rarlab.com/rar/unrarsrc-4.1.4.tar.gz\r\n\r\nCompile minimal set of code reproducing a bug (problem reproduced on full set of code, also).\r\n```\r\nemcc -c file.cpp\r\nemcc -c find.cpp\r\nemcc -c cmddata.cpp\r\nemcc -c rar.cpp\r\n```\r\n\r\nLet's see on some strange behaviour:\r\n```\r\nemcc -o res.bc file.o find.o cmddata.o rar.o\r\nllvm-dis res.bc\r\ngrep \"^%struct.stat\" res.ll\r\n\r\n>>>\r\n%struct.stat = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32] }\r\n%struct.stat.3 = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32] }\r\n```\r\n\r\nAs you can see we have two different %struct.stat here.\r\n\r\nAnd later when we make \"global dead code elimination\":\r\n```\r\nopt -internalize -globaldce res.bc -o res.opt.bc; mv res.opt.bc res.bc\r\nllvm-dis res.bc\r\ngrep \"^%struct.stat\" res.ll\r\n>>>\r\n%struct.stat.3 = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32] }\r\n```\r\n, only second version of %struct.stat is left.\r\n\r\nAnd no __stat_struct_layout in resulting JavaScript.\r\n\r\nHow I can fix this problem ? It's too hard for me to explore deeper... :(\r\n"},"comment":{"url":"https://api.github.com/repos/kripken/emscripten/issues/comments/147942135","html_url":"https://github.com/kripken/emscripten/issues/410#issuecomment-147942135","issue_url":"https://api.github.com/repos/kripken/emscripten/issues/410","id":147942135,"user":{"login":"kirkouimet","id":62191,"avatar_url":"https://avatars.githubusercontent.com/u/62191?v=3","gravatar_id":"","url":"https://api.github.com/users/kirkouimet","html_url":"https://github.com/kirkouimet","followers_url":"https://api.github.com/users/kirkouimet/followers","following_url":"https://api.github.com/users/kirkouimet/following{/other_user}","gists_url":"https://api.github.com/users/kirkouimet/gists{/gist_id}","starred_url":"https://api.github.com/users/kirkouimet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirkouimet/subscriptions","organizations_url":"https://api.github.com/users/kirkouimet/orgs","repos_url":"https://api.github.com/users/kirkouimet/repos","events_url":"https://api.github.com/users/kirkouimet/events{/privacy}","received_events_url":"https://api.github.com/users/kirkouimet/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T05:47:13Z","updated_at":"2015-10-14T05:47:13Z","body":"@apatrushev did you have any luck getting unrar to work with emscripten?"}}