[bug-notifications] [rubydev 0003770]: Unable to compile native gems on virtualised X86 platform
Mantis Bug Tracker
noreply at opencsw.org
Wed Oct 28 16:38:09 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:38 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}
======================================================================
----------------------------------------------------------------------
(0006905) chrismay (reporter) - 2009-10-28 16:38
http://www.opencsw.org/mantis/view.php?id=3770#c6905
----------------------------------------------------------------------
This works _almost_ perfectly for me. Two changes I had to make:
1: Gem looks for the sun compiler in /opt/studio/SOS11/SUNWspro, but on my
system it's in /opt/SUNWspro - I _think_ that's the default - at least, I
don't remember changing it. I made a symlink and it worked fine.
2: When I ran mongrel, /opt/csw/lib/ruby/gems/mongrel-1.1.5/lib/http11.so
could not find libucb.so to link against. I had to set
LD_LIBRARY_PATH=/usr/ucblib, then everything was fine
I guess both of these could be fixed, if appropriate, by setting overrides
on CC and LD_FLAGS in rbconfig.rb
More information about the bug-notifications
mailing list