{"comment":{"created_at":"2011-10-20T03:56:25Z","body":"No luck:\r\n\r\n```\r\nDon't know how to build task 'native:eventmachine:x86-mingw32'\r\n/Users/test/.rvm/gems/ruby-1.8.7-p330/gems/rake-0.9.2/lib/rake/task_manager.rb:49:in `[]'\r\n/Users/test/.rvm/gems/ruby-1.8.7-p330/gems/rake-0.9.2/lib/rake/task.rb:298:in `[]'\r\n/Users/test/code/em/tasks/package.rake:31:in `setup_cross_compilation'\r\n/Users/test/code/em/tasks/package.rake:30:in `each'\r\n/Users/test/code/em/tasks/package.rake:30:in `setup_cross_compilation'\r\n/Users/test/code/em/tasks/package.rake:39\r\n/Users/test/.rvm/gems/ruby-1.8.7-p330/gems/rake-compiler-0.7.9/lib/rake/baseextensiontask.rb:34:in `initialize'\r\n/Users/test/code/em/tasks/package.rake:36:in `new'\r\n/Users/test/code/em/tasks/package.rake:36\r\n```","updated_at":"2011-10-20T03:56:25Z","url":"https://api.github.com/repos/luislavena/rake-compiler/issues/comments/2464432","id":2464432,"user":{"avatar_url":"https://secure.gravatar.com/avatar/d47656e20ff5e42f125fc5ea0fd636c6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d47656e20ff5e42f125fc5ea0fd636c6","url":"https://api.github.com/users/tmm1","id":2567,"login":"tmm1"}},"action":"created","issue":{"number":36,"created_at":"2011-03-01T09:31:26Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"eventmachine defines two extension tasks: https://github.com/eventmachine/eventmachine/blob/master/tasks/package.rake#L25-33\r\n\r\neach one uses its own cross_compiling block to add a .rb fat-binary wrapper to spec.files, but the second extension gets rubyeventmachine.rb added to it instead of fastfilereader.rb\r\n\r\nwith this patch:\r\n\r\n    diff --git a/tasks/package.rake b/tasks/package.rake\r\n    index 84e317e..73a5c6f 100644\r\n    --- a/tasks/package.rake\r\n    +++ b/tasks/package.rake\r\n    @@ -16,7 +16,9 @@ else\r\n           ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60']\r\n     \r\n           # inject 1.8/1.9 pure-ruby entry point\r\n    +      p [:outside, ext.object_id, ext.name]\r\n           ext.cross_compiling do |spec|\r\n    +        p [:inside, ext.object_id, ext.name]\r\n             spec.files += [\"lib/#{ext.name}.rb\"]\r\n           end\r\n         end\r\n\r\nyou can see the first block is getting called twice:\r\n\r\n    [:outside, 2159882380, \"rubyeventmachine\"]\r\n    [:outside, 2159788460, \"fastfilereaderext\"]\r\n    [:inside, 2159882380, \"rubyeventmachine\"]\r\n    [:inside, 2159882380, \"rubyeventmachine\"]\r\n","comments":6,"title":"cannot define two `Rake::ExtensionTask`s with separate cross_compiling blocks","updated_at":"2011-10-20T03:56:25Z","url":"https://api.github.com/repos/luislavena/rake-compiler/issues/36","id":636980,"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/e7cff3cfd41c495e1012227d7dc24202?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e7cff3cfd41c495e1012227d7dc24202","url":"https://api.github.com/users/luislavena","id":4182,"login":"luislavena"},"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/d47656e20ff5e42f125fc5ea0fd636c6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d47656e20ff5e42f125fc5ea0fd636c6","url":"https://api.github.com/users/tmm1","id":2567,"login":"tmm1"},"html_url":"https://github.com/luislavena/rake-compiler/issues/36","labels":[{"name":"bug","url":"https://api.github.com/repos/luislavena/rake-compiler/labels/bug","color":"cf2525"}],"state":"open"},"legacy":{"issue_id":636980,"comment_id":2464432}}