# Make error during svn build (192)

**URL:** <https://www.ruby-forum.com/t/make-error-during-svn-build-192/164836>\
**Category:** Ruby\
**Created:** [April 6, 2009, 2:20pm UTC](https://www.ruby-forum.com/t/make-error-during-svn-build-192/164836 "2009-04-06T14:20:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_maclean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e8c25b/32.png) [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Post date:** [April 6, 2009, 2:20pm UTC](https://www.ruby-forum.com/t/make-error-during-svn-build-192/164836/1 "2009-04-06T14:20:48Z")

</div>

any pointers on this build error?

git svn clone [http://svn.ruby-lang.org/repos/ruby/trunk](http://svn.ruby-lang.org/repos/ruby/trunk) ruby  
–revision 22000:23142  
cd ruby  
gc clean

autoconf --verbose

./configure --prefix=/home/jayeola/ix -program-suffix=192

# snip

checking limits.h presence… yes  
configure: WARNING: limits.h: present but cannot be compiled  
configure: WARNING: limits.h: check for missing prerequisite  
headers?  
configure: WARNING: limits.h: see the Autoconf documentation  
configure: WARNING: limits.h: section “Present But Cannot Be  
Compiled”  
configure: WARNING: limits.h: proceeding with the preprocessor’s result  
configure: WARNING: limits.h: in the future, the compiler will take  
precedence

# snip

version.h:42:23: error: revision.h: No such file or directory  
checking for nroff… /usr/bin/nroff  
config.h unchanged  
ruby192 library version = 1.9.1  
configure: creating ./config.status  
config.status: creating Makefile

make  
gcc -g -O2-O3 -g -Wall -Wno-unused-parameter -Wno-parentheses  
-Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -I.  
-I.ext/include/i686-linux -I./include -I. -DRUBY\_EXPORT -o main.o -c  
main.c  
cc1: error: invalid option argument ‘-O2-O3’  
make: \*\*\* [main.o] Error 1

–  
John M.  
07739 171 531  
MSc (DIC)

Timezone: GMT

---

<div class="post-metadata">

**Author:** ![john\_maclean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e8c25b/32.png) [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Post date:** [April 6, 2009, 4:33pm UTC](https://www.ruby-forum.com/t/make-error-during-svn-build-192/164836/2 "2009-04-06T16:33:39Z")

</div>

john maclean wrote:

> any pointers on this build error?

You could start by describing your build environment (at minimum OS name  
and version)

> gcc -g -O2-O3 -g …  
> cc1: error: invalid option argument ï¿½-O2-O3ï¿½

Looks like you have something in your environment which is adding  
unwanted extra flags to the gcc command line. Try ‘printenv’ and look  
for something which might be doing that.

---

<div class="post-metadata">

**Author:** ![john\_maclean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e8c25b/32.png) [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Post date:** [April 6, 2009, 4:53pm UTC](https://www.ruby-forum.com/t/make-error-during-svn-build-192/164836/3 "2009-04-06T16:53:28Z")

</div>

Hi,

At Mon, 6 Apr 2009 21:19:33 +0900,  
john maclean wrote in [ruby-talk:333115]:

> any pointers on this build error?

Sorry, fixed now.
