# Trunk & llvm-gcc 4.2

**URL:** <https://www.ruby-forum.com/t/trunk-llvm-gcc-4-2/149834>\
**Category:** Ruby\
**Created:** [September 30, 2008, 12:27pm UTC](https://www.ruby-forum.com/t/trunk-llvm-gcc-4-2/149834 "2008-09-30T12:27:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keltia](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/da6949/32.png) [@keltia](https://www.ruby-forum.com/u/keltia)\
**Post date:** [September 30, 2008, 12:27pm UTC](https://www.ruby-forum.com/t/trunk-llvm-gcc-4-2/149834/1 "2008-09-30T12:27:08Z")

</div>

Hello,

I’ve been trying to compile ruby 1.9/trunk with llvm for some time  
(llvm-gcc 4.2 as shipped by Apple in XCode 3.1.1) and always hit the  
same problem. During the compilation, first time miniruby tries to run,  
it goes into a never-ending loop.

Running Shark on the process give the following call stack (see the  
linked image). -O or -O2 does not make any difference.

…  
./miniruby -I…/lib -I.ext/common -I./- -r…/ext/purelib.rb  
…/enc/make\_encdb.rb encdb.h.new …/enc enc  
load: 1.23 cmd: miniruby 3505 running 3.64u 0.03s (after pressing ^T)  
load: 1.11 cmd: miniruby 3505 running 62.80u 0.53s (^T again)

[http://www.keltia.net/download/miniruby-call.png](http://www.keltia.net/download/miniruby-call.png)

Thanks for your attention.

MacOS 10.5.5, Xcode 3.1.1, Ruby trunk at #19642.
