# Building 1.9.1 on Debian Lenny - gcc issue

**URL:** <https://www.ruby-forum.com/t/building-1-9-1-on-debian-lenny-gcc-issue/159498>\
**Category:** Ruby\
**Created:** [February 5, 2009, 4:02am UTC](https://www.ruby-forum.com/t/building-1-9-1-on-debian-lenny-gcc-issue/159498 "2009-02-05T04:02:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/779978/32.png) [@Michal\_S](https://www.ruby-forum.com/u/Michal_S)\
**Post date:** [February 5, 2009, 4:02am UTC](https://www.ruby-forum.com/t/building-1-9-1-on-debian-lenny-gcc-issue/159498/1 "2009-02-05T04:02:00Z")

</div>

Hello

While building ruby 1.9.1 on a Debian Lenny box with gcc4.3 (the  
default) compiling parse.c might take several minutes on decent  
hardware.

This problem happens on multiple x86 and x86\_64 boxes for me but does  
not happen on Debian gcc maintainer’s boxes.

gcc 4.2 works fine for me.

Anybody else sees this problem?

Thanks

Michal

---

<div class="post-metadata">

**Author:** ![Michal\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/779978/32.png) [@Michal\_S](https://www.ruby-forum.com/u/Michal_S)\
**Post date:** [February 5, 2009, 4:17am UTC](https://www.ruby-forum.com/t/building-1-9-1-on-debian-lenny-gcc-issue/159498/2 "2009-02-05T04:17:14Z")

</div>

On Wed, Feb 4, 2009 at 7:01 PM, Michal S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Anybody else sees this problem?
> 
> Thanks
> 
> Michal

I just built 1.9.1 successfully with gcc 4.3 on openSUSE 11.1 (64-bit  
machine). I haven’t done much with Lenny recently, although I will  
probably download it when it’s release and build a virtual machine  
with it.

–  
M. Edward (Ed) Borasky

I’ve never met a happy clam. In fact, most of them were pretty steamed.

---

<div class="post-metadata">

**Author:** ![Michal\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/779978/32.png) [@Michal\_S](https://www.ruby-forum.com/u/Michal_S)\
**Post date:** [February 5, 2009, 4:37am UTC](https://www.ruby-forum.com/t/building-1-9-1-on-debian-lenny-gcc-issue/159498/3 "2009-02-05T04:37:42Z")

</div>

2009/2/5 M. Edward (Ed) Borasky [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > gcc 4.2 works fine for me.  
> > machine). I haven’t done much with Lenny recently, although I will  
> > probably download it when it’s release and build a virtual machine  
> > with it.

It’s not that it does not build, it’s just that it compiles that  
particular file for very long and causes a particular pattern appear  
on graphical system monitors that normally appears when something  
locks up in a tight loop.

Thanks

Michal

---

<div class="post-metadata">

**Author:** ![Michal\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/779978/32.png) [@Michal\_S](https://www.ruby-forum.com/u/Michal_S)\
**Post date:** [February 5, 2009, 4:42am UTC](https://www.ruby-forum.com/t/building-1-9-1-on-debian-lenny-gcc-issue/159498/4 "2009-02-05T04:42:58Z")

</div>

Hi,

At Thu, 5 Feb 2009 12:01:00 +0900,  
Michal S. wrote in [ruby-talk:326944]:

> While building ruby 1.9.1 on a Debian Lenny box with gcc4.3 (the  
> default) compiling parse.c might take several minutes on decent  
> hardware.

Use optflags=-O3 instead of default -O2.
