Project

General

Profile

Bug #4092

r29946 でビルドが通らない

Added by sorah (Sorah Fukumori) over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-11-27 trunk 29946) [x86_64-darwin10.5.0]
Backport:
[ruby-dev:42634]

Description

=begin
sora_hです。
r29946でビルドが通りません。

diff --git lib/optparse.rb lib/optparse.rb
index 91308a9..6d9c46f 100644
--- lib/optparse.rb
+++ lib/optparse.rb
@@ -1549,7 +1549,7 @@ XXX
end
pat = Completion.regexp(word, true)
visit(:each_option) do |opt|

  • opts = (long ? opt.long : []) + (short ? opt.short [])
  • opts = (long ? opt.long : []) + (short ? opt.short : []) opts = Completion.candidate(word, true, pat, &opts.method(:each)).map(&:first) if pat if /\A=/ =~ opt.arg opts.map! {|sw| sw + "="} =end
#1

Updated by sorah (Sorah Fukumori) over 9 years ago

=begin
ビルド時エラーをpasteし忘れました。

     CFLAGS = -O0 -gdwarf-2 -g3 -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -arch x86_64 -fno-common -pipe
     XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
     CPPFLAGS = -isystem /Users/sorah/brew/include -isystem /Users/sorah/brew/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -I. -I.ext/include/x86_64-darwin10.5.0 -I../../include -I../..
     DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -install_name /Users/sorah/git/ruby/ruby/builds/master/local/lib/libruby.1.9.1.dylib -current_version 1.9.1 -compatibility_version 1.9.1 -Wl,-unexported_symbol,_Init_* -Wl,-unexported_symbol,*_threadptr_*  -Wl,-u,_objc_msgSend   -arch x86_64
     SOLIBS = 

generating known_errors.inc
known_errors.inc unchanged
generating enc.mk
generating encdb.h
../../tool/generic_erb.rb:2:in require': /Users/sorah/git/ruby/ruby/lib/optparse.rb:1552: syntax error, unexpected tLBRACK, expecting ':' (SyntaxError)
opts = (long ? opt.long : []) + (short ? opt.short [])
^
from ../../tool/generic_erb.rb:2:in
'
make: *** [encdb.h] Error 1
=end

#2

Updated by shugo (Shugo Maeda) over 9 years ago

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

=begin
This issue was solved with changeset r29947.
Shota, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF