[Gems-users] compiling errors for Ruby


Date: Fri, 08 Jul 2005 23:21:46 -0500
From: "ayu" <ayu@xxxxxxxxxxxxx>
Subject: [Gems-users] compiling errors for Ruby
Hello,
    While compiling Ruby, I came upon the errors shown below. It looks
like it might be a library problem. If so, what version should I be
using? Another possible cause is that during Simics' configuration I had
a warning: "*Warning*: Could not find library for LIBREADLINE=-lreadline
-ltermcap". Could this be a possible cause of my problem? If so, how do
I go about fixing this?

Thanks.
Andy
 
....
make[1]: Entering directory `/tmp/gems/gems/ruby'
/usr/local/bin/g++  -o v9-sol8-64/generated/MOSI_SMP_bcast/obj/initvar.o
-c ../common/ioutil/
initvar.C -DIS_RUBY -DTARGET_SPARC_V9 -DTARGET_VA_BITS=64
-DTARGET_PA_BITS=64 -Wall -W -Wwrit
e-strings -Woverloaded-virtual -Wno-unused  -m64 -mcpu=v9  -g -ggdb -g3
-O2 -finline-function
s -DNO_VECTOR_BOUNDS_CHECKS -DMULTIFACET_NO_OPT_WARN  -DRUBY_DEBUG=false
 -Inetwork/simple -I
. -I../common -I../common/gzstream -Ibuffers -Icommon -Islicc_interface
-Iprofiler -Iconfig -
Ieventqueue -Isystem -Iinterfaces -Isimics -Itester -Irecorder
-Igenerated/MOSI_SMP_bcast -I.
./common/ioutil -Inetwork -I../simics/v9-sol8-64/obj/include/
-I../simics/v9-sol8-64/obj/incl
ude/simics -I../simics/v9-sol8-64/config
In file included from
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/../../../../include/c++/3
.4.2/bits/localefwd.h:48,
                 from
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/../../../../include/c++/3
.4.2/ios:48,
                 from
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/../../../../include/c++/3
.4.2/istream:45,
                 from
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/../../../../include/c++/3
.4.2/iomanip:46,
                 from ../common/std-includes.h:69,
                 from common/global.h:83,
                 from ../common/ioutil/initvar.C:79:
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/../../../../include/c++/3.
4.2/bits/functexcept.
h:40: error: previous declaration of `void std::__throw_bad_exception()'
with C++ linkage
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/../../../../include/c++/3.
4.2/bits/functexcept.
h:40: error: conflicts with new declaration with C linkage
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/../../../../include/c++/3.
4.2/bits/functexcept.
h:44: error: previous declaration of `void std::__throw_bad_alloc()'
with C++ linkage
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/../../../../include/c++/3.
4.2/bits/functexcept.
h:44: error: conflicts with new declaration with C linkage
..... (repeated multiple times)

and

/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/../../../../include/c++/3.
4.2/bits/ostream.tcc:
163:   instantiated from `std::basic_ostream<_CharT, _Traits>&
std::basic_ostream<_CharT, _Tr
aits>::operator<<(long unsigned int) [with _CharT = char, _Traits =
std::char_traits<char>]'
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/../../../../include/c++/3.
4.2/ostream:196:   in
stantiated from `std::basic_ostream<_CharT, _Traits>&
std::basic_ostream<_CharT, _Traits>::op
erator<<(int) [with _CharT = char, _Traits = std::char_traits<char>]'
../common/ioutil/initvar.C:256:   instantiated from here
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/../../../../include/c++/3.
4.2/bits/locale_facet
s.tcc:868: error: invalid conversion from `int' to `std::_Ios_Fmtflags'
make[1]: *** [v9-sol8-64/generated/MOSI_SMP_bcast/obj/initvar.o] Error 1
make[1]: Leaving directory `/tmp/gems/gems/ruby'


[← Prev in Thread] Current Thread [Next in Thread→]
  • [Gems-users] compiling errors for Ruby, ayu <=