# Gcc: Internal error when gem is building native extensions

**URL:** <https://www.ruby-forum.com/t/gcc-internal-error-when-gem-is-building-native-extensions/75607>\
**Category:** Ruby\
**Created:** [November 11, 2006, 2:07pm UTC](https://www.ruby-forum.com/t/gcc-internal-error-when-gem-is-building-native-extensions/75607 "2006-11-11T14:07:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [November 11, 2006, 2:07pm UTC](https://www.ruby-forum.com/t/gcc-internal-error-when-gem-is-building-native-extensions/75607/1 "2006-11-11T14:07:16Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [November 11, 2006, 2:15pm UTC](https://www.ruby-forum.com/t/gcc-internal-error-when-gem-is-building-native-extensions/75607/2 "2006-11-11T14:15:19Z")

</div>

I did not see that gem was still processing. This appeared after the  
make error:

-----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?
