[cfe-dev] MacRuby issues

Chris Lattner clattner at apple.com
Thu Mar 26 21:52:14 PDT 2009


On Mar 26, 2009, at 9:32 PM, रजनीश wrote:

> MacRuby Rakefile passes -fno-common twice when compiling ext  
> directory.
> May be clang can strip out duplicate entries before passing it to
> clang-cc.

Yes, that sounds like a bug.  Please file a bugzilla:

> ~/Developer/MacRuby/ext/bigdecimal-> clang -I. -I../../.ext/include/
> universal-darwin9.0 -I..//.././include -I..//.././ext/bigdecimal -
> DRUBY_EXTCONF_H=\"extconf.h\"  -fno-common -fno-common -pipe -O2 -g -
> Wall -Wno-parentheses -arch i386 -o bigdecimal.o -c bigdecimal.c
> clang: warning: argument unused during compilation: '-Wno-parentheses'
> clang-cc: for the -fno-common option: : may only occur zero or one
> times!

This should be enough description for the bugzilla, thanks!

> Also MacRuby currently doesn't compile in x86_64 arch when it uses
> miniruby to run
> /usr/bin/make on the ext directory.  It basically segments faults  
> while
> running this command.  i386 runs this just fine so does gcc.  may be
> it is bad code generation.
>
> GC_DISABLE=1 ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb
> ext/extmk.rb --make="/usr/bin/make" --dest-dir="" --extout=".ext" --
> mflags="" --make-flags="" --extension --extstatic

Have you tried with mainline?  There was a recent bug fix in the  
optimizer that only manifested sometimes.

-Chris



More information about the cfe-dev mailing list