Bug #1113
closedCompilation fails on Ubuntu 8.10, 64 bit
Description
=begin
During the make process, the make is stuck on this line; it runs forever:
gcc -O2 -g -Wall -Wno-parentheses -I. -I.ext/include/x86_64-linux -I./include -I. -DRUBY_EXPORT -o parse.o -c parse.c
this is my gcc config:
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)
For Ruby, the version is actually: ruby-1.9.1-p0
=end
Updated by nobu (Nobuyoshi Nakada) almost 16 years ago
=begin
Hi,
At Fri, 6 Feb 2009 01:14:56 +0900,
Tadashi Saito wrote in [ruby-core:21857]:
During the make process, the make is stuck on this line; it runs forever:
gcc -O2 -g -Wall -Wno-parentheses -I. -I.ext/include/x86_64-linux -I./include -I. -DRUBY_EXPORT -o parse.o -c parse.cI got the same situation with GCC 4.3.2. (on Debian lenny)
My solution was to add "-fno-tree-pre" to cflags. Compilation was smooth
with it.
Or optflags=-O3 prevents it, and defaulted in trunk.
--
Nobu Nakada
=end
Updated by shyouhei (Shyouhei Urabe) almost 16 years ago
- Status changed from Open to Third Party's Issue
=begin
We cannot fix a bug of GCC.
To be fair, it just runs very long, not forever.
=end
Updated by radarek (Radosław Bułat) almost 16 years ago
=begin
I can confirm what Shyouhei Urabe says. It runs very long and can eat big amount of memory but it shouldn't hung forever. I use ubuntu 8.10 64bit and has that behavior.
=end