# 1.9.2dev compilation with clang 1.1

**URL:** <https://rubytalk.org/t/1-9-2dev-compilation-with-clang-1-1/57559>\
**Category:** ruby-talk\
**Created:** [26 February 2010 11:12 UTC](https://rubytalk.org/t/1-9-2dev-compilation-with-clang-1-1/57559 "2010-02-26T11:12:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ollivier\_Robert](https://avatars.discourse-cdn.com/v4/letter/o/ce7236/32.png) [@Ollivier\_Robert](https://rubytalk.org/u/Ollivier_Robert)\
**Post date:** [26 February 2010 11:12 UTC](https://rubytalk.org/t/1-9-2dev-compilation-with-clang-1-1/57559/1 "2010-02-26T11:12:21Z")

</div>

Any on how to find out where it is broken and maybe even why? (bug in  
ruby? bug in clang?)

clang/llvm 1.1@97037, ruby@26766, OS X 10.6.2.

clang -O -m64 -g -pipe -L. -m64 -g -L/usr/local/lib -Wl,-u,\_objc\_msgSend  
main.o dmydln.o dmyencoding.o dmyversion.o miniprelude.o array.o  
bignum.o class.o compar.o complex.o dir.o dln\_find.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 thread.o cont.o ascii.o us\_ascii.o unicode.o  
utf\_8.o newline.o dmyext.o -lpthread -ldl -lobjc -o miniruby  
\<internal:prelude\>:4: [BUG] Segmentation fault  
ruby 1.9.2dev (2010-02-26) [x86\_64-darwin10.2.0]

-- control frame ----------  
c:0003 p:0002 s:0006 b:0006 l:000005 d:000005 TOP  
\<internal:prelude\>:4  
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH  
c:0001 p:0000 s:0002 b:0002 l:0006d8 d:0006d8 TOP

> **···**
>
> ---------------------------  
> -- Ruby level backtrace information  
> ----------------------------------------  
> \<internal:prelude\>:4:in `\<compiled\>'
> 
> -- C level backtrace information  
> -------------------------------------------
> 
> [NOTE]  
> You may have encountered a bug in the Ruby interpreter or extension  
> libraries.  
> Bug reports are welcome.  
> For details: [http://www.ruby-lang.org/bugreport.html](http://www.ruby-lang.org/bugreport.html)  
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
