Project

General

Profile

Actions

Bug #10780

closed

Unable to build with Visual Studio 2013

Added by djberg96 (Daniel Berger) about 9 years ago. Updated about 9 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
[ruby-core:67789]

Description

Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x86
Windows 7 Pro
Ruby 2.2.0

I am unable to build from source. After running configure.bat and nmake, I eventually get this:

Assembling: ./src/x86/win32.asm
./src/x86/win32.asm(1014) : warning A6001:no return from procedure
./src/x86/win32.asm(1186) : warning A6001:no return from procedure
./src/x86/win32.asm(999) : error A2071:initializer magnitude too large for specified size
./src/x86/win32.asm(999) : warning A6004:procedure argument or local not referenced : FORCEFRAME./src/x86/win3
2.asm(1014) : warning A6004:procedure argument or local not reference
./src/x86/win32.asm(1097) : warning A6004:procedure argument or local not reference
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\ml.EXE"' : return code '0x1'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.EXE"' : return code '0x2'
Stop.

Updated by usa (Usaku NAKAMURA) about 9 years ago

  • Status changed from Open to Third Party's Issue

It seems that a bug of ml.exe of VS2013.
I found a workaround.
After this error, try these commands.

cd ext\fiddle\libffi-3.2.1\src\x86
ml -c -coff -W3 -Cx -Fo win32.obj win32.asm
cd ..\..\..\..\..
nmake

Updated by djberg96 (Daniel Berger) about 9 years ago

That seemed to work, thank you.

Actions #3

Updated by usa (Usaku NAKAMURA) about 9 years ago

  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED

Updated by naruse (Yui NARUSE) about 9 years ago

  • Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE

ruby_2_2 r49521 merged revision(s) 49397.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0