This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Assembler problem on SPARC Solaris 2.6


I encountered the following problem on a SPARC Solaris 2.6 system running
egcs-1.1.1:

------------------------

sh-2.00$ uname -a
SunOS plg2.math 5.6 Generic_105181-05 sun4u sparc SUNW,Ultra-4

sh-2.00$ cat test.cc
#include <string>
#include <map>

typedef map< string, string, less < string > > defmap;

int main() {
    defmap dm;

    dm.insert(defmap::value_type( string("a"), string("a") ));
}

sh-2.00$ g++ -v
Reading specs from /u/oschuster/egcs-1.1.1/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.60/specs
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)

sh-2.00$ as -V
as: WorkShop Compilers 4.X dev 18 Sep 1996

< Usage information deleted >

sh-2.00$ g++ test.cc
/usr/ccs/bin/as: "/var/tmp/cc0ropbX.s", line 2280: error: can't compute value of an expression involving an external symbol

sh-2.00$ /software/gnu/bin/as -v
GNU assembler version 2.7 (sparc-sun-solaris2.5), using BFD version 2.7

sh-2.00$ g++ -B/software/gnu/bin/ test.cc
/var/tmp/ccs9Cki8.s: Assembler messages:
/var/tmp/ccs9Cki8.s:4135: Error: misaligned data

< above line repeated 80 times with increasing line number >

------------------------

It looks similar to the assembler problem previously reported on the i386
Solaris system. Interestingly enough, changing the assembler to the gnu
assembler does not help, unless I was too naive and just providing the -B
option is not sufficient for an assembler change. 

        Oliver

Oliver Schuster
oschuste@plg.uwaterloo.ca



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]