Project

General

Profile

Actions

Bug #6103

closed

Build failure on trunk 34850 with VC 2010

Added by phasis68 (Heesob Park) about 12 years ago. Updated about 12 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0dev (2012-02-29 trunk 34850)
Backport:
[ruby-core:43012]

Description

I get the following failure on Windows XP with VC 2010 while building trunk@34850.

C:\work\snapshot>win32\configure.bat
Checking unicows.lib
Creating Makefile.new
"type `nmake' to make ruby."

C:\work\snapshot>nmake

Microsoft(R) Program Maintenance Utility 버전 10.00.30319.01
Copyright (c) Microsoft Corporation. 모든 권리 보유.

    CC = cl -nologo
    LD = cl -nologo
    LDSHARED = cl -nologo -LD
    CFLAGS = -MD -Zi -W2 -wd4996 -we4028 -we4142 -O2sy-  -Zm600
    XCFLAGS = -DRUBY_EXPORT -I. -I.ext/include/i386-mswin32_100 -I./include

-I. -I./missing
CPPFLAGS =
DLDFLAGS = -incremental:no -debug -opt:ref -opt:icf -dll
SOLIBS =
Creating config.h
.ext\include\i386-mswin32_100\ruby\config.h updated.
Creating config.status
compiling main.c
main.c
compiling dmydln.c
dmydln.c
compiling miniruby.rc
compiling dmyencoding.c
dmyencoding.c
compiling version.c
version.c
compiling dmyversion.c
dmyversion.c
compiling miniprelude.c
miniprelude.c
compiling array.c
array.c
compiling bignum.c
bignum.c
compiling class.c
class.c
compiling compar.c
compar.c
compiling complex.c
complex.c
compiling dir.c
dir.c
compiling dln_find.c
dln_find.c
compiling enum.c
enum.c
compiling enumerator.c
enumerator.c
compiling error.c
error.c
compiling eval.c
eval.c
compiling load.c
load.c
compiling proc.c
proc.c
compiling file.c
file.c
compiling gc.c
gc.c
compiling hash.c
hash.c
compiling inits.c
inits.c
compiling io.c
io.c
compiling marshal.c
marshal.c
compiling math.c
math.c
compiling node.c
node.c
compiling numeric.c
numeric.c
compiling object.c
object.c
compiling pack.c
pack.c
compiling parse.c
parse.c
compiling process.c
process.c
compiling random.c
random.c
compiling range.c
range.c
compiling rational.c
rational.c
compiling re.c
re.c
compiling regcomp.c
regcomp.c
compiling regenc.c
regenc.c
compiling regerror.c
regerror.c
compiling regexec.c
regexec.c
compiling regparse.c
regparse.c
compiling regsyntax.c
regsyntax.c
compiling ruby.c
ruby.c
compiling safe.c
safe.c
compiling signal.c
signal.c
compiling sprintf.c
sprintf.c
compiling st.c
st.c
compiling strftime.c
strftime.c
compiling string.c
string.c
compiling struct.c
struct.c
compiling time.c
time.c
compiling transcode.c
transcode.c
compiling util.c
util.c
compiling variable.c
variable.c
compiling compile.c
compile.c
compiling debug.c
debug.c
compiling iseq.c
iseq.c
compiling vm.c
vm.c
compiling vm_dump.c
vm_dump.c
compiling thread.c
thread.c
compiling cont.c
cont.c
compiling ./enc/ascii.c
ascii.c
compiling ./enc/us_ascii.c
us_ascii.c
compiling ./enc/unicode.c
unicode.c
compiling ./enc/utf_8.c
utf_8.c
compiling newline.c
newline.c
compiling ./missing/acosh.c
acosh.c
compiling ./missing/cbrt.c
cbrt.c
compiling ./missing/crypt.c
crypt.c
compiling ./missing/erf.c
erf.c
compiling ./missing/ffs.c
ffs.c
compiling ./missing/langinfo.c
langinfo.c
compiling ./missing/lgamma_r.c
lgamma_r.c
compiling ./missing/strlcat.c
strlcat.c
compiling ./missing/strlcpy.c
strlcpy.c
compiling ./missing/tgamma.c
tgamma.c
executable host ruby is required. use --with-baseruby option.
NMAKE : fatal error U1077: 'echo' : '0x1' 반환 코드입니다.
Stop.

If this means executing "win32\configure.bat" is not sufficient any more and required preinstalled ruby?

Updated by h.shirosaki (Hiroshi Shirosaki) about 12 years ago

Hi,

executable host ruby is required. use --with-baseruby option.
NMAKE : fatal error U1077: 'echo' : '0x1' 반환 코드입니다.
Stop.

If this means executing "win32\configure.bat" is not sufficient any more and required preinstalled ruby?

Yes. I modified MAKEDIRS to use BASERUBY, so preinstalled ruby is required.
It needs to make win32 directory when building outside of src directory.

-MAKEDIRS = $(MINIRUBY) -run -e mkdir -- -p
+MAKEDIRS = $(BASERUBY) -run -e mkdir -- -p

--
Hiroshi Shirosaki

Actions #2

Updated by usa (Usaku NAKAMURA) about 12 years ago

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

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


  • win32/Makefile.sub (MAKEDIRS): use mkdir of cmd.exe instead of ruby.
    [Bug #6103] [ruby-core:43012]

  • win32/README.win32: added a notice about command extension of cmd.exe.

Updated by usa (Usaku NAKAMURA) about 12 years ago

Hello,

In message "[ruby-core:43013] Re: [ruby-trunk - Bug #6103][Open] Build failure on trunk 34850 with VC 2010"
on Feb.29,2012 13:04:47, wrote:

If this means executing "win32\configure.bat" is not sufficient any more and required preinstalled ruby?

Yes. I modified MAKEDIRS to use BASERUBY, so preinstalled ruby is required.
It needs to make win32 directory when building outside of src directory.

I did not notice such a trap...

Please check r34859.

Building ruby from a release package MUST NOT depend on

the preinstalled ruby.

Regards,

U.Nakamura

Updated by h.shirosaki (Hiroshi Shirosaki) about 12 years ago

I did not notice such a trap...

Please check r34859.

Thank you. I checked your commit.

Building ruby from a release package MUST NOT depend on

the preinstalled ruby.

Sorry. I didn't understand that. I've read Requirement of win32/README.win32.

--
Hiroshi Shirosaki

Updated by usa (Usaku NAKAMURA) about 12 years ago

Hello,

In message "[ruby-core:43016] Re: [ruby-trunk - Bug #6103][Open] Build failure on trunk 34850 with VC 2010"
on Feb.29,2012 17:53:30, wrote:

Building ruby from a release package MUST NOT depend on

the preinstalled ruby.

Sorry. I didn't understand that. I've read Requirement of win32/README.win32.

Requirement (3) means that you can build ruby from a release package.
Requirement (4) means that you need these commands additionaly to build
ruby from SVN repository.

Regards,

U.Nakamura

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0