Backport #7950

Ruby 2 fails to build on mswin with VC

Added by Benjamin Powers about 1 year ago. Updated about 1 year ago.

[ruby-core:52851]
Status:Closed
Priority:Normal
Assignee:Tomoyuki Chikanaga

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 RUBYSONAME 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

ruby-2.0.0_configure_output.txt Magnifier (10.2 KB) Benjamin Powers, 02/25/2013 08:07 AM

ruby-2.0.0-nmake_output.txt Magnifier (4.5 KB) Benjamin Powers, 02/25/2013 08:07 AM

enc.mk (53.7 KB) Benjamin Powers, 02/25/2013 11:55 AM

Associated revisions

Revision 39704
Added by Tomoyuki Chikanaga about 1 year ago

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.

History

#1 Updated by Benjamin Powers about 1 year ago

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

option nodynamic

win32api
#socket
zlib

#2 Updated by Luis Lavena about 1 year ago

  • Status changed from Open to Assigned
  • Assignee set to Usaku NAKAMURA

#3 Updated by Usaku NAKAMURA about 1 year ago

static linking is not tested...

nobu, do you have any opinion?

#4 Updated by Nobuyoshi Nakada about 1 year ago

  • Status changed from Assigned to Feedback

Could you show enc.mk file?

#5 Updated by Benjamin Powers about 1 year ago

enc.mk file atached

#6 Updated by Nobuyoshi Nakada about 1 year ago

  • 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.

#7 Updated by Nobuyoshi Nakada about 1 year ago

  • Tracker changed from Bug to Backport
  • Project changed from ruby-trunk to Backport200
  • Category deleted (build)
  • Status changed from Closed to Assigned
  • Assignee changed from Usaku NAKAMURA to Tomoyuki Chikanaga
  • Target version deleted (2.0.0)

#8 Updated by Tomoyuki Chikanaga about 1 year ago

  • 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.

Also available in: Atom PDF