# Can't build with GCC's -ansi option

**URL:** <https://www.ruby-forum.com/t/cant-build-with-gccs-ansi-option/156317>\
**Category:** Development\
**Created:** [December 24, 2008, 12:19pm UTC](https://www.ruby-forum.com/t/cant-build-with-gccs-ansi-option/156317 "2008-12-24T12:19:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kouhei\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f4b2a3/32.png) [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Post date:** [December 24, 2008, 12:19pm UTC](https://www.ruby-forum.com/t/cant-build-with-gccs-ansi-option/156317/1 "2008-12-24T12:19:06Z")

</div>

e$B?\F#$G$9!#e(B

e$B:#F|!"e(BSubversione$B$N?M$?$A$Ke(BRubye$B%P%$%s%G%#%s%0$,%S%k%I$G$-$J$$e(B  
e$B$H8@$o$l$F5$IU$$$?$N$G$9$,!"e(BGCCe$B$Ne(B-ansie$B%\*%W%7%g%s$r$D$1$k$H3He(B  
e$BD%%i%$%V%i%j$,%S%k%I$G$-$^$;$s!#e(B

e$BFC$K!Ve(B-ansie$B%_%W%7%g%s$r$D$1$F$b%S%k%I$G$-$k$Y$-!W$H$+$$$&$N$Ge(B  
e$B$O$J$/!"e(B-ansie$B%_%W%7%g%s$r$D$1$F$b%S%k%I$G$-$k$h$&$K$7$?$$$Ne(B  
e$B$+$I$&$+$,5$$K$J$C$?$N$G$3$l$r=q$$$F$$$^$9!#e(B  
e$B!Je(B1.8.xe$B$O$^$@0z?t@k8@$Ke(BK&Re$B$b;H$C$F$$$?$j$7$F!"%]!\<%?%V%k$J=qe(B  
e$B$-J}$r0U\<1$7$F$$$k$h$&$K$b8+$($k$N$G!Ke(B

e$B\<j85$NF|K\8l$Ne(BGCCe$B$Ne(Bmane$B$K$O0J2\<$N$h$&$K=q$$$F$$$F!“e(Bruby.he$B$Ne(B  
e$B!Ve(Binlinee$B!W$,$R$C$+$+$C$F$$$^$7$?!#e(B  
e$B!Je(Binlinee$B$Oe(B1.8.xe$B$K$be(B1.9.xe$B$K$b$”$j$^$9!Ke(B

---

<div class="post-metadata">

**Author:** ![Kouhei\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f4b2a3/32.png) [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Post date:** [December 24, 2008, 12:36pm UTC](https://www.ruby-forum.com/t/cant-build-with-gccs-ansi-option/156317/2 "2008-12-24T12:36:06Z")

</div>

e$BKNIt$G$9!#e(B

Kouhei S. e$B$5$s$O=q$-$^$7$?e(B:

> e$B:#F|!"e(BSubversione$B$N?M$?$A$Ke(BRubye$B%P%$%s%G%#%s%0$,%S%k%I$G$-$J$$e(B  
> e$B$H8@$o$l$F5$IU$$$?$N$G$9$,!"e(BGCCe$B$Ne(B-ansie$B%\*%W%7%g%s$r$D$1$k$H3He(B  
> e$BD%%i%$%V%i%j$,%S%k%I$G$-$^$;$s!#e(B

e$B\<+J,$N\<j85$G$Oe(B  
configure CFLAGS="-pipe -ansi -std=iso9899:199409"  
e$B$G$-$A$s$H3HD%%i%$%V%i%j$,%3%s%Q%$%k$G$-$F$$$^$9!#e(B  
configuree$B;~$K;XDj$7$F$\*$/$N$,%]%$%s%H$+$H;W$$$^$9!#e(B

zsh % ./config.status --recheck  
running CONFIG\_SHELL=/bin/sh /bin/sh /home/shyouhei/ruby/trunk/configure  
–cache-file=…/config.cache --prefix=/home/shyouhei/target/trunk  
–with-baseruby=/home/shyouhei/target/trunk/bin/ruby --with-valgrind  
–disable-install-doc debugflags=-g3 optflags=-O0 -march=athlon64  
-mcmodel=medium warnflags=-pedantic -Wall -Wextra -Wundef -Wno-format  
-Wno-long-long -Wno-parentheses -Wno-unused -Wno-sign-compare  
-Wno-missing-field-initializers CPPFLAGS=-DRUBY\_DEBUG\_ENV  
-D\_FORTIFY\_SOURCE=2 CFLAGS=-pipe -ansi -std=iso9899:199409 --no-create  
–no-recursion  
(e$B0J2\<N,e(B)

---

<div class="post-metadata">

**Author:** ![Kouhei\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f4b2a3/32.png) [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Post date:** [December 24, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/cant-build-with-gccs-ansi-option/156317/3 "2008-12-24T13:05:59Z")

</div>

e$B?\F#$G$9!#e(B

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“[ruby-dev:37580] Re: can’t build with GCC’s -ansi option” on Wed, 24  
Dec 2008 20:26:57 +0900,  
Urabe S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Kouhei S. e$B$5$s$O=q$-$^$7$?e(B:
> 
> > e$B:#F|!"e(BSubversione$B$N?M$?$A$Ke(BRubye$B%P%$%s%G%#%s%0$,%S%k%I$G$-$J$$e(B  
> > e$B$H8@$o$l$F5$IU$$$?$N$G$9$,!"e(BGCCe$B$Ne(B-ansie$B%\*%W%7%g%s$r$D$1$k$H3He(B  
> > e$BD%%i%$%V%i%j$,%S%k%I$G$-$^$;$s!#e(B
> 
> e$B\<+J,$N\<j85$G$Oe(B  
> configure CFLAGS=“-pipe -ansi -std=iso9899:199409”  
> e$B$G$-$A$s$H3HD%%i%$%V%i%j$,%3%s%Q%$%k$G$-$F$$$^$9!#e(B  
> configuree$B;~$K;XDj$7$F$\*$/$N$,%]%$%s%H$+$H;W$$$^$9!#e(B

e$B$"!“K\Ev$G$9$M!#e(B  
configure.ine$B$Ne(BAC\_C\_INLINEe$B$,8z$$$F$/$k$s$G$9$M!#e(B  
e$B$”$j$,$H$&$4$6$$$^$9!#e(B

Subversione$B$N?M$?$A$K$b!"e(B-ansie$B%_%W%7%g%s$r$D$1$k$H$-$Oe(BRubye$BK\BNe(B  
e$B$be(B-ansie$B%_%W%7%g%sIU$-$G%S%k%I$7$F$_$+$J$$$H$$$1$J$$!"$H$$$&$3e(B  
e$B$H$r65$($F$_$-$^$7$?!#e(B
