Project

General

Profile

This project is closed and read-only.

Actions

Backport #7950

closed

Ruby 2 fails to build on mswin with VC

Backport #7950: Ruby 2 fails to build on mswin with VC

Added by Ryexander (Benjamin Powers) over 13 years ago. Updated over 13 years ago.


Description

Ruby 2.0 fails to build under mswin with VC (2008 - 2012) with link errors

in order to solve some other errors we were having some edit were made

  1. win32/Makefile.sub:
    • changed RUBY_SO_NAME to be without msvcrXXX prefix
    • remove -debug flag
  2. ext/Setup
    • removed all extensions except win32api, socket and zlib
  3. ext
    • add win32api extensions folder

commands run
..\ruby-2.0.0-p0\win32\configure.bat --target=i386-mswin32 --with-static-linked-ext --disable-win95 --disable-install-doc --so-name=ruby200
nmake

attached are txt file of the output from nmake and the configure.bat


Files

ruby-2.0.0_configure_output.txt (10.2 KB) ruby-2.0.0_configure_output.txt Ryexander (Benjamin Powers), 02/25/2013 08:07 AM
ruby-2.0.0-nmake_output.txt (4.5 KB) ruby-2.0.0-nmake_output.txt Ryexander (Benjamin Powers), 02/25/2013 08:07 AM
enc.mk (53.7 KB) enc.mk Ryexander (Benjamin Powers), 02/25/2013 11:55 AM

Updated by Ryexander (Benjamin Powers) over 13 years ago Actions #1 [ruby-core:52852]

as an addition the ext/Setup file is configured like so

option nodynamic

win32api
#socket
zlib

Updated by luislavena (Luis Lavena) over 13 years ago Actions #2 [ruby-core:52853]

  • Status changed from Open to Assigned
  • Assignee set to usa (Usaku NAKAMURA)

Updated by usa (Usaku NAKAMURA) over 13 years ago Actions #3 [ruby-core:52854]

static linking is not tested...

nobu, do you have any opinion?

Updated by nobu (Nobuyoshi Nakada) over 13 years ago Actions #4 [ruby-core:52862]

  • Status changed from Assigned to Feedback

Could you show enc.mk file?

Updated by Ryexander (Benjamin Powers) over 13 years ago Actions #5 [ruby-core:52866]

enc.mk file atached

Updated by nobu (Nobuyoshi Nakada) over 13 years ago Actions #6

  • Status changed from Feedback to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r39489.
Benjamin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


depend: fix for static library on mswin

  • enc/depend (ARFLAGS): VisualC++ linker does not allow spaces between
    output option and the output file name. [Bug #7950]
  • enc/depend (RANLIB): set default command to do nothing, or make the
    entire line a label on Windows.

Updated by nobu (Nobuyoshi Nakada) over 13 years ago Actions #7

  • Tracker changed from Bug to Backport
  • Project changed from Ruby to 15
  • Category deleted (build)
  • Status changed from Closed to Assigned
  • Assignee changed from usa (Usaku NAKAMURA) to nagachika (Tomoyuki Chikanaga)
  • Target version deleted (2.0.0)

Updated by nagachika (Tomoyuki Chikanaga) over 13 years ago Actions #8

  • Status changed from Assigned to Closed

This issue was solved with changeset r39704.
Benjamin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 39489,39490: [Backport #7950]

* enc/depend (ARFLAGS): VisualC++ linker does not allow spaces between
  output option and the output file name.  [Bug #7950]

* enc/depend (RANLIB): set default command to do nothing, or make the
  entire line a label on Windows.
Actions

Also available in: PDF Atom