Bug #7367

toooo many test failures after rake 0.9.4 is imported

Added by Usaku NAKAMURA over 1 year ago. Updated over 1 year ago.

[ruby-core:49403]
Status:Closed
Priority:Normal
Assignee:Eric Hodel
Category:lib
Target version:2.0.0
ruby -v:ruby -v: ruby 2.0.0dev (2012-11-16 trunk 37668) [x64-mswin64_100] Backport:

Description

=begin
Yesterday, all my troubles seemed so far away.
Now it looks as though they're here to stay...

cf. Yesterday The Beatles

eban-san told me that these are not platform dependent.

[ 388/1240] TestRakeBacktrace#testsuppressoption = 0.34 s
1) Failure:
testsuppressoption(TestRakeBacktrace) [C:/Users/usa/ruby/test/rake/testrakebacktrace.rb:58]:
--- expected
+++ actual
@@ -1 +1 @@
-"rake aborted!"
+"C:/Users/usa/develop/win/ruby/build/ruby.exe: No such file or directory -- C:/Users/usa/develop/win/ruby/build/bin/rake (LoadError)"

[ 389/1240] TestRakeBacktrace#testsinglecollapse = 0.17 s
2) Failure:
testsinglecollapse(TestRakeBacktrace) [C:/Users/usa/ruby/test/rake/testrakebacktrace.rb:25]:
--- expected
+++ actual
@@ -1 +1 @@
-"rake aborted!"
+"C:/Users/usa/develop/win/ruby/build/ruby.exe: No such file or directory -- C:/Users/usa/develop/win/ruby/build/bin/rake (LoadError)"

[ 390/1240] TestRakeBacktrace#testmulticollapse = 0.17 s
3) Failure:
testmulticollapse(TestRakeBacktrace) [C:/Users/usa/ruby/test/rake/testrakebacktrace.rb:43]:
--- expected
+++ actual
@@ -1 +1 @@
-"rake aborted!"
+"C:/Users/usa/develop/win/ruby/build/ruby.exe: No such file or directory -- C:/Users/usa/develop/win/ruby/build/bin/rake (LoadError)"

[ 395/1240] TestRakeFileTask#testfiletimesnewdependonregulartask
4) Error:
test
filetimesnewdependonregulartasktimestamps(TestRakeFileTask):
LoadError: cannot load such file -- C:/Users/usa/develop/win/ruby/build/lib/rake/phony.rb
C:/Users/usa/ruby/test/rake/test
rakefiletask.rb:119:in load'
C:/Users/usa/ruby/test/rake/test_rake_file_task.rb:119:in
loadphony'
C:/Users/usa/ruby/test/rake/test
rakefiletask.rb:45:in
`testfiletimesnewdependonregulartasktimestamps'

[ 397/1240] TestRakeRakeTestLoader#testpattern = 0.02 s
5) Error:
test
pattern(TestRakeRakeTestLoader):
LoadError: cannot load such file -- C:/Users/usa/develop/win/ruby/build/lib/rake/raketestloader.rb
C:/Users/usa/ruby/test/rake/testrakeraketestloader.rb:13:in load'
C:/Users/usa/ruby/test/rake/test_rake_rake_test_loader.rb:13:in
test_pattern'

[ 398/1240] TestRakeReduceCompat#testnodeprecateddsl = 0.06 s
6) Failure:
test
nodeprecateddsl(TestRakeReduceCompat) [C:/Users/usa/ruby/test/rake/testrakereduce_compat.rb:31]:
Expected: "\"method\""
Actual: ""

[ 399/1240] TestRakeReduceCompat#testnoclassicnamespace = 0.06 s
7) Failure:
test
noclassicnamespace(TestRakeReduceCompat) [C:/Users/usa/ruby/test/rake/testrakereduce_compat.rb:59]:
Expected: "present"
Actual: ""

[ 420/1240] TestRakeFunctional#testcorrectnumberoftasksreported =
8) Failure:
test
correctnumberoftasksreported(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:412]:
Expected: 2
Actual: 0

[ 421/1240] TestRakeFunctional#testdryrun = 0.06 s
9) Failure:
testdryrun(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:233]:
Expected /Execute (dry run) default/ to match "C:/Users/usa/develop/win/ruby/build/ruby.exe: No such file or directory -- C:/Users/usa/develop/win/ruby/build/bin/rake (LoadError)\n".

[ 422/1240] TestRakeFunctional#testfiletaskarenotscopedbynamespa
10) Failure:
test
filetaskarenotscopedbynamespaces(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:364]:
Expected /XYZ1\nXYZ2$/m to match "".

[ 424/1240] TestRakeFunctional#testdotrakefilescanbeloadedwithd
11) Failure:
testdotrakefilescanbeloadedwithdashr(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrake_functional.rb:307]:
Expected "C:/Users/usa/develop/win/ruby/build/ruby.exe: No such file or directory -- C:/Users/usa/develop/win/ruby/build/bin/rake (LoadError)\n" to be empty.

[ 425/1240] TestRakeFunctional#testcaninvoketaskinnestednamespace
12) Failure:
testcaninvoketaskinnestednamespace(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:324]:
Expected /NEST COPY$/ to match "".

[ 426/1240] TestRakeFunctional#testimplicitsystem = 0.12 s
13) Failure:
testimplicitsystem(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:126]:
Expected /SYS1/ to match "".

[ 428/1240] TestRakeFunctional#testdashfwithnoargfoilsrakefilel
14) Failure:
testdashfwithnoargfoilsrakefilelookup(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:299]:
Expected /TEST1$/ to match "".

[ 430/1240] TestRakeFunctional#testrakenamespacereferstotoplevel =
15) Failure:
test
rakenamespacereferstotoplevel(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:356]:
Expected /COPY$/m to match "".

[ 432/1240] TestRakeFunctional#testnosystem = 0.05 s
16) Failure:
testnosystem(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:135]:
Expected /Don't know how to build task/ to match "C:/Users/usa/develop/win/ruby/build/ruby.exe: No such file or directory -- C:/Users/usa/develop/win/ruby/build/bin/rake (LoadError)\n".

[ 435/1240] TestRakeFunctional#testrakedefault = 0.05 s
17) Failure:
testrakedefault(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:29]:
Expected /DEFAULT$/ to match "".

[ 436/1240] TestRakeFunctional#testtaskscanreferencetaskinsamena
18) Failure:
test
taskscanreferencetaskinsamenamespace(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:332]:
Expected /NEST COPY$/m to match "".

[ 437/1240] TestRakeFunctional#testnosearchwithoutrakefilefindssys
19) Failure:
test
nosearchwithoutrakefilefindssystem(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:152]:
Expected /SYS1/ to match "".

[ 438/1240] TestRakeFunctional#testmultidesc = 0.06 s
20) Failure:
testmultidesc(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:62]:
Expected /rake a *# A \/ A2 *$/ to match "".

[ 439/1240] TestRakeFunctional#testnosearchwithoutrakefileandnosy
21) Failure:
testnosearchwithoutrakefileandnosystemfails(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrake_functional.rb:161]:
Expected /No Rakefile found/ to match "C:/Users/usa/develop/win/ruby/build/ruby.exe: No such file or directory -- C:/Users/usa/develop/win/ruby/build/bin/rake (LoadError)\n".

[ 440/1240] TestRakeFunctional#testrbext = 0.06 s
22) Failure:
test
rbext(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:92]:
Expected /OK$/ to match "".

[ 442/1240] TestRakeFunctional#testinlineverbosetrueshouldshowcom
23) Failure:
testinlineverbosetrueshouldshowcommand(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:185]:
Expected /C:\/Users\/usa\/develop\/win\/ruby\/build\/ruby.exe -e/ to match "C:/Users/usa/develop/win/ruby/build/ruby.exe: No such file or directory -- C:/Users/usa/develop/win/ruby/build/bin/rake (LoadError)\n".

[ 443/1240] TestRakeFunctional#teststandaloneverbosetrueshouldshow
24) Failure:
test
standaloneverbosetrueshouldshowcommand(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrake_functional.rb:217]:
Expected /C:\/Users\/usa\/develop\/win\/ruby\/build\/ruby.exe -e/ to match "C:/Users/usa/develop/win/ruby/build/ruby.exe: No such file or directory -- C:/Users/usa/develop/win/ruby/build/bin/rake (LoadError)\n".

[ 446/1240] TestRakeFunctional#testnosearchwithrakefileuseslocalr
25) Failure:
testnosearchwithrakefileuseslocalrakefile(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:143]:
Expected /DEFAULT/ to match "".

[ 447/1240] TestRakeFunctional#testbydefaultrakelibfilesareinclud
26) Failure:
testbydefaultrakelibfilesareincluded(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:117]:
Expected /extra:extra/ to match "".

[ 448/1240] TestRakeFunctional#testinlineverbosedefaultshouldshow
27) Failure:
testinlineverbosedefaultshouldshowcommand(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:177]:
Expected /C:\/Users\/usa\/develop\/win\/ruby\/build\/ruby.exe -e/ to match "C:/Users/usa/develop/win/ruby/build/ruby.exe: No such file or directory -- C:/Users/usa/develop/win/ruby/build/bin/rake (LoadError)\n".

[ 449/1240] TestRakeFunctional#testcommentafterdescisignored = 0.0
28) Failure:
test
commentafterdescisignored(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:396]:
Expected /override\ comment\ for\ t3/ to match "".

[ 451/1240] TestRakeFunctional#testfiletaskdependenciesscopedbyna
29) Failure:
testfiletaskdependenciesscopedbynamespaces(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:372]:
Expected /PREPARE\nSCOPEDEP$/m to match "".

[ 452/1240] TestRakeFunctional#testenvavailableattaskscope = 0.08
30) Failure:
test
envavailableattaskscope(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:53]:
Expected /TASKSCOPE$/ to match "".

[ 453/1240] TestRakeFunctional#testanonymoustaskscanbeinvokedindi
31) Failure:
testanonymoustaskscanbeinvokedindirectly(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:348]:
Expected /ANON COPY$/m to match "".

[ 454/1240] TestRakeFunctional#testruleschainingtofiletask = 0.06
32) Failure:
test
ruleschainingtofiletask(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:280]:
'play.app' file should exist

[ 455/1240] TestRakeFunctional#testblockverbosetrueshouldshowcomm
33) Failure:
testblockverbosetrueshouldshowcommand(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:209]:
Expected /C:\/Users\/usa\/develop\/win\/ruby\/build\/ruby.exe -e/ to match "C:/Users/usa/develop/win/ruby/build/ruby.exe: No such file or directory -- C:/Users/usa/develop/win/ruby/build/bin/rake (LoadError)\n".

[ 456/1240] TestRakeFunctional#testlongdescription = 0.06 s
34) Failure:
testlongdescription(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:73]:
Expected /rake a\n *A \/ A2 *$/m to match "".

[ 457/1240] TestRakeFunctional#testsystem = 0.06 s
35) Failure:
test
system(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:100]:
Expected /SYS1/ to match "".

[ 458/1240] TestRakeFunctional#testinvalidcommandlineoptions = 0.06
36) Failure:
testinvalidcommandlineoptions(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:169]:
Expected /invalid +option/i to match "C:/Users/usa/develop/win/ruby/build/ruby.exe: No such file or directory -- C:/Users/usa/develop/win/ruby/build/bin/rake (LoadError)\n".

[ 459/1240] TestRakeFunctional#testimports = 0.06 s
37) Failure:
test
imports(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:270]:
'dynamic_deps' file should exist

[ 460/1240] TestRakeFunctional#testtaskscanreferencetaskinothern
38) Failure:
test
taskscanreferencetaskinothernamespaces(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:340]:
Expected /IN A\nIN B$/m to match "".

[ 464/1240] TestRakeFunctional#testrakeerroronbadtask = 0.05 s
39) Failure:
test
rakeerroronbadtask(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:37]:
Expected /rake aborted/ to match "C:/Users/usa/develop/win/ruby/build/ruby.exe: No such file or directory -- C:/Users/usa/develop/win/ruby/build/bin/rake (LoadError)\n".

[ 465/1240] TestRakeFunctional#testcommentbeforedescisignored = 0.
40) Failure:
test
commentbeforedescisignored(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:404]:
Expected /override\ comment\ for\ t4/ to match "".

[ 466/1240] TestRakeFunctional#testenvavailableattopscope = 0.05 s
41) Failure:
test
envavailableattopscope(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:45]:
Expected /TOPSCOPE$/ to match "".

[ 467/1240] TestRakeFunctional#testcaninvoketaskintoplevelnamespa
42) Failure:
testcaninvoketaskintoplevelnamespace(TestRakeFunctional) [C:/Users/usa/ruby/test/rake/testrakefunctional.rb:316]:
Expected /COPY$/ to match "".
=end


Related issues

Related to ruby-trunk - Bug #7366: cannot 'make install' when --enable-doc Closed 11/16/2012

History

#1 Updated by Usaku NAKAMURA over 1 year ago

  • Description updated (diff)

#2 Updated by Eric Hodel over 1 year ago

=begin
How do I build ruby outside of ((|$(srcdir)|))?

I get the following failure:

$ mkdir ~/tmp/build
$ cd ~/tmp/build
$ CC=clang ~/Work/svn/ruby/trunk/configure --with-openssl-dir=/usr/local/Cellar/openssl/1.0.1c/
[…]
$ make
CC = clang
LD = ld
LDSHARED = clang -dynamic -bundle
CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -pipe
XCFLAGS = -include ruby/config.h -include ruby/missing.h -DFORTIFYSOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBYEXPORT -fPIE
CPPFLAGS = -D
XOPENSOURCE -DDARWINCSOURCE -DDARWINUNLIMITEDSELECT -DREENTRANT -I. -I.ext/include/x8664-darwin12.2.0 -I/Users/drbrain/Work/svn/ruby/trunk/include -I/Users/drbrain/Work/svn/ruby/trunk
DLDFLAGS = -Wl,-undefined,dynamic
lookup -Wl,-multiplydefined,suppress -fstack-protector -Wl,-u,objcmsgSend -Wl,-pie

SOLIBS =
compiling /Users/drbrain/Work/svn/ruby/trunk/main.c
compiling /Users/drbrain/Work/svn/ruby/trunk/dmydln.c
compiling /Users/drbrain/Work/svn/ruby/trunk/dmyencoding.c
compiling /Users/drbrain/Work/svn/ruby/trunk/version.c
compiling /Users/drbrain/Work/svn/ruby/trunk/dmyversion.c
compiling /Users/drbrain/Work/svn/ruby/trunk/miniprelude.c
compiling /Users/drbrain/Work/svn/ruby/trunk/array.c
compiling /Users/drbrain/Work/svn/ruby/trunk/bignum.c
compiling /Users/drbrain/Work/svn/ruby/trunk/class.c
compiling /Users/drbrain/Work/svn/ruby/trunk/compar.c
compiling /Users/drbrain/Work/svn/ruby/trunk/complex.c
compiling /Users/drbrain/Work/svn/ruby/trunk/dir.c
compiling /Users/drbrain/Work/svn/ruby/trunk/dln
find.c
compiling /Users/drbrain/Work/svn/ruby/trunk/enum.c
compiling /Users/drbrain/Work/svn/ruby/trunk/enumerator.c
compiling /Users/drbrain/Work/svn/ruby/trunk/error.c
compiling /Users/drbrain/Work/svn/ruby/trunk/eval.c
compiling /Users/drbrain/Work/svn/ruby/trunk/load.c
compiling /Users/drbrain/Work/svn/ruby/trunk/proc.c
compiling /Users/drbrain/Work/svn/ruby/trunk/file.c
compiling /Users/drbrain/Work/svn/ruby/trunk/gc.c
compiling /Users/drbrain/Work/svn/ruby/trunk/hash.c
compiling /Users/drbrain/Work/svn/ruby/trunk/inits.c
compiling /Users/drbrain/Work/svn/ruby/trunk/io.c
compiling /Users/drbrain/Work/svn/ruby/trunk/marshal.c
compiling /Users/drbrain/Work/svn/ruby/trunk/math.c
compiling /Users/drbrain/Work/svn/ruby/trunk/node.c
compiling /Users/drbrain/Work/svn/ruby/trunk/numeric.c
compiling /Users/drbrain/Work/svn/ruby/trunk/object.c
compiling /Users/drbrain/Work/svn/ruby/trunk/pack.c
compiling /Users/drbrain/Work/svn/ruby/trunk/parse.c
compiling /Users/drbrain/Work/svn/ruby/trunk/process.c
compiling /Users/drbrain/Work/svn/ruby/trunk/random.c
compiling /Users/drbrain/Work/svn/ruby/trunk/range.c
compiling /Users/drbrain/Work/svn/ruby/trunk/rational.c
compiling /Users/drbrain/Work/svn/ruby/trunk/re.c
compiling /Users/drbrain/Work/svn/ruby/trunk/regcomp.c
compiling /Users/drbrain/Work/svn/ruby/trunk/regenc.c
compiling /Users/drbrain/Work/svn/ruby/trunk/regerror.c
compiling /Users/drbrain/Work/svn/ruby/trunk/regexec.c
compiling /Users/drbrain/Work/svn/ruby/trunk/regparse.c
compiling /Users/drbrain/Work/svn/ruby/trunk/regsyntax.c
compiling /Users/drbrain/Work/svn/ruby/trunk/ruby.c
compiling /Users/drbrain/Work/svn/ruby/trunk/safe.c
compiling /Users/drbrain/Work/svn/ruby/trunk/signal.c
compiling /Users/drbrain/Work/svn/ruby/trunk/sprintf.c
compiling /Users/drbrain/Work/svn/ruby/trunk/st.c
compiling /Users/drbrain/Work/svn/ruby/trunk/strftime.c
compiling /Users/drbrain/Work/svn/ruby/trunk/string.c
compiling /Users/drbrain/Work/svn/ruby/trunk/struct.c
compiling /Users/drbrain/Work/svn/ruby/trunk/time.c
compiling /Users/drbrain/Work/svn/ruby/trunk/transcode.c
compiling /Users/drbrain/Work/svn/ruby/trunk/util.c
compiling /Users/drbrain/Work/svn/ruby/trunk/variable.c
compiling /Users/drbrain/Work/svn/ruby/trunk/compile.c
compiling /Users/drbrain/Work/svn/ruby/trunk/debug.c
compiling /Users/drbrain/Work/svn/ruby/trunk/iseq.c
compiling /Users/drbrain/Work/svn/ruby/trunk/vm.c
compiling /Users/drbrain/Work/svn/ruby/trunk/vmdump.c
compiling /Users/drbrain/Work/svn/ruby/trunk/vm
backtrace.c
compiling /Users/drbrain/Work/svn/ruby/trunk/vmtrace.c
compiling /Users/drbrain/Work/svn/ruby/trunk/thread.c
compiling /Users/drbrain/Work/svn/ruby/trunk/cont.c
compiling /Users/drbrain/Work/svn/ruby/trunk/enc/ascii.c
compiling /Users/drbrain/Work/svn/ruby/trunk/enc/us
ascii.c
compiling /Users/drbrain/Work/svn/ruby/trunk/enc/unicode.c
compiling /Users/drbrain/Work/svn/ruby/trunk/enc/utf_8.c
compiling /Users/drbrain/Work/svn/ruby/trunk/newline.c
compiling /Users/drbrain/Work/svn/ruby/trunk/missing/setproctitle.c
linking miniruby
clang: error: no such file or directory: 'dmyext.o'
make: *** [miniruby] Error 1
$

Editing uncommon.mk to have (({V = 1})) shows a link command of:

clang -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses \
-Wno-long-long -Wno-missing-field-initializers -Wunused-variable \
-Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement \
-Werror=shorten-64-to-32 -Werror=implicit-function-declaration -pipe -L. \
-fstack-protector -L/usr/local/lib -fstack-protector -Wl,-u,objcmsgSend -Wl,-pie \
main.o dmydln.o dmyencoding.o dmyversion.o miniprelude.o array.o bignum.o class.o \
compar.o complex.o dir.o dlnfind.o enum.o enumerator.o error.o eval.o load.o proc.o \
file.o gc.o hash.o inits.o io.o marshal.o math.o node.o numeric.o object.o pack.o \
parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o \
regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o string.o \
struct.o time.o transcode.o util.o variable.o compile.o debug.o iseq.o vm.o vm
dump.o \
vmbacktrace.o vmtrace.o thread.o cont.o ascii.o usascii.o unicode.o utf8.o newline.o \
setproctitle.o dmyext.o -lpthread -ldl -lobjc -o miniruby

but dmyext.o was not built.

=end

#3 Updated by Yui NARUSE over 1 year ago

This is fixed on r37670 as a workaround.

Anyway your log looks strange because my OS X Mountain Lion environment works well.

#4 Updated by Eric Hodel over 1 year ago

  • Status changed from Assigned to Closed

Fixed now. Thank you naruse.

PS: I figured out my build problem. You cannot use the same checkout for building inside and outside $(srcdir)

Also available in: Atom PDF