[Rubygems-developers] [rubygems] Build still broken (#1147)

Cerberus anatol.pomozov at gmail.com
Wed Dec 20 04:21:37 EST 2006


------------------------------------------------------------------------
r1147 | drbrain | 2006-12-20 12:18:22 +0300 | 3 lines
Changed paths:
   M /trunk
   M /trunk/ChangeLog
   M /trunk/lib/rubygems/cmd_manager.rb
   M /trunk/lib/rubygems/gem_commands.rb
   M /trunk/lib/rubygems/remote_fetcher.rb
   M /trunk/test/test_gem_source_info_cache_entry.rb
   A /trunk/test/test_gem_sources_command.rb
   M /trunk/test/test_remote_fetcher.rb

RemoteFetcher#fetch_size gives a sensible error on bad URIs.
Add command to manage sources listed in the source_cache.  Fixes bug #1128.

------------------------------------------------------------------------

(in C:/Documents and Settings/anatol/.cerberus/work/rubygems/sources)
Loaded suite c:/PROGRA~1/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader
Started
......................................................................................EFFFEFF..F.......................................................................................F..............................................................................................
Finished in 65.219 seconds.

  1) Error:
test_self_build(TestGemExtConfigureBuilder):
Gem::InstallError: configure failed:

sh ./configure --prefix=C:/DOCUME~1/anatol/LOCALS~1/Temp/test_rubygems_3784/prefix
'sh' is not recognized as an internal or external command,
operable program or batch file.

    ./lib/rubygems/installer.rb:600:in `run'
    ./lib/rubygems/installer.rb:611:in `build'
    ./test/test_gem_ext_configure_builder.rb:28:in `test_self_build'
    ./test/test_gem_ext_configure_builder.rb:27:in `test_self_build'

  2) Failure:
test_self_build_fail(TestGemExtConfigureBuilder) [./test/test_gem_ext_configure_builder.rb:54]:
<"configure failed:\n\nsh ./configure --prefix=C:/DOCUME~1/anatol/LOCALS~1/Temp/test_rubygems_3784/prefix\n./configure: ./configure: No such file or directory\n"> expected but was
<"configure failed:\n\nsh ./configure --prefix=C:/DOCUME~1/anatol/LOCALS~1/Temp/test_rubygems_3784/prefix\n'sh' is not recognized as an internal or external command,\noperable program or batch file.\n">.

  3) Failure:
test_self_build_has_makefile(TestGemExtConfigureBuilder) [./test/test_gem_ext_configure_builder.rb:76]:
<["make", "ok\n", "make install", "ok\n"]> expected but was
<["nmake",
 "\nMicrosoft (R) Program Maintenance Utility Version 7.10.3077\nCopyright (C) Microsoft Corporation.  All rights reserved.\n\nok\n",
 "nmake install",
 "\nMicrosoft (R) Program Maintenance Utility Version 7.10.3077\nCopyright (C) Microsoft Corporation.  All rights reserved.\n\nok\n"]>.

  4) Failure:
test_class_build(TestGemExtExtConfBuilder) [./test/test_gem_ext_ext_conf_builder.rb:37]:
<["ruby extconf.rb",
 "creating Makefile\n",
 "make",
 "make: Nothing to be done for `all'.\n",
 "make install",
 "make: Nothing to be done for `install'.\n"]> expected but was
<["ruby extconf.rb",
 "creating Makefile\n",
 "nmake",
 "\nMicrosoft (R) Program Maintenance Utility Version 7.10.3077\nCopyright (C) Microsoft Corporation.  All rights reserved.\n\n",
 "nmake install",
 "\nMicrosoft (R) Program Maintenance Utility Version 7.10.3077\nCopyright (C) Microsoft Corporation.  All rights reserved.\n\n"]>.

  5) Error:
test_class_build_extconf_bad(TestGemExtExtConfBuilder):
Gem::InstallError: make failed:

ruby extconf.rbchecking for main() in nonexistent.lib... no
creating Makefile
nmake
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

	c:\progra~1\ruby\bin\ruby -e "puts 'EXPORTS', 'Init_foo'"  > foo-i386-mswin32.def
	cl -nologo -MD -Zi -O2b2xg- -G6 -I. -Ic:/progra~1/ruby/lib/ruby/1.8/i386-mswin32 -Ic:/progra~1/ruby/lib/ruby/1.8/i386-mswin32 -I. -c -Tcfoo.c
foo.c
	cl -nologo -LD -Fefoo.so foo.obj msvcrt-ruby18.lib  oldnames.lib user32.lib advapi32.lib wsock32.lib  -link -incremental:no -debug -opt:ref -opt:icf -dll -libpath:"c:/progra~1/ruby/lib" -def:foo-i386-mswin32.def -implib:foo-i386-mswin32.lib -pdb:foo-i386-mswin32.pdb
   Creating library foo-i386-mswin32.lib and object foo-i386-mswin32.exp
foo.obj : error LNK2019: unresolved external symbol _nonexistent referenced in function _Init_foo
foo.so : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

    ./lib/rubygems/installer.rb:586:in `make'
    ./lib/rubygems/installer.rb:581:in `make'
    ./lib/rubygems/installer.rb:627:in `build'
    ./test/test_gem_ext_ext_conf_builder.rb:54:in `test_class_build_extconf_bad'
    ./test/test_gem_ext_ext_conf_builder.rb:53:in `test_class_build_extconf_bad'

  6) Failure:
test_class_build_extconf_fail(TestGemExtExtConfBuilder) [./test/test_gem_ext_ext_conf_builder.rb:113]:
<"extconf failed:\n\nruby extconf.rb\nchecking for main() in -lnonexistent... no\nneed libnonexistent\n*** extconf.rb failed ***\nCould not create Makefile due to some reason, probably lack of\nnecessary libraries and/or headers.  Check the mkmf.log file for more\ndetails.  You may need configuration options.\n\nProvided configuration options:\n\t--with-opt-dir\n\t--without-opt-dir\n\t--with-opt-include\n\t--without-opt-include=${opt-dir}/include\n\t--with-opt-lib\n\t--without-opt-lib=${opt-dir}/lib\n\t--with-make-prog\n\t--without-make-prog\n\t--srcdir=.\n\t--curdir\n\t--ruby=/usr/local/bin/ruby\n\t--with-nonexistentlib\n\t--without-nonexistentlib\n"> expected but was
<"extconf failed:\n\nruby extconf.rb\nchecking for main() in nonexistent.lib... no\nneed libnonexistent\n*** extconf.rb failed ***\nCould not create Makefile due to some reason, probably lack of\nnecessary libraries and/or headers.  Check the mkmf.log file for more\ndetails.  You may need configuration options.\n\nProvided configuration options:\n\t--with-opt-dir\n\t--without-opt-dir\n\t--with-opt-include\n\t--without-opt-include=${opt-dir}/include\n\t--with-opt-lib\n\t--without-opt-lib=${opt-dir}/lib\n\t--with-make-prog\n\t--srcdir=.\n\t--curdir\n\t--ruby=c:/progra~1/ruby/bin/ruby\n\t--with-nonexistentlib\n\t--without-nonexistentlib\n">.

  7) Failure:
test_class_make(TestGemExtExtConfBuilder) [./test/test_gem_ext_ext_conf_builder.rb:141]:
<["make",
 "make: Nothing to be done for `all'.\n",
 "make install",
 "make: Nothing to be done for `install'.\n"]> expected but was
<["nmake",
 "\nMicrosoft (R) Program Maintenance Utility Version 7.10.3077\nCopyright (C) Microsoft Corporation.  All rights reserved.\n\n",
 "nmake install",
 "\nMicrosoft (R) Program Maintenance Utility Version 7.10.3077\nCopyright (C) Microsoft Corporation.  All rights reserved.\n\n"]>.

  8) Failure:
test_class_build_fail(TestGemExtRakeBuilder) [./test/test_gem_ext_rake_builder.rb:46]:
<Gem::InstallError> exception expected but none was thrown.

  9) Failure:
test_source_index_hash(TestRemoteInstaller) [./test/test_remote_installer.rb:87]:
<1> expected but was
<6>.

278 tests, 977 assertions, 7 failures, 2 errors
rake aborted!
Command failed with status (1): [c:/PROGRA~1/ruby/bin/ruby -w -Ilib "c:/PRO...]

(See full trace by running task with --trace)

--
Cerberus 0.3.2, http://cerberus.rubyforge.org/


More information about the Rubygems-developers mailing list