Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > gcc: Internal error when gem is building native extensions

Reply
Thread Tools

gcc: Internal error when gem is building native extensions

 
 
Jonathan Métillon
Guest
Posts: n/a
 
      11-11-2006
I'm trying to update my installed gems. Here's what happens:

-----sof-----
$ sudo gem update -y
Updating installed gems...
Bulk updating Gem source index for: http://gems.rubyforge.org
Attempting remote update of htmltools
Successfully installed htmltools-1.10
Attempting remote update of mysql
Select which gem to install for your platform (i686-linux)
1. mysql 2.7.1 (mswin32)
2. mysql 2.7 (ruby)
3. mysql 2.6 (ruby)
4. mysql 2.5.1 (ruby)
5. Cancel installation
> 2

Building native extensions. This could take a while...
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.

make: *** [mysql.o] Error 1
-----eof-----

What's happening? How can I fix this?

I just did the same process on another Debian Sarge box and all went fine.

Jonathan

 
Reply With Quote
 
 
 
 
Jonathan Métillon
Guest
Posts: n/a
 
      11-11-2006
I did not see that gem was still processing. This appeared after the make e=
rror:

-----sof-----
ruby extconf.rb update -y
checking for mysql_query() in -lmysqlclient... yes
checking for mysql_ssl_set()... yes
checking for mysql.h... no
checking for mysql/mysql.h... yes
creating Makefile

make
gcc -I. -I. -I/usr/local/lib/ruby/1.8/i686-linux -I.
-DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_MYSQL_H -I/usr/local/include -fPIC
-g -O2 -c mysql.c

make install
gcc -I. -I. -I/usr/local/lib/ruby/1.8/i686-linux -I.
-DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_MYSQL_H -I/usr/local/include -fPIC
-g -O2 -c mysql.c
gcc -shared -L'/usr/local/lib' -Wl,-R'/usr/local/lib'
-L'/usr/local/lib' -Wl,-R'/usr/local/lib' -o mysql.so mysql.o
-lmysqlclient -ldl -lcrypt -lm -lc
/usr/bin/install -c -m 0755 mysql.so
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib

make clean
Successfully installed mysql-2.7
Gems: [htmltools, mysql] updated
-----eof-----

Does this mean that the install went fine? No compile error?


On 11/11/06, Jonathan M=E9tillon <(E-Mail Removed)> wrote:
> I'm trying to update my installed gems. Here's what happens:
>
> -----sof-----
> $ sudo gem update -y
> Updating installed gems...
> Bulk updating Gem source index for: http://gems.rubyforge.org
> Attempting remote update of htmltools
> Successfully installed htmltools-1.10
> Attempting remote update of mysql
> Select which gem to install for your platform (i686-linux)
> 1. mysql 2.7.1 (mswin32)
> 2. mysql 2.7 (ruby)
> 3. mysql 2.6 (ruby)
> 4. mysql 2.5.1 (ruby)
> 5. Cancel installation
> > 2

> Building native extensions. This could take a while...
> gcc: Internal error: Killed (program cc1)
> Please submit a full bug report.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> For Debian GNU/Linux specific bug reporting instructions,
> see <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.
>
> make: *** [mysql.o] Error 1
> -----eof-----
>
> What's happening? How can I fix this?
>
> I just did the same process on another Debian Sarge box and all went fine=

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql gem: better native extension error than this? Tony Arcieri Ruby 3 02-04-2010 11:55 PM
rice: ERROR: Failed to build gem native extension. kungfu-free Ruby 0 02-09-2009 08:11 PM
DBI, native extensions, etcetera. Peter Seebach Ruby 0 05-01-2007 07:43 AM
RubyGems 0.9.1 calling a gem with gem '<gem>' Austin 7873 Ruby 5 01-27-2007 10:05 PM
PyThreadState_SetAsyncExc and native extensions gabriel.becedillas@gmail.com Python 0 04-25-2006 07:10 PM



Advertisments