Forum: Ruby make error during svn build (192)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Acd90f2627e42cf3727fed4dfb347c1e?d=identicon&s=25 john maclean (Guest)
on 2009-04-06 14:20
(Received via mailing list)
any pointers on this build error?

git svn clone  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 Maclean
07739 171 531
MSc (DIC)

Timezone: GMT
753dcb78b3a3651127665da4bed3c782?d=identicon&s=25 Brian Candler (candlerb)
on 2009-04-06 16:33
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.
F1d6cc2b735bfd82c8773172da2aeab9?d=identicon&s=25 Nobuyoshi Nakada (nobu)
on 2009-04-06 16:53
(Received via mailing list)
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.
This topic is locked and can not be replied to.