[bug-notifications] [rubydev 0003770]: Unable to compile native gems on virtualised X86 platform

Mantis Bug Tracker noreply at opencsw.org
Wed Oct 28 16:46:10 CET 2009


A NOTE has been added to this issue. 
====================================================================== 
http://www.opencsw.org/mantis/view.php?id=3770 
====================================================================== 
Reported By:                chrismay
Assigned To:                bwalton
====================================================================== 
Project:                    rubydev
Issue ID:                   3770
Category:                   regular use
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2009-07-18 19:08 CEST
Last Modified:              2009-10-28 16:46 CET
====================================================================== 
Summary:                    Unable to compile native gems on virtualised X86
platform
Description: 
Trying to compile native gems results in the following error:

make
/opt/csw/gcc4/bin/gcc -I. -I/opt/csw/lib/ruby/1.8/i386-solaris2.8
-I/opt/csw/lib/ruby/1.8/i386-solaris2.8 -I. -I/opt/csw/include
-D_FILE_OFFSET_BITS=64  -fPIC -mtune=i68
6 -O2 -pipe -m32 -march=i386 -I/opt/csw/include  -fPIC   -c fastthread.c
In file included from
/opt/csw/gcc4/lib/gcc/i386-pc-solaris2.8/4.3.3/include-fixed/stdlib.h:27,
                 from /opt/csw/lib/ruby/1.8/i386-solaris2.8/ruby.h:40,
                 from fastthread.c:12:
/usr/include/iso/stdlib_iso.h: In function 'abort':
/usr/include/iso/stdlib_iso.h:107: error: expected declaration
specifiers before '__NORETURN'
/usr/include/iso/stdlib_iso.h:108: error: storage class specified for
parameter 'abs'
/usr/include/iso/stdlib_iso.h:109: error: storage class specified for
parameter 'atexit'
/usr/include/iso/stdlib_iso.h:110: error: storage class specified for
parameter 'atof'
/usr/include/iso/stdlib_iso.h:111: error: storage class specified for
parameter 'atoi'
/usr/include/iso/stdlib_iso.h:112: error: storage class specified for
parameter 'atol'
/usr/include/iso/stdlib_iso.h:114: error: storage class specified for
parameter 'bsearch'
/usr/include/iso/stdlib_iso.h:121: error: storage class specified for
parameter 'calloc'
/usr/include/iso/stdlib_iso.h:122: error: storage class specified for
parameter 'div'
/usr/include/iso/stdlib_iso.h:124: error: expected '=', ',', ';',
'asm' or '__attribute__' before '__NORETURN'

{many many more similar errors omitted}
====================================================================== 

---------------------------------------------------------------------- 
 (0006906) bwalton (manager) - 2009-10-28 16:46
 http://www.opencsw.org/mantis/view.php?id=3770#c6906 
---------------------------------------------------------------------- 
Option 1 could be worked around by providing
/opt/csw/lib/ruby/1.8/$arch-solaris2.8/rbconfig.rb.LOCAL with the required
alterate path to CC and then using the cswrbconfig tool to make that the
default rbconfig.rb used.  (I don't want sos11 on all of my systems and
prefer gcc4 for most things, so I provided an ability to easily flip
flop.)

Option 2 can be corrected at build time on my side, I think.  I'll look at
that tonight.

Thanks for the quick feedback and sorry for the long delay on this.




More information about the bug-notifications mailing list