Forum: Ruby-core [ruby-trunk - Bug #7950][Open] Ruby 2 fails to build on mswin with VC

Posted by Ryexander (Benjamin Powers) (Guest)
on 2013-02-25 00:16
(Received via mailing list)
Issue #7950 has been reported by Ryexander (Benjamin Powers).

----------------------------------------
Bug #7950: Ruby 2 fails to build  on mswin with VC
https://bugs.ruby-lang.org/issues/7950

Author: Ryexander (Benjamin Powers)
Status: Open
Priority: Normal
Assignee:
Category: build
Target version: 2.0.0
ruby -v: 1.9.3


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
Posted by Ryexander (Benjamin Powers) (Guest)
on 2013-02-25 00:20
(Received via mailing list)
Issue #7950 has been updated by Ryexander (Benjamin Powers).


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

option nodynamic

win32api
#socket
zlib

----------------------------------------
Bug #7950: Ruby 2 fails to build  on mswin with VC
https://bugs.ruby-lang.org/issues/7950#change-36964

Author: Ryexander (Benjamin Powers)
Status: Open
Priority: Normal
Assignee:
Category: build
Target version: 2.0.0
ruby -v: 1.9.3


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
Posted by Luis Lavena (luislavena)
on 2013-02-25 00:26
(Received via mailing list)
Issue #7950 has been updated by luislavena (Luis Lavena).

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


----------------------------------------
Bug #7950: Ruby 2 fails to build  on mswin with VC
https://bugs.ruby-lang.org/issues/7950#change-36965

Author: Ryexander (Benjamin Powers)
Status: Assigned
Priority: Normal
Assignee: usa (Usaku NAKAMURA)
Category: build
Target version: 2.0.0
ruby -v: 1.9.3


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
Posted by usa (Usaku NAKAMURA) (Guest)
on 2013-02-25 00:52
(Received via mailing list)
Issue #7950 has been updated by usa (Usaku NAKAMURA).


static linking is not tested...

nobu, do you have any opinion?
----------------------------------------
Bug #7950: Ruby 2 fails to build  on mswin with VC
https://bugs.ruby-lang.org/issues/7950#change-36966

Author: Ryexander (Benjamin Powers)
Status: Assigned
Priority: Normal
Assignee: usa (Usaku NAKAMURA)
Category: build
Target version: 2.0.0
ruby -v: 1.9.3


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
Posted by Nobuyoshi Nakada (nobu)
on 2013-02-25 02:42
(Received via mailing list)
Issue #7950 has been updated by nobu (Nobuyoshi Nakada).

Status changed from Assigned to Feedback

Could you show enc.mk file?
----------------------------------------
Bug #7950: Ruby 2 fails to build  on mswin with VC
https://bugs.ruby-lang.org/issues/7950#change-36975

Author: Ryexander (Benjamin Powers)
Status: Feedback
Priority: Normal
Assignee: usa (Usaku NAKAMURA)
Category: build
Target version: 2.0.0
ruby -v: 1.9.3


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
Posted by Ryexander (Benjamin Powers) (Guest)
on 2013-02-25 03:56
(Received via mailing list)
Issue #7950 has been updated by Ryexander (Benjamin Powers).

File enc.mk added

enc.mk file atached
----------------------------------------
Bug #7950: Ruby 2 fails to build  on mswin with VC
https://bugs.ruby-lang.org/issues/7950#change-36981

Author: Ryexander (Benjamin Powers)
Status: Feedback
Priority: Normal
Assignee: usa (Usaku NAKAMURA)
Category: build
Target version: 2.0.0
ruby -v: 1.9.3


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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.