gcc2.8.1, gas, gld & DU 4.0d

From: <jburelbach_at_earthling.net>
Date: Thu, 01 Apr 1999 10:16:25 -0500 (EST)

HELLLLP!!! Has anyone gotten gcc2.8.1 (or egcs 1.1.2) to build with libstdc++, gas, and gld? I'm working on a DEC 1000A running 4.0D with patchkit 2. I've managed to build gcc with gas, but gld doesn't work then. when I build without gas the Dec assembler barfs with "line too long". with gas and Dec's linker I get stuff like:

   DBHandler.cpp:6: undefined reference to `__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i03RepPv'
   DBHandler.cpp:6: undefined reference to `__builtin_delete' FuncEvaluator.o: In function `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::rep(void) const':
   FuncEvaluator.cpp:6: relocation truncated to fit: SREL32 xdata
   FuncEvaluator.cpp:6: relocation truncated to fit: SREL32 xdata
   FuncEvaluator.cpp:6: relocation truncated to fit: SREL32 xdata
   FuncEvaluator.cpp:6: relocation truncated to fit: SREL32 xdata
   FuncEvaluator.cpp:6: relocation truncated to fit: SREL32 xdata
   FuncEvaluator.cpp:6: relocation truncated to fit: SREL32 xdata
   FuncEvaluator.cpp:6: relocation truncated to fit: SREL32 xdata


If gas exists and I build gcc without gas support gas dies with "-O0 undefined" I've even tried using Digital's C++ compiler and I get the following errors:

  cxx -fexceptions -c FuncEvaluator.cpp -D DEBUG -D USE_ORACLE -DSLXMX_ENABLE -DSLTS_ENABLE -D_REENTRANT -I/rdbms/demo
  cxx: Warning: -fexceptions ignored
  cxx: Warning: Error.h, line 15: qualified name is not allowed in member declaration
   string Error::toString();
----------^
cxx -O2 -I/rdbms/demo -o DBHandler.o -c DBHandler.cpp
cxx: Warning: Error.h, line 15: qualified name is not allowed in member declaration
   string Error::toString();
----------^
cxx -O2 -I/rdbms/demo -o DBHandler.o -c DBHandler.cpp
cxx: Warning: Error.h, line 15: qualified name is not allowed in member declaration
   string Error::toString();
----------^
cxx -fexceptions -c DynamicFuncEvaluator.cpp -D DEBUG -D USE_ORACLE -DSLXMX_ENABLE -DSLTS_ENABLE -
D_REENTRANT -I/rdbms/demo
cxx: Warning: -fexceptions ignored
cxx: Warning: Error.h, line 15: qualified name is not allowed in member declaration
   string Error::toString();
----------^
/usr/ccs/bin/ld -G FuncEvaluator.o DynamicFuncEvaluator.o DBHandler.o -o libteal.1.2.so
/usr/ccs/bin/ld:
Error: Undefined:
__vtbl_3std9type_info__3std
userdata
nullref__7__rwstd
nullref_initialized__7__rwstd
getVar__9EnvObjectXQ13std60basic_string__TcQ13std15char_traits__TcQ13std13allocator__Tv
__ct__Q13std60basic_string__TcQ13std15char_traits__TcQ13std13allocator__TvXPCcRCQ13std13allocator__T
v
__vec_new_eh
__as__Q13std60basic_string__TcQ13std15char_traits__TcQ13std13allocator__TvXRCQ13std60basic_string__T
cQ13std15char_traits__TcQ13std13allocator__Tv
sprintf
....


The application I'm building makes heavy use of templates and compiles just fine on a Solaris system using gcc, gas & gld.
Please help!

Jon

----------------------
Jonathan Burelbach
Sr. Systems Engr.
FDC Technologies
Bethesda, MD 20814

---------------------------------------------------
Get free personalized email at http://www.iname.com
Received on Thu Apr 01 1999 - 15:19:46 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT