Ruby Issue Tracking System: Issueshttps://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112010-07-23T23:01:39ZRuby Issue Tracking System
Redmine Ruby master - Bug #3607 (Rejected): [trunk/r28731] Gem.path has disappeared?https://bugs.ruby-lang.org/issues/36072010-07-23T23:01:39Zroberto (Ollivier Robert)roberto+ruby-lang@keltia.freenix.fr
<p>=begin<br>
Any attempt to use rubygems is failing there:</p>
<p>519 [15:51] roberto@roberto-al:yarv/build> /usr/local/bin/gem list<br>
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:68:in <code>installed_spec_directories': undefined method </code>path' for Gem:Module (NoMethodError)<br>
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:58:in <code>from_installed_gems' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:881:in </code>source_index'<br>
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/gem_path_searcher.rb:81:in <code>init_gemspecs' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/gem_path_searcher.rb:13:in </code>initialize'<br>
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:839:in <code>new' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:839:in </code>block in searcher'<br>
from <a href="internal:prelude" class="external">internal:prelude</a>:10:in <code>synchronize' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:838:in </code>searcher'<br>
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:478:in <code>find_files' from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:1103:in </code><top (required)>'<br>
from <a href="internal:lib/rubygems/custom_require" class="external">internal:lib/rubygems/custom_require</a>:29:in <code>require' from <internal:lib/rubygems/custom_require>:29:in </code>require'<br>
from /usr/local/bin/gem:8:in `'</p>
<p>I have tried rmoving my build directory and rebuild everything. I don't want to blow everythting away in /usr/local/lib/ruby because I have quite a few gems installed if possible.<br>
=end</p> Ruby master - Bug #2646 (Third Party's Issue): 1.9.2dev segv when compiling with clang 1.1/trunkhttps://bugs.ruby-lang.org/issues/26462010-01-25T20:01:52Zroberto (Ollivier Robert)roberto+ruby-lang@keltia.freenix.fr
<p>=begin<br>
As I've been doing for several months/years, I'm compiling regular snapshots of the clang compiler and use it to compile ruby/trunk.<br>
I have clang@94309 and ruby 1.9.2dev@26404 on OS X 10.6.2. For several revisions of ruby I get this when running miniruby during the build process:</p>
<p>clang -O -m64 -g -pipe -I. -I.ext/include/x86_64-darwin10.2.0 -I../include -I.. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o newline.o -c newline.c<br>
clang -O -m64 -g -pipe -L. -m64 -g -L/usr/local/lib -Wl,-u,_objc_msgSend main.o dmydln.o dmyencoding.o miniprelude.o array.o bignum.o class.o compar.o complex.o dir.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 version.o compile.o debug.o iseq.o vm.o vm_dump.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o dmyext.o -lpthread -ldl -lobjc -o miniruby<br>
<a href="internal:prelude" class="external">internal:prelude</a>:4: [BUG] Segmentation fault<br>
ruby 1.9.2dev (2010-01-25) [x86_64-darwin10.2.0]</p>
<h2>-- control frame ----------<br>
c:0003 p:0002 s:0006 b:0006 l:000005 d:000005 TOP <a href="internal:prelude" class="external">internal:prelude</a>:4<br>
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH<br>
c:0001 p:0000 s:0002 b:0002 l:000238 d:000238 TOP</h2>
<p><a href="internal:prelude" class="external">internal:prelude</a>:4:in `'</p>
<p>-- C level backtrace information -------------------------------------------</p>
<p>[NOTE]<br>
You may have encountered a bug in the Ruby interpreter or extension libraries.<br>
Bug reports are welcome.<br>
For details: <a href="http://www.ruby-lang.org/bugreport.html" class="external">http://www.ruby-lang.org/bugreport.html</a></p>
<p>make: *** [.rbconfig.time] Abort trap</p>
<p>Any idea/test I could ru to see whether it is a clang-related issue or a ruby one?<br>
=end</p> Ruby master - Bug #1382 (Closed): inline functions ought to be statichttps://bugs.ruby-lang.org/issues/13822009-04-15T18:12:57Zroberto (Ollivier Robert)roberto+ruby-lang@keltia.freenix.fr
<p>=begin<br>
While compiling Ruby with ongoing versions of clang/llvm, it appeared that rb_reserved_word, an inline function in lex.c.blt which is included in parse.y is not declared as static as it apparently should (C99). gcc supports it. Fix Ruby for clang.<br>
=end</p> Ruby master - Bug #1357 (Closed): Fixing variables into specific CPU registers deemed overrated &...https://bugs.ruby-lang.org/issues/13572009-04-06T17:43:58Zroberto (Ollivier Robert)roberto+ruby-lang@keltia.freenix.fr
<p>=begin<br>
I do not think that fixing specific variable into CPU registers is really reflected in performance gains (benchmarks welcome!). It will also generally disturb compilers' handling of optimization (especially on register-starved CPUs like IA-32/i386) and may generate less efficient code. Remove the i386/amd64-specific code.</p>
<p>As a side-effect, it enables successful compilation with recent versions of clang/llvm.<br>
=end</p> Ruby master - Bug #1356 (Third Party's Issue): Be consistent in function declarationshttps://bugs.ruby-lang.org/issues/13562009-04-06T17:36:32Zroberto (Ollivier Robert)roberto+ruby-lang@keltia.freenix.fr
<p>=begin<br>
When compiling with clang, prototypes for two OpenSSL functions are found to be mismatched with respect to "const". Fix that.<br>
=end</p> Ruby master - Bug #1355 (Closed): -O3 deemed uncessaryhttps://bugs.ruby-lang.org/issues/13552009-04-06T17:29:28Zroberto (Ollivier Robert)roberto+ruby-lang@keltia.freenix.fr
<p>=begin<br>
I do not see the real point in forcing all compilation with -O3 and it makes overriding the optimization level overly complicated. Let people choose the level they want.<br>
=end</p> Ruby master - Bug #1296 (Closed): [trunk/22981] 64-bit issues on trunk in ext/zlibhttps://bugs.ruby-lang.org/issues/12962009-03-17T00:01:11Zroberto (Ollivier Robert)roberto+ruby-lang@keltia.freenix.fr
<p>=begin<br>
I've configured Ruby to be compiled in 64-bit mode under OS X 10.5.6 with gcc 4.2. I get the following warnings in ext/zlib which are a bit worrying.</p>
<p>gcc-4.2 -I. -I../../.ext/include/i386-darwin9.6.0 -I../../../include -I../../../ext/zlib -DRUBY_EXTCONF_H="extconf.h" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O -pipe -m64 -D_FILE_OFFSET_BITS=64 -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wno-missing-field-initializers -Wshorten-64-to-32 -Wpointer-arith -Wwrite-strings -o zlib.o -c ../../../ext/zlib/zlib.c<br>
../../../ext/zlib/zlib.c: In function ‘do_checksum’:<br>
../../../ext/zlib/zlib.c:300: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘zstream_expand_buffer’:<br>
../../../ext/zlib/zlib.c:457: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘zstream_shift_buffer’:<br>
../../../ext/zlib/zlib.c:550: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘zstream_passthrough_input’:<br>
../../../ext/zlib/zlib.c:631: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘zstream_run’:<br>
../../../ext/zlib/zlib.c:707: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘zstream_sync’:<br>
../../../ext/zlib/zlib.c:766: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c:770: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘deflate_run’:<br>
../../../ext/zlib/zlib.c:1167: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘do_deflate’:<br>
../../../ext/zlib/zlib.c:1226: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘rb_deflate_set_dictionary’:<br>
../../../ext/zlib/zlib.c:1353: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘inflate_run’:<br>
../../../ext/zlib/zlib.c:1413: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘do_inflate’:<br>
../../../ext/zlib/zlib.c:1467: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘rb_inflate_inflate’:<br>
../../../ext/zlib/zlib.c:1499: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘rb_inflate_addstr’:<br>
../../../ext/zlib/zlib.c:1532: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘rb_inflate_sync’:<br>
../../../ext/zlib/zlib.c:1560: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘rb_inflate_set_dictionary’:<br>
../../../ext/zlib/zlib.c:1602: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘gzfile_read_raw_ensure’:<br>
../../../ext/zlib/zlib.c:1838: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c:1839: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c:1841: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘gzfile_read_raw_until_zero’:<br>
../../../ext/zlib/zlib.c:1859: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘gzfile_make_header’:<br>
../../../ext/zlib/zlib.c:1923: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c:1926: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c:1930: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘gzfile_make_footer’:<br>
../../../ext/zlib/zlib.c:1944: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘gzfile_read_header’:<br>
../../../ext/zlib/zlib.c:1998: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c:2001: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c:2008: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c:2015: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘gzfile_read_more’:<br>
../../../ext/zlib/zlib.c:2078: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘gzfile_calc_crc’:<br>
../../../ext/zlib/zlib.c:2089: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c:2093: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘gzfile_getc’:<br>
../../../ext/zlib/zlib.c:2235: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘rb_gzwriter_write’:<br>
../../../ext/zlib/zlib.c:2817: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘rb_gzreader_ungetc’:<br>
../../../ext/zlib/zlib.c:3147: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c: In function ‘gzreader_gets’:<br>
../../../ext/zlib/zlib.c:3246: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
../../../ext/zlib/zlib.c:3272: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
cc -dynamic -bundle -undefined suppress -flat_namespace -o ../../.ext/i386-darwin9.6.0/zlib.bundle zlib.o -L. -L../.. -L. -m64 -L/usr/local/lib -lz -lpthread -ldl -lobjc<br>
=end</p> Ruby master - Bug #340 (Third Party's Issue): 1.9/trunk does not work when compiled with llvm-gcc...https://bugs.ruby-lang.org/issues/3402008-07-21T16:47:52Zroberto (Ollivier Robert)roberto+ruby-lang@keltia.freenix.fr
<p>=begin<br>
Ive tried llvm-gcc4 (<a href="http://www.llvm.org/" class="external">http://www.llvm.org/</a>) on both FreeBSD 7.0 & MacOS X 10.4 and both shows the same behaviour. When configured with llvm-gcc as compiler, everything compiles fine but the first time miniruby is run (see below), it is spinning away, eating CPU circles and had to be killed with -9.</p>
<p>./miniruby -I../lib -I.ext/common -I./- -r../ext/purelib.rb ../enc/make_encdb.rb ../enc encdb.h.new</p>
<p>Using built-in specs.<br>
Target: x86_64-portbld-freebsd7.0<br>
Configured with: ./../configure --enable-llvm=/usr/local --enable-languages=c,c++ --disable-nls --with-system-zlib --with-libiconv-prefix=/usr/local --program-prefix=llvm- --libdir=/usr/local/lib/llvm-gcc-2.3 --with-gxx-include-dir=/usr/local/lib/llvm-gcc-2.3/include/c++ --libexecdir=/usr/local/lib/llvm-gcc-2.3 --infodir=/usr/local/llvm-gcc --disable-shared --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/llvm-gcc x86_64-portbld-freebsd7.0<br>
Thread model: posix<br>
gcc version 4.2.1 (Based on Apple Inc. build 5555) (LLVM build)</p>
<p>BTW the configure script has a problem (I can open another ticket if you want) in that even if I specify CFLAGS="-O -pipe", the generated Makefile ends up with CFLAGS set to "-O -pipe -O2 -g"...<br>
=end</p> Ruby master - Bug #277 (Rejected): 1.9/trunk: build broken in ruby/ruby.hhttps://bugs.ruby-lang.org/issues/2772008-07-15T21:44:08Zroberto (Ollivier Robert)roberto+ruby-lang@keltia.freenix.fr
<p>=begin<br>
MacOS X 10.4.11 / Ruby 1.9 from trunk/#18072 / gcc 4.2 from macports</p>
<p>Since the latest commits to ruby/ruby.h, build is broken in transcode.c:</p>
<p>checking whether ELF binaries are produced... no<br>
checking whether OS depend dynamic link works... yes<br>
checking for nroff... /usr/bin/nroff<br>
config.h unchanged<br>
configure: creating ./config.status<br>
MAKE=make /bin/sh ./config.status<br>
config.status: creating Makefile<br>
gcc-mp-4.2 -O -pipe -I/opt/local/include -pipe -fno-common -I. -I.ext/include/i686-darwin8.11.1 -I../include -I.. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o transcode.o -c ../transcode.c<br>
../transcode.c: In function 'str_transcode':<br>
../transcode.c:405: error: expected ')' before 'PRI_PTRDIFF_PREFIX'<br>
../transcode.c:420: error: expected ')' before 'PRI_PTRDIFF_PREFIX'<br>
../transcode.c:435: error: expected ')' before 'PRI_PTRDIFF_PREFIX'<br>
make: *** [transcode.o] Error 1</p>
<p>I include my Makefile below.<br>
=end</p>