From: usa@... Date: 2014-02-05T03:48:31+00:00 Subject: [ruby-core:60492] [ruby-trunk - Bug #9338] Build failure of trunk with MSVC 2013 Issue #9338 has been updated by Usaku NAKAMURA. Related to Feature #8257: Exception#cause to carry originating exception along with new one added ---------------------------------------- Bug #9338: Build failure of trunk with MSVC 2013 https://bugs.ruby-lang.org/issues/9338#change-44958 * Author: Heesob Park * Status: Closed * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: ruby-2.2.0-r44473 * Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- The revision r44473 introduced the following error. compiling eval.c eval.c eval.c(558) : error C4028: formal parameter 3 different from declaration NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\x86_amd64\cl.EXE"' : return code '0x2' Stop. You can see this issue also in http://rubyci.org (http://ruby-mswin.cloudapp.net/vc10-x64/ruby-trunk/log/20131231T144935Z.log.html.gz) Here is patch diff --git a/eval.c b/eval.c index 783aa33..b3c4100 100644 --- a/eval.c +++ b/eval.c @@ -554,7 +554,7 @@ setup_exception(rb_thread_t *th, int tag, volatile VALUE mesg, VALUE cause) } static void -rb_longjmp(int tag, volatile VALUE mesg, VALUE cause) +rb_longjmp(int tag, volatile VALUE mesg, volatile VALUE cause) { rb_thread_t *th = GET_THREAD(); setup_exception(th, tag, mesg, cause); -- http://bugs.ruby-lang.org/